Hacker News new | ask | show | jobs
by thaumasiotes 1923 days ago
> forEach is actually more powerful than map, you would not be able to use map for side effects in a static and/or lazy language.

You might notice this problem above, where it's necessary to do

  for n in map(reductor, iterable): pass
to realize the mapping.