Skip to main content
Module

x/rimbu/mod.ts>ArrowGraphSorted.NonEmpty

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

A non-empty type-invariant immutable valued arrow (directed) graph. The connections are internally maintained using sorted collections See the Graph documentation and the ArrowGraphSorted API documentation

Methods

stream(): Stream.NonEmpty<GraphElement<N>>

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