You are viewing a single comment's thread. Return to all comments →
I'd avoid side-effects with map; foreach is more expressive here.
map is an intermediate transformation operation foreach is a terminal consumer operation
Seems like cookies are disabled on this browser, please enable them to open this website
Hello World N Times
You are viewing a single comment's thread. Return to all comments →
I'd avoid side-effects with map; foreach is more expressive here.
map is an intermediate transformation operation
foreach is a terminal consumer operation