Home > Blockchain >  Sequence and Traverse in Cats Scala to map a types
Sequence and Traverse in Cats Scala to map a types

Time:10-15

I have this a value of type List[EitherT[IO, String, Int]] and I want to do sequence on it in order to map it into EitherT[IO,String, List[Int]]

I read and I found sequence method but It gives me an error saying that it needs an implicit Applicative of [G] how can this be resolved

CodePudding user response:

It's hard to guess the reasons of your compile error ("needs an implicit Applicative[G]") without MCVE. Please provide the one.

  • Related