You can build comprehensions a top coroutines for ...
# language-proposals
r
You can build comprehensions a top coroutines for all types that have flatMap. That's what we do in Arrow. If anyone is interested I can share some code on how it's done but syntax looks like this http://arrow-kt.io/docs/patterns/monad_comprehensions/