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

x/rimbu/graph/mod.ts>ArrowValuedGraphHashed.NonEmpty

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
interface ArrowValuedGraphHashed.NonEmpty
implements [ArrowValuedGraphBase.NonEmpty]<N, V, ArrowValuedGraphHashed.Types>, Omit<ArrowValuedGraphHashed<N, V>, keyof ArrowValuedGraphBase.NonEmpty<any, any, any>>, [Streamable.NonEmpty]<ValuedGraphElement<N, V>>
import { type ArrowValuedGraphHashed } from "https://deno.land/x/rimbu@1.2.0/graph/mod.ts";
const { NonEmpty } = ArrowValuedGraphHashed;

A non-empty type-invariant immutable valued arrow (directed) graph. The nodes are internally maintained using HashMaps See the Graph documentation and the ArrowValuedGraphHashed API documentation

Methods

stream(): Stream.NonEmpty<ValuedGraphElement<N, V>>

Returns a non-empty Stream containing all entries of this collection as tuples of key and value.