concept list comprehension in category functional programming

appears as: list comprehensions, list comprehension
Grokking Functional Programming

This is an excerpt from Manning's book Grokking Functional Programming.

In Scala, for is an expression. When used on a collection, it returns another collection with the transformed items. On the other hand, the imperative for is just a statement for constructing loops, and returns nothing. That’s why imperative for loops (statements) can’t be used for immutable collections.