scalaz.Free

Return

case class Return [S[+_], +A] (a: A) extends Free[S, A] with Product with Serializable

Return from the computation with the given value.

Source
Free.scala
Linear Supertypes
Serializable, Serializable, Product, Equals, Free[S, A], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Return
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Free
  7. AnyRef
  8. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Return (a: A)

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. def >>= [B] (f: (A) ⇒ Free[S, B]): Free[S, B]

    Alias for flatMap

    Alias for flatMap

    Attributes
    final
    Definition Classes
    Free
  7. val a : A

  8. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  9. def canEqual (arg0: Any): Boolean

    Definition Classes
    Return → Equals
  10. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  11. def collect [B, C >: A] (implicit ev: $less$tilde$less[Free[S, C], Source[B, C]], S: Functor[S]): (Vector[B], C)

    Runs a Source all the way to the end, tail-recursively, collecting the produced values.

    Runs a Source all the way to the end, tail-recursively, collecting the produced values.

    Definition Classes
    Free
  12. def drain [E, B, C >: A] (source: Source[E, B])(implicit ev: $less$tilde$less[Free[S, C], Sink[E, C]], S: Functor[S]): (C, B)

    Feed the given source to this Sink.

    Feed the given source to this Sink.

    Definition Classes
    Free
  13. def drive [E, B, C >: A] (sink: Sink[Option[E], B])(implicit ev: $less$tilde$less[Free[S, C], Source[E, C]], S: Functor[S]): (C, B)

    Drive this Source with the given Sink.

    Drive this Source with the given Sink.

    Definition Classes
    Free
  14. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  15. def equals (arg0: Any): Boolean

    Definition Classes
    Return → Equals → AnyRef → Any
  16. def feed [E, C >: A] (ss: Stream[E])(implicit ev: $less$tilde$less[Free[S, C], Sink[E, C]], S: Functor[S]): C

    Feed the given stream to this Source.

    Feed the given stream to this Source.

    Definition Classes
    Free
  17. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  18. def flatMap [B] (f: (A) ⇒ Free[S, B]): Free[S, B]

    Binds the given continuation to the result of this computation.

    Binds the given continuation to the result of this computation. All left-associated binds are reassociated to the right.

    Attributes
    final
    Definition Classes
    Free
  19. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  20. def hashCode (): Int

    Definition Classes
    Return → AnyRef → Any
  21. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  22. def map [B] (f: (A) ⇒ B): Free[S, B]

    Attributes
    final
    Definition Classes
    Free
  23. def mapSuspension [T[+_]] (f: ~>[S, T])(implicit S: Functor[S]): Free[T, A]

    Modifies the suspension with the given natural transformation.

    Modifies the suspension with the given natural transformation.

    Attributes
    final
    Definition Classes
    Free
  24. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  25. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  26. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  27. def productArity : Int

    Definition Classes
    Return → Product
  28. def productElement (arg0: Int): Any

    Definition Classes
    Return → Product
  29. def productIterator : Iterator[Any]

    Definition Classes
    Product
  30. def productPrefix : String

    Definition Classes
    Return → Product
  31. def resume (implicit S: Functor[S]): Either[S[Free[S, A]], A]

    Evaluates a single layer of the free monad.

    Evaluates a single layer of the free monad.

    Attributes
    final
    Definition Classes
    Free
    Annotations
    @tailrec()
  32. def run [B >: A] (implicit ev: $less$tilde$less[Free[S, B], Trampoline[B]], S: Functor[S]): B

    Runs a trampoline all the way to the end, tail-recursively.

    Runs a trampoline all the way to the end, tail-recursively.

    Definition Classes
    Free
  33. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  34. def toString (): String

    Definition Classes
    Return → AnyRef → Any
  35. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  38. def zipWith [B, C] (tb: Free[S, B], f: (A, B) ⇒ C)(implicit S: Functor[S]): Free[S, C]

    Interleave this computation with another, combining the results with the given function.

    Interleave this computation with another, combining the results with the given function.

    Definition Classes
    Free

Deprecated Value Members

  1. def productElements : Iterator[Any]

    Definition Classes
    Product
    Annotations
    @deprecated
    Deprecated

    use productIterator instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Free[S, A]

Inherited from AnyRef

Inherited from Any