Packages

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

Source
Continuation.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Continuation
  2. Serializable
  3. Product
  4. Equals
  5. Function1
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

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

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def andThen[A](g: (Eff[R, B]) => A): (A) => A
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  5. def append[C](f: (B) => Eff[R, C]): Continuation[R, A, C]

    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]

    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]
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  10. def compose[A](g: (A) => A): (A) => Eff[R, B]
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  11. def contraFlatMap[C](f: (C) => Eff[R, A]): Continuation[R, C, B]
  12. def contramap[C](f: (C) => A): Continuation[R, C, B]
  13. def dimapEff[C, D](f: (C) => A)(g: (Eff[R, B]) => Eff[R, D]): Continuation[R, C, D]

    adapt the input and output of an Arrs function

  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  16. val functions: Vector[(Any) => Eff[R, Any]]
  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. def interpret[U, C](map: (Eff[R, B]) => Eff[U, C])(mapOnNone: (Last[R]) => Last[U]): Continuation[U, A, C]

    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]

    create an Arrs function from the result of another Arrs function

  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. def map[C](f: (B) => C): Continuation[R, A, C]

    map the last value

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

    map the last returned effect

  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. val onNone: Last[R]
  27. def productElementNames: Iterator[String]
    Definition Classes
    Product
  28. def runOnNone: Eff[R, Unit]
  29. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  30. def toString(): String
    Definition Classes
    Function1 → AnyRef → Any
  31. 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]
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from (A) => Eff[R, B]

Inherited from AnyRef

Inherited from Any

Ungrouped