We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.

le-yams • 4 years ago

You're gonna say I'm picky but this actually doesn't apply a function on each element of a list.
It transforms each element of a list using a given 'mapping' function. To apply a function on each element you may use the forEach() method :).
The big difference is that the map() method is an intermediate operation while the forEach() method is a terminal operation (see https://docs.oracle.com/jav....


[CG]BOUGA • 4 years ago

You're right ;)