Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/rimbu/hashed/set-custom/index.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>
Re-export
Abstract
import { HashSetNonEmptyBase } from "https://deno.land/x/rimbu@0.13.1/hashed/set-custom/index.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>