Prelude API
    Preparing search index...

    Function prefixLengths

    • Yields the lengths of all prefixes of the input string that exist in the trie.

      Parameters

      • trie: t

        The radix trie to search in

      • input: string

        The string to find prefixes for

      • offset: number = 0

        The starting offset in the input string

      Returns Generator<number>

      The lengths of all prefixes found in the trie