Prelude API
    Preparing search index...

    Function prefixes

    • Yields all prefixes of the input string that exist in the trie (from the shortest to the longest).

      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<string>

      The prefixes found in the trie from shortest to longest