Hacker News new | ask | show | jobs
by Contortion 310 days ago
Basically what Collections do in Laravel.
1 comments

Exactly... similar in Symfony.

While converting arrays to collection-object is a suitable option that does work, it would feel much more "native", if there were extension methods for Iterable / Traversable.

Agreed. Like in JS and Java, it would be a lot nicer if the language itself had the chainable methods.