I was about to answer something similar, you can d...
# arrow
a
I was about to answer something similar, you can do a simple flatMap from the stdlib
Copy code
myMap.flatMap { (key, value) -> /* build result with key,value */ }
or use traverse as Paco suggested, although you can use parTraverse directly if you want parallelism for free when the operations are independant
Copy code
myMap.entries.parTraverse { (key, value) -> IO { /* build result with key,value */ } }
👌🏼 1