コード例 #1
0
ファイル: FluentIterator.php プロジェクト: letsdrink/ouzo
 /**
  * Returns a fluent iterator that applies function to each element of this fluent iterator.
  * @param $function
  * @return $this
  */
 public function map($function)
 {
     $this->iterator = Iterators::map($this->iterator, $function);
     return $this;
 }