val foo: IO<List<A>> = ...
val (bar) = foo
val final = bar.map { IO.just(it) }
j
Jakub Pi
06/02/2020, 5:27 AM
In general you want to go the other way, but either way the function you are looking for is called
sequence
👍 1
c
Chris Cordero
06/02/2020, 1:34 PM
Yeah I couldn't figure out the right syntax to get
sequence
working and the docs on traverse / sequence was much heavier than i was expecting/could handle last night, so i'll try to take another look at it today.