basic_trie 1.0.0 copy "basic_trie: ^1.0.0" to clipboard
basic_trie: ^1.0.0 copied to clipboard

outdated

A simple trie implementation in Dart.

pub package Build Status

basic_trie #

A simple trie implementation in Dart.

Usage #

var trie = BasicTrie<int, String>();

trie.set([1, 2, 3], '123');
trie.set([1, 3, 5, 7], '1357');

// Full match.
print(trie.get([1, 2, 3]));
// Node{value: 123, map: {}}

// No match.
print(trie.get([1, 4]));
// null

// Partial match (key path is valid but doesn't have a value associated with it)
print(trie.get([1, 2]));
// Node{value: null, map: {3: Node{value: 123, map: {}}}}
0
likes
0
points
36
downloads

Publisher

verified publisherflutter-cavalry.com

Weekly Downloads

A simple trie implementation in Dart.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on basic_trie