dnowak
val results: List<IO<Either<ListenerError, Unit>>> = ...
IO<Either<ListenerError, List<Unit>>>
val r = results.sequence(IO.applicative()).fix().map { l -> l.fix().sequence(Either.applicative()).fix().map { list -> list.fix() } }
simon.vergauwen
EitherT
results.map { EitherT(it) } .sequence(EitherT.applicative(IO.applicative())) .map { it.map { it.fix() } }
fix()
A modern programming language that makes developers happier.