is_word: Is a word

Description Usage Arguments Value Examples

Description

Verify whether or not a given string is a word in the trie

Usage

1
is_word(str, trie)

Arguments

str

A character string that may or may not be a word in the trie.

trie

The trie to search.

Value

a Boolean

Examples

1
2
3
trie <- char_tree(c('able', 'act', 'acts', 'across','act',
                    'bat','babble','bobble'), 'X')
is_word('tree', trie)

ezgraphs/rtrie documentation built on May 16, 2019, 9:57 a.m.