Hacker News new | ask | show | jobs
by nv-vn 3427 days ago
One could argue that if you mean "map" use "map", not a little dance with a for loop. I'm inclined to say that the same argument could he applied to "if", but without seeing what their particular code looks like I don't know for sure.
2 comments

And if you are mapping not to a value but to the execution of a statement, should that be map instead of for?
Well, I agree with that. If you're mapping use map instead of a for loop.