News for hackers. Stuff that matters.
Re:Ask HN: Why do functional programmers hate loops (for, wh... by guilherme-puida on Friday July 14, 2023 @08:29AM (#36722928)
forEach is just an alternate syntax for a for..in loop, that instead of being a block it takes a closure. It's not functional, since it's only used for side-effects.

There are no comments on this comment yet.