Object/Trait

org.specs2.data

Fold

Related Docs: trait Fold | package data

Permalink

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
Visibility
  1. Public
  2. All

Type Members

  1. implicit class FoldOps[T] extends AnyRef

    Permalink
  2. implicit class sequenceFolds[T] extends AnyRef

    Permalink

    create a new Fold sequencing the effects of 2 Folds

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

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

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

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

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

    Permalink

    Monoid for Folds, where effects are sequenced

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

    Permalink

    Create a Fold from a side-effecting function

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

    Permalink

    Create a Fold from a Reducer

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

    Permalink

    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 */ }

    Permalink

    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 */ }

    Permalink

    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[_]

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

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

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

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

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

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

    Permalink

    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]

    Permalink

    Run a fold an return the last value

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

    Permalink

    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)]

    Permalink

    create a fold sink to output lines to a file

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

    Permalink
    Definition Classes
    AnyRef
  26. def toString(): String

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

    Permalink

    Unit Fold with no side-effect or accumulation

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

    Permalink

    Unit fold function

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

    Permalink

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

  30. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped