scalaz

Free

trait Free [S[+_], +A] extends AnyRef

A free operational monad for some functor S. Binding is done using the heap instead of the stack, allowing tail-call elimination.

Attributes
sealed
Source
Free.scala
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Free
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

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
  7. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  8. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  9. 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.

  10. 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.

  11. 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.

  12. def eq (arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  14. 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.

  15. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  16. 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
  17. def getClass (): java.lang.Class[_]

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

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

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

    Attributes
    final
  21. 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
  22. def ne (arg0: AnyRef): Boolean

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

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

    Attributes
    final
    Definition Classes
    AnyRef
  25. 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
    Annotations
    @tailrec()
  26. 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.

  27. def synchronized [T0] (arg0: ⇒ T0): T0

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

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  32. 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.

Inherited from AnyRef

Inherited from Any