final case class Fold[F[_], A, X](initial: A, reduce: (A, X) => F[A]) extends Product with Serializable
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Fold
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new Fold(initial: A, reduce: (A, X) => F[A])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def and[B, AB](that: Fold[F, B, X])(implicit F: Applicative[F]): Fold[F, (A, B), X]
- def andWith[B, AB](that: Fold[F, B, X])(ana: (A, B) => AB, cata: (AB) => (A, B))(implicit F: Applicative[F]): Fold[F, AB, X]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def contramap[Y](f: (Y) => X): Fold[F, A, Y]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def expand[B](init: (A) => B, read: (B) => A, update: (B, A) => B)(implicit F: Functor[F]): Fold[F, B, X]
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def focus[B](get: (A) => B)(set: (A, B) => A)(implicit F: Functor[F]): Fold[F, B, X]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def init(a: A): Fold[F, A, X]
- val initial: A
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def or[B, Y](that: Fold[F, B, Y])(implicit F: Functor[F]): Fold[F, (A, B), Either[X, Y]]
- def orWith[B, Y, AB, XY](that: Fold[F, B, Y])(anaAB: (A, B) => AB, cataAB: (AB) => (A, B), cataXY: (XY) => Either[X, Y])(implicit F: Functor[F]): Fold[F, AB, XY]
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val reduce: (A, X) => F[A]
- def runFoldable[G[_]](gb: G[X])(implicit arg0: Foldable[G], F: Monad[F]): F[A]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()