Scala and the JVM
·
Part 7
Scala: Part 7: List For-Comprehensions - From Guards to flatMap
From one generator and an if guard to two lists and six combinations: I trace Scala for-comprehensions back to map, withFilter and flatMap, with runnable policy examples.
19 Sep 2026
·
5 min read
·99 views
Scala and the JVM
·
Part 6
Scala: Part 6: Scala Collections for Java Developers - map, filter and find
Three familiar operations, three different results. I explore Scala List with fictional insurance policies, compare it with Java streams, and reconnect find with Option.
19 Sep 2026
·
4 min read
·115 views