Finds all words that match the prefix in the trie.

trie_find_prefix(trie, prefix)

Arguments

trie

A trie.

prefix

The prefix of the words to search for.

Value

List of words matching the prefix

Examples

trie <- trie_create() trie_find_prefix(trie, "be")
#> character(0)