How does the forEach() method work? - Cracking the Java Coding Interview

preview_player
Показать описание
Cracking the #Java #Coding #Interview - Question 173: How does the forEach() method work?
Рекомендации по теме
Комментарии
Автор

I prefer to do side effects with forEach or a for loop than in calls to *.map() or collect(). Functional programming is about pure (side effect free) transformations and delayed, controlled, execution of non pure, stateful code.

I also like to think (general rule, not always): expressions for transformations, statements for side effects


keep doing this content 👍

madskaddie
Автор

As a java developer, where can I buy this glass ?

soufiane
Автор

Thanks for the video and the useful tips.

The text for "onse last word" has a typo.

SylDe