org.specs2.data

Fold

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: AnyRef): Boolean

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

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

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

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

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

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

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

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

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

    Monoid for Folds, where effects are sequenced

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

    Create a Fold from a side-effecting function

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

    Create a Fold from a Reducer

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

    Create a Fold from a Reducer and a last action

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

    Create a Fold from a Sink with no accumulation

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  23. 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

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

    Run a fold an return the last value

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

    Run a list of Folds, sequenced with the Fold Monoid

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

    create a fold sink to output lines to a file

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

    Definition Classes
    AnyRef
  28. def toString(): String

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

    Unit Fold with no side-effect or accumulation

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

    Unit fold function

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

  32. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped