Iter v2.1.0 Release Notes

Release Date: 2020-09-19 // over 3 years ago
    • ➕ Added iter\slice() method (#80). This works like explode() but produces an iterator.
    • ➕ Added iter\mapWithKeys() method (#81). This works like iter\map() but also passes keys as second parameter to the callable.

Previous changes from v2.0.0

  • 🚀 This release makes iter compatible with PHP 7.4 by renaming the iter\fn namespace to iter\func.

    • PHP >= 7.1 is now required. Functions are annotated with iterable types. (#52)
    • The iter\fn namespace has been renamed to iter\func. This is necessary for PHP 7.4 compatibility. (#79)
    • 0️⃣ Default $preserveKeys = false in chunk() and add chunkWithKeys() function.
    • Avoid advancing by one additional iteration in slice(). (#75)