Skip to content

Releases: nikic/iter

iter 1.2

08 Mar 17:42
Compare
Choose a tag to compare
  • Added new iter functions:
    • mixed search(callable $predicate, iterable $iterable):
      Returns the first value from $iterable which satisfies $predicate, or null 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 (**) to iter\fn\operator(). Support is available also on older PHP versions which do not have an actual ** operator.

iter 1.1

27 Mar 15:55
Compare
Choose a tag to compare

Added iter functions:

  • Iterator mapKeys(callable $function, iterable $iterable)
  • Iterator reindex(callable $function, iterable $iterable)
  • Iterator chunk(iterable $iterable, int $size)
  • Iterator flip(iterable $iterable)
  • string join(string $separator, iterable $iterable)

Added iter\fn functions:

  • function nested_index(...$indices)

iter 1.0

07 Jan 20:43
Compare
Choose a tag to compare

First release :)