original_string: public function map(Closure $callback)
      {
          $hash = $this->create();
  
          $this->each(function ($value, $key) use ($callback, $hash) {
              $hash[] = $callback($value, $key);
          });
  
          return $hash;
      }
code: public function map(Closure $callback)
      {
          $hash = $this->create();
  
          $this->each(function ($value, $key) use ($callback, $hash) {
              $hash[] = $callback($value, $key);
          });
  
          return $hash;
      }
code_tokens: public function map ( Closure $ callback ) { $ hash = $ this -> create ( ) ; $ this -> each ( function ( $ value , $ key ) use ( $ callback , $ hash ) { $ hash [ ] = $ callback ( $ value , $ key ) ; } ) ; return $ hash ; }
docstring: Maps elements into a new Hash
  
  @param Closure $callback
  
  @return Hash
docstring_tokens: Maps elements into a new Hash