object Fold
- Source
- Fold.scala
- Alphabetic
- By Inheritance
- Fold
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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
- final def apply[S, A](f: (S) => A): Fold[S, A]
create a monomorphic Fold from a getter function
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- final def both[G[_, _], A](implicit arg0: Bifoldable[G]): Fold[G[A, A], A]
fold both parts of a cats.Bifoldable with matching types
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def drop[G[_], A](i: Int)(implicit arg0: Foldable[G]): Fold[G[A], A]
create a monomorphic Fold that selects all elements of a Foldable except the first n ones
- final def dropWhile[G[_], A](predicate: (A) => Boolean)(implicit arg0: Foldable[G]): Fold[G[A], A]
create a monomorphic Fold that drop longest prefix of elements of a Foldable that satisfy a predicate
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def filter[A, B](fold: Fold[A, B]): Fold[A, A]
create a monomorphic Fold using a Fold to filter out elements of future optics composed with this Fold_
- final def filter[A](predicate: (A) => Boolean): Fold[A, A]
create a monomorphic Fold using a predicate to filter out elements of future optics composed with this Fold_
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def fromFoldable[F[_], A](implicit arg0: Foldable[F]): Fold[F[A], A]
create a monomorphic Fold from cats.Foldable
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def has[S, A](fold: Fold[S, A]): (S) => Boolean
check to see if a Fold matches one or more entries
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def id[S]: Fold[S, S]
monomorphic identity of a Fold
- 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()
- final def single[F[_], A](i: Int)(implicit arg0: Foldable[F]): Fold[F[A], A]
create a monomorphic Fold that narrows the focus to a single element
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def take[G[_], A](i: Int)(implicit arg0: Foldable[G]): Fold[G[A], A]
create a monomorphic Fold that selects the first n elements of a Foldable
- final def takeWhile[G[_], A](predicate: (A) => Boolean)(implicit arg0: Foldable[G]): Fold[G[A], A]
create a monomorphic Fold that takes the longest prefix of elements of a Foldable that satisfy a predicate
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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()