Iter v1.2.0 Release Notes
Release Date: 2015-03-08 // about 9 years ago-
- ➕ Added new
iter
functions:mixed search(callable $predicate, iterable $iterable)
:
Returns the first value from$iterable
which satisfies$predicate
, ornull
if no such element exists.Iterator reductions(callable $function, iterable $iterable, mixed $startValue = null)
:
Returns an iterator which contains the intermediate values produced by applying a reduction function to an iterator. Can for example be used to compute cumulative sums.
- 👍 Added support for the power operator (
**
) toiter\fn\operator()
. Support is available also on older PHP versions which do not have an actual**
operator.
- ➕ Added new