3 ms·
Apart from the arguable syntactic attractions, does it not bother people that chained maps/filters traverse the iterable multiple times, whereas comprehensions
by da39a3ee 5y ago
Apart from the arguable syntactic attractions, does it not bother people that chained maps/filters traverse the iterable multiple times, whereas comprehensions would give the language a chance to compile a complex comprehension down to a single traversal?
- hajile 5y agoThey need to add iterator versions of the built-ins. At that point, not only this, but a ton of other efficiency issues go away. At present, chaining lodash functions together will integrate once, so I’d recommend using them to save time and memory.