Class/Object

org.atnos.eff

Continuation

Related Docs: object Continuation | package eff

Permalink

case class Continuation[R, A, B](functions: Vector[(Any) ⇒ Eff[R, Any]], onNone: Last[R] = Last.none[R]) extends (A) ⇒ Eff[R, B] with Product with Serializable

Sequence of monadic functions from A to B: A => Eff[B]

Internally it is represented as a Vector of functions:

A => Eff[R, X1]; X1 => Eff[R, X2]; X2 => Eff[R, X3]; ...; X3 => Eff[R, B]

An alternate unit value can also be set on this function in case the argument A is not available. This value can be set by an effect to do some cleanup if it doesn't even get the chance to add its own effect. See SafeEffect.bracket

Linear Supertypes
Serializable, Serializable, Product, Equals, (A) ⇒ Eff[R, B], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Continuation
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Function1
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Continuation(functions: Vector[(Any) ⇒ Eff[R, Any]], onNone: Last[R] = Last.none[R])

    Permalink

Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def andThen[A](g: (Eff[R, B]) ⇒ A): (A) ⇒ A

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  5. def append[C](f: (B) ⇒ Eff[R, C]): Continuation[R, A, C]

    Permalink

    append a new monadic function to this list of functions such that

    append a new monadic function to this list of functions such that

    Arrs[R, A, B] => (B => Eff[R, C]) => Arrs[R, A, C]

  6. def apply(a: A): Eff[R, B]

    Permalink

    execute this monadic function

    execute this monadic function

    This method is stack-safe

    Definition Classes
    Continuation → Function1
  7. def applyEval(a: A): Eff[R, B]

    Permalink
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def compose[A](g: (A) ⇒ A): (A) ⇒ Eff[R, B]

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  11. def contraFlatMap[C](f: (C) ⇒ Eff[R, A]): Continuation[R, C, B]

    Permalink
  12. def contramap[C](f: (C) ⇒ A): Continuation[R, C, B]

    Permalink
  13. def dimapEff[C, D](f: (C) ⇒ A)(g: (Eff[R, B]) ⇒ Eff[R, D]): Continuation[R, C, D]

    Permalink

    adapt the input and output of an Arrs function

  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. val functions: Vector[(Any) ⇒ Eff[R, Any]]

    Permalink
  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  18. def interpret[U, C](map: (Eff[R, B]) ⇒ Eff[U, C])(mapOnNone: (Last[R]) ⇒ Last[U]): Continuation[U, A, C]

    Permalink

    create an Arrs function from the result of another Arrs function

  19. def interpretEff[U, C](map: (Eff[R, B]) ⇒ Eff[U, C])(mapOnNone: (Eff[R, Unit]) ⇒ Eff[U, Unit]): Continuation[U, A, C]

    Permalink

    create an Arrs function from the result of another Arrs function

  20. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  21. def map[C](f: (B) ⇒ C): Continuation[R, A, C]

    Permalink

    map the last value

  22. def mapLast[C](f: (Eff[R, B]) ⇒ Eff[R, C]): Continuation[R, A, C]

    Permalink

    map the last returned effect

  23. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. val onNone: Last[R]

    Permalink
  27. def runOnNone: Eff[R, Unit]

    Permalink
  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  29. def toString(): String

    Permalink
    Definition Classes
    Function1 → AnyRef → Any
  30. def transform[U1, U2, M[_], N[_]](t: ~>[M, N])(implicit m: Aux[M, R, U1], n: Aux[N, R, U2], into: IntoPoly[U1, U2]): Continuation[R, A, B]

    Permalink
  31. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from (A) ⇒ Eff[R, B]

Inherited from AnyRef

Inherited from Any

Ungrouped