All Downloads are FREE. Search and download functionalities are using the official Maven repository.

shims.FlatMapRec.scala Maven / Gradle / Ivy

There is a newer version: 1.0-b0e5152
Show newest version
package shims

trait FlatMapRec[F[_]] extends FlatMap[F] {
  def tailRecM[A, B](a: A)(f: A => F[Either[A, B]]): F[B]
}

object FlatMapRec {
  type Aux[F[_], Tag0] = FlatMapRec[F] { type Tag = Tag0 }

  def apply[F[_]](implicit F: FlatMapRec[F]): FlatMapRec[F] = F
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy