3 ms·
> And without side-effects, a map can't implement a forEach. Yes, it can, because without side effects, forEach is a NOP. That's not difficult to implement. As
by thaumasiotes 6y ago
> And without side-effects, a map can't implement a forEach.
Yes, it can, because without side effects, forEach is a NOP. That's not difficult to implement. As long as you don't do anything with the return value from map, you're there.