original_string: public function flatMap(callable $func) : array
      {
          $list = $this->list;
          $acc = [];
  
          foreach ($list as $val) {
              $acc[] = $func($val);
          }
  
          return $acc;
      }
code: public function flatMap(callable $func) : array
      {
          $list = $this->list;
          $acc = [];
  
          foreach ($list as $val) {
              $acc[] = $func($val);
          }
  
          return $acc;
      }
code_tokens: public function flatMap ( callable $ func ) : array { $ list = $ this -> list ; $ acc = [ ] ; foreach ( $ list as $ val ) { $ acc [ ] = $ func ( $ val ) ; } return $ acc ; }
docstring: flatMap method.
  
  @method flatMap
  
  @param callable $func
  
  @return array $flattened
docstring_tokens: flatMap method .