trie 1.0.2 copy "trie: ^1.0.2" to clipboard
trie: ^1.0.2 copied to clipboard

A comprehensive Trie implementation in Dart, optimized for autocomplete.

Trie #

A comprehensive Trie implementation in Dart, for Dart developers. Optimized for autocomplete. Made by Christopher Gong and Ankush Vangari.

Created from templates made available by Stagehand under a BSD-style license.

Full API docs are linked here.

Usage #

A simple usage example:

import 'package:trie/trie.dart';

main() {
    List<String> names = []; //your list goes here
    Trie trie = new Trie.list(names);
    trie.addWord("TURING");
    print("All names are: " + trie.getAllWords().toString());
    print("All names that begin with T are: " + trie.getAllWordsWithPrefix("T").toString());
}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

3
likes
40
pub points
16%
popularity

Publisher

unverified uploader

A comprehensive Trie implementation in Dart, optimized for autocomplete.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (LICENSE)

More

Packages that depend on trie