Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I edited out "syntax sugar" that was in the post initially.

Also, the `for` operator definitely predates the `map` function. Some people also prefer `map` to be more or less pure and expect it to return a usable list; `for ` has no such expectation, it e.g. may consist solely in printing elements.



> Also, the `for` operator definitely predates the `map` function

And `CAS/Compare Accumulator with Storage` definitely predates `if`, still you are most probably using the latter.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: