Class

cats.syntax

FlatMapOps

Related Doc: package syntax

Permalink

final class FlatMapOps[F[_], A] extends AnyVal

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FlatMapOps
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FlatMapOps(fa: F[A])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  4. def >>[B](fb: ⇒ F[B])(implicit F: FlatMap[F]): F[B]

    Permalink

    Alias for fa.flatMap(_ => fb).

    Alias for fa.flatMap(_ => fb).

    Unlike *>, fb is defined as a by-name parameter, allowing this method to be used in cases where computing fb is not stack safe unless suspended in a flatMap.

  5. def >>=[B](f: (A) ⇒ F[B])(implicit F: FlatMap[F]): F[B]

    Permalink

    Alias for flatMap.

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def foreverM[B](implicit F: FlatMap[F]): F[B]

    Permalink

    Like an infinite loop of >> calls.

    Like an infinite loop of >> calls. This is most useful effect loops that you want to run forever in for instance a server.

    This will be an infinite loop, or it will return an F[Nothing].

    Be careful using this. For instance, a List of length k will produce a list of length k^n at iteration n. This means if k = 0, we return an empty list, if k = 1, we loop forever allocating single element lists, but if we have a k > 1, we will allocate exponentially increasing memory and very quickly OOM.

  8. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  9. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  10. def toString(): String

    Permalink
    Definition Classes
    Any

Deprecated Value Members

  1. def <<[B](fb: F[B])(implicit F: FlatMap[F]): F[A]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.0-RC1) Use <* instead

  2. def followedByEval[B](fb: Eval[F[B]])(implicit F: FlatMap[F]): F[B]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.0-RC2) Use productREval instead.

  3. def forEffectEval[B](fb: Eval[F[B]])(implicit F: FlatMap[F]): F[A]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.0-RC2) Use productLEval instead.

Inherited from AnyVal

Inherited from Any

Ungrouped