3 ms·
Scala's for comprehensions resemble Haskell's do-notation quite well. So there is some syntax to work with monads in Scala. The big difference is that Scala's
by still_grokking 8y ago
Scala's for comprehensions resemble Haskell's do-notation quite well. So there is some syntax to work with monads in Scala.
The big difference is that Scala's for isn't guarantied to be a pure expression.
- Nullabillity 8y agoI just wish for..yield didn't look quite so much like a loop.