0

I have an List[IO[A]] and I want to convert it to an IO[List[A]] In scalaz I would use sequenceU but I don't find the equivalent in cats

nam
  • 3,542
  • 9
  • 46
  • 68

1 Answers1

1

This solved my problems

import cats.implicits._

val x: List[IO[A]] = ...
val y: IO[List[A]] = x.sequence
nam
  • 3,542
  • 9
  • 46
  • 68