original_string: public function map(callable $func) : self
      {
          $list = $this->list;
  
          foreach ($list as $index => $val) {
              $list[$index] = $func($val);
          }
  
          return new static($list);
      }
code: public function map(callable $func) : self
      {
          $list = $this->list;
  
          foreach ($list as $index => $val) {
              $list[$index] = $func($val);
          }
  
          return new static($list);
      }
code_tokens: public function map ( callable $ func ) : self { $ list = $ this -> list ; foreach ( $ list as $ index => $ val ) { $ list [ $ index ] = $ func ( $ val ) ; } return new static ( $ list ) ; }
docstring: map method.
  
  @method map
  
  @param callable $func
  
  @return object Collection
docstring_tokens: map method .