Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rimbu/hashed/set-custom/implementation/immutable.ts>HashSetNonEmptyBase

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
class HashSetNonEmptyBase
implements [HashSet.NonEmpty]<T>
extends NonEmptyBase<T>
Abstract
import { HashSetNonEmptyBase } from "https://deno.land/x/rimbu@1.0.4/hashed/set-custom/implementation/immutable.ts";

Properties

abstract
readonly
context: HashSetContext<T>
abstract
readonly
size: number

Methods

abstract
add(value: T): HashSetNonEmptyBase<T>
addAll(values: StreamSource<T>): HashSet.NonEmpty<T>
asNormal(): this
filter(pred: (
value: T,
index: number,
halt: () => void,
) => boolean
): HashSet<T>
abstract
forEach(f: (
value: T,
index: number,
halt: () => void,
) => void
, traverseState?: TraverseState
): void
abstract
has<U>(value: RelatedTo<T, U>): boolean
abstract
remove<U>(value: RelatedTo<T, U>): HashSet<T>
abstract
stream(): Stream.NonEmpty<T>
abstract
toArray(): ArrayNonEmpty<T>
toBuilder(): HashSet.Builder<T>
toString(): string
union(other: StreamSource<T>): HashSet.NonEmpty<T>