4 ms·
For what it's worth, the Laravel PHP framework (no affiliation) has the best introduction to higher-order methods for imperative programmers used to Javascript/
by zackmorris 5y ago
For what it's worth, the Laravel PHP framework (no affiliation) has the best introduction to higher-order methods for imperative programmers used to Javascript/C style of anything that I've come across:
https://laravel.com/docs/master/collections https://laravel.com/docs/master/collections
Most of these methods are also available as part of the Eloquent ORM, for filtering/reshaping queries before they're executed:
https://laravel.com/docs/master/eloquent https://laravel.com/docs/master/eloquent
Since being exposed to this way of working, I rarely use foreach() anymore, much less for(). The main downside being that I find most other languages tedious to work in now. LINQ in .NET/C# is nice, there might be others.