Releases: jkoudys/immutable.php
Releases · jkoudys/immutable.php
Find, and more arguments to your callbacks.
Non-breaking API additions:
- ImmArray::find() - works like the ecma find. Takes a callback. Much faster than reducing or requiring your own foreaches, since it exits on first found item.
- Callbacks take index and original array. Very useful if you want an ImmArray::map to know which index it's on.