org.specs2.data

Fold

Related Docs: trait Fold | package data

object Fold

Fold functions and typeclasses

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Fold
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. implicit class FoldOps[T] extends AnyRef

  2. implicit class sequenceFolds[T] extends AnyRef

    create a new Fold sequencing the effects of 2 Folds

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

    Definition Classes
    Any
  5. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. implicit def foldMonoid[T]: Monoid[Fold[T]]

    Monoid for Folds, where effects are sequenced

  10. def fromFunction[T](f: (T) ⇒ Task[Unit]): Fold[T]

    Create a Fold from a side-effecting function

  11. def fromReducer[T, S1](reducer: Reducer[T, S1]): Fold[T]

    Create a Fold from a Reducer

  12. def fromReducerAndLast[T, S1](reducer: Reducer[T, S1], lastTask: (S1) ⇒ Task[Unit]): Fold[T]

    Create a Fold from a Reducer and a last action

  13. def fromSink[T](aSink: Sink[Task, T]): Fold[T] { ... /* 2 definitions in type refinement */ }

    Create a Fold from a Sink with no accumulation

  14. def fromState[T, S1](state: (T, S1) ⇒ S1)(initial: S1): Fold[T] { ... /* 2 definitions in type refinement */ }

    Transform a simple sink where the written value doesn't depend on the current state into a sink where the current state is passed all the time (and actually ignored) Create a Fold a State function

  15. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

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

    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  21. def runFold[T](process: Process[Task, T], fold: Fold[T]): Task[Unit]

    Run a Fold an let it perform a last action with the accumulated state

  22. def runFoldLast[T](process: Process[Task, T], fold: Fold[T]): Task[S]

    Run a fold an return the last value

  23. def runFolds[T](process: Process[Task, T], folds: List[Fold[T]]): Task[Unit]

    Run a list of Folds, sequenced with the Fold Monoid

  24. def showToFilePath[T, S](path: FilePath)(implicit arg0: Show[T]): Sink[Task, (T, S)]

    create a fold sink to output lines to a file

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

    Definition Classes
    AnyRef
  26. def toString(): String

    Definition Classes
    AnyRef → Any
  27. def unit[T]: Fold[T] { ... /* 2 definitions in type refinement */ }

    Unit Fold with no side-effect or accumulation

  28. def unitFoldFunction[T]: (T, Unit) ⇒ Unit

    Unit fold function

  29. def unitSink[T, S]: Sink[Task, (T, S)]

    This Sink doesn't do anything It can be used to build a Fold that does accumulation only

  30. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped