Foldable

stdx.collections.Foldable
trait Foldable[C[_]]

Attributes

Experimental
true
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Chain[C]
trait OSet[C]

Members list

Extensions

Extensions

extension [T](c: C[T])
def asIndexedSeq: IndexedSeq[T]
def contains(t: T): Boolean
def exists(predicate: T => Boolean): Boolean
def filter(predicate: T => Boolean): C[T]
def foldL[U](acc: U)(op: (U, T) => U): U

Steps through a collection, processing all elements into type U Note: Fold has no defined ordering, stepping through elements in whatever fashion makes sense for the collection

Steps through a collection, processing all elements into type U Note: Fold has no defined ordering, stepping through elements in whatever fashion makes sense for the collection

Attributes

def forAll(predicate: T => Boolean): Boolean
def size: Int