Scala has had for-comprehensions from the beginning, but not always higher-kinded polymorphism[].
What C# calls SelectMany
and we have called bind
, Scala calls flatMap
.
Like LINQ, for-comprehensions provide syntactic sugar for calls to flatMap
(and others) and also
like LINQ are not type-safe[].