OSet

stdx.collections.OSet
See theOSet companion object
trait OSet[C[_]] extends Stepable[C], OrderedFoldable[C]

Attributes

Companion
object
Experimental
true
Graph
Supertypes
trait OrderedFoldable[C]
trait Stepable[C]
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def empty[T](using Order[T]): C[T]

Extensions

Extensions

extension [T](c: C[T])
def asIndexedSeq: IndexedSeq[T]
def incl(u: T): C[T]

Inherited and Abstract extensions

extension [T](c: C[T])
def contains(t: T): Boolean

Attributes

Inherited from:
Stepable
def exists(predicate: T => Boolean): Boolean

Attributes

Inherited from:
Stepable
def filter(predicate: T => Boolean): C[T]

Attributes

Inherited from:
Stepable
def fold[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

Inherited from:
Stepable
def forAll(predicate: T => Boolean): Boolean

Attributes

Inherited from:
Stepable
def size: Int

Attributes

Inherited from:
Stepable
extension [A](container: C[A])
def ordFold[B](start: B)(fn: (accumulator: B, value: A) => B): B

Attributes

Inherited from:
OrderedFoldable