gin other places, so modifying the signature isn't an option.
Eitheras if it were right-biased,” I imagine
flatMapwill do the trick.
def flatLift[ _.flatMap(f)]( )(implicit ec: ExecutionContext): EitherT[F, B, A] => EitherT[F, B, C] =
Hi, I was playing a bit with typelevel/cats#3141 and I couldn’t find any way to implement the signature
def foldA[G[_], A, B](fa: F[A], z: B)(f: (B, A) => G[B])(implicit G: Applicative[G]): G[B]
without flattening. The closest I could get was
def foldA[G[_], A, B](fa: F[A], z: B)(f: G[(B, A) => B])(implicit G: Applicative[G]): G[B]
I was wondering, what could be a possible implementation of the first ?
Thanks a lot