• Sets a new key-value pair to the trie.

    Returns

    The leaf to which the value was set.

    Type Parameters

    • T

      The value stored in a trie.

    Parameters

    • trie: Trie<T>

      The trie root.

    • key: string

      The key of to add to the trie.

    • value: T

      The value to associate with the key.

    Returns Trie<T>

Generated using TypeDoc