Scala emulates this with `for` comprehensions. The...
# language-proposals
c
Scala emulates this with
for
comprehensions. They are both equivalent, although Scala's has a lot more machinery around it