Module / v2.0.0-beta.13

@typed/fx/RefTrie

26 unique exports available through this public import path, including their members and aliases.

import * as RefTrie from "@typed/fx/RefTrie";

Constructors

  • make

    function

    Creates a new RefTrie from a Trie, Effect, or Fx.

Derived queries

  • compact

    variable

    Compact Option values.

  • entries

    variable

    Get all entries from the Trie.

  • entriesWithPrefix

    variable

    Get all entries with a given prefix.

  • keys

    variable

    Get all keys from the Trie.

  • keysWithPrefix

    variable

    Get all keys with a given prefix.

  • longestPrefixOf

    variable

    Get the longest prefix of a key that exists in the Trie.

  • mapValues

    variable

    Map values to a different type.

  • reduce

    variable

    Reduce the entries to a single value.

  • size

    variable

    Get the current size of the Trie.

  • values

    variable

    Get all values from the Trie.

  • valuesWithPrefix

    variable

    Get all values with a given prefix.

Optional queries

  • get

    variable

    Get the value at a key as a Filtered.

State models

  • RefTrie

    interface

    A RefTrie is a RefSubject specialized over a Trie.

State predicates

  • has

    variable

    Check if a key exists in the Trie.

  • isEmpty

    variable

    Check if the Trie is empty.

  • isNonEmpty

    variable

    Check if the Trie is non-empty.

State updates

  • clear

    variable

    Clear all entries from the Trie.

  • filter

    variable

    Filter entries into a read-only derived trie.

  • filterMap

    variable

    Filter and map entries into a read-only derived trie.

  • insert

    variable

    Insert a key-value pair into the Trie.

  • insertMany

    variable

    Insert multiple key-value pairs into the Trie.

  • map

    variable

    Map values into a read-only derived trie.

  • modify

    variable

    Modify the value at a key if it exists.

  • remove

    variable

    Remove a key from the Trie.

  • removeMany

    variable

    Remove multiple keys from the Trie.