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

outdatedDart 1 only

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.

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
0
pub points
40%
popularity

Publisher

unverified uploader

A comprehensive Trie implementation in Dart, optimized for autocomplete.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on trie