Hi, 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....
Hi,
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....
Regards,
Yann