radix_tree 1.1.2
radix_tree: ^1.1.2 copied to clipboard

Dart implementation of the Radix Tree data structure.

example/example.dart

import 'package:radix_tree/radix_tree.dart';

void main(List<String> args) {
  var tree = RadixTree<int>();
  tree['paku'] = 1;
  tree['piku'] = 2;
  tree['pako'] = 3;
  print(tree.keys);
  print(tree.getValuesWithPrefix('p')); // [1, 3, 2]
  print(tree.getValuesWithPrefix('pa')); // [1, 3]
}
3
likes
120
pub points
43%
popularity

Dart implementation of the Radix Tree data structure.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

meta

More

Packages that depend on radix_tree