Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/willow/mod.browser.ts>PrefixIterator

Exploring Willow in the most efficient and sound programming language
Go to Latest
interface PrefixIterator
Re-export
import { type PrefixIterator } from "https://deno.land/x/willow@0.2.1/mod.browser.ts";

A data structure which stores Path-value pairs, and can efficiently track which paths are prefixes of others.

Methods

insert(path: Path, value: ValueType): Promise<void>
remove(path: Path): Promise<boolean>
prefixesOf(path: Path): AsyncIterable<[Path, ValueType]>

Return all paths that are prefixes of the given path

prefixedBy(path: Path): AsyncIterable<[Path, ValueType]>

Returns all paths that are prefixed by the given path