4 ms·
Wow that makes me cringe. This specifically: > The power of the map/filter abstraction starts becoming more apparent when you do things like > Filter(someFunc
by earlz 12y ago
Wow that makes me cringe. This specifically:
> The power of the map/filter abstraction starts becoming more apparent when you do things like
> Filter(someFunc, Map(funcWith3args, vecA, vecB, vecC))
> And you realize you should swap map and filter for your particular app for better performance.
met with this reply:
> vs
> [10 lines of code for two for loops doing the same thing]
> Using range makes it obvious that there is a performance hit in the first place.
- codygman 12y agoIn cases of needing more performance, you only swap map and filter for a loop in languages that don't optimize it.