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

x/rimbu/core/menu/menu.ts>Set.Hashed

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
namespace Set.Hashed
import { Set } from "https://deno.land/x/rimbu@1.1.0/core/menu/menu.ts";
const { Hashed } = Set;

Interfaces

A mutable HashSet builder used to efficiently create new immutable instances. See the Set documentation and the HashSet.Builder API documentation

A context instance for a HashSet that acts as a factory for every instance of this type of collection.

A non-empty type-invariant immutable Set of value type T. In the Set, there are no duplicate values. See the Set documentation and the HashSet API documentation

Utility interface that provides higher-kinded types for this collection.

interface Set.Hashed
implements RSetBase<T, HashSet.Types>
import { type Set } from "https://deno.land/x/rimbu@1.1.0/core/menu/menu.ts";
const { Hashed } = Set;

A type-invariant immutable Set of value type T. In the Set, there are no duplicate values. See the Set documentation and the HashSet API documentation

Examples

Example 1

const s1 = HashSet.empty<string>()
const s2 = HashSet.of('a', 'b', 'c')
variable Set.Hashed
import { Set } from "https://deno.land/x/rimbu@1.1.0/core/menu/menu.ts";
const { Hashed } = Set;

type

HashSetCreators