improved-php-iterable
improved-php-iterable copied to clipboard
Append and prepend
Add methods to append or prepend items to an iterator.
Pipeline::with($items)
->append($extraItems);
The difficulty is with the keys. If you don't explicitly use values() before toArray(), the items are overwritten instead of appended.