$each
$each :
make Enumerable object from callable returns array or Traversable
select(callable $predicate) : \dooaki\Container\Lazy\Enumerator
Return Enumerator which $predicate returns a true value
callable | $predicate |
findAll(callable $predicate) : \dooaki\Container\Lazy\Enumerator
Same as select method
callable | $predicate |
map(callable $converter) : \dooaki\Container\Lazy\Enumerator
Return Enumerator which convert values
callable | $converter |
mapKey(callable $converter) : \dooaki\Container\Lazy\Enumerator
Return Enumerator which convert keys
callable | $converter |
mapKeyValue(callable $converter) : \dooaki\Container\Lazy\Enumerator
Return Enumerator which convert keys and values
callable | $converter |
skip(\dooaki\Container\Lazy\unknown $n) : \dooaki\Container\Lazy\Enumerator
Return Enumerator which first $n elements
\dooaki\Container\Lazy\unknown | $n |
offset(integer $n) : \dooaki\Container\Lazy\Enumerator
Same as skip method
integer | $n |
take(integer $n) : \dooaki\Container\Lazy\Enumerator
Return Enumerator which first $n elements
integer | $n |
limit(integer $n) : \dooaki\Container\Lazy\Enumerator
Same as take method
integer | $n |
tap(callable $action) : \dooaki\Container\Lazy\Enumerator
Return Enumerator which calls $action
callable | $action |
transpose() : \dooaki\Container\Lazy\Enumerator|\dooaki\Container\Lazy\Generator
Return Enumerator which returns transposed Array
flatten() : \dooaki\Container\Lazy\Enumerator|\dooaki\Container\Lazy\Generator
Return Enumerator which flatten values