radix_tree 2.0.1 copy "radix_tree: ^2.0.1" to clipboard
radix_tree: ^2.0.1 copied to clipboard

Map based Dart implementation of the Radix Tree data structure.

example/example.dart

// ignore_for_file: avoid_print

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]
}
4
likes
140
pub points
35%
popularity

Publisher

unverified uploader

Map based Dart implementation of the Radix Tree data structure.

Repository (GitHub)
View/report issues

Documentation

API reference

Funding

Consider supporting this project:

www.buymeacoffee.com

License

MIT (LICENSE)

Dependencies

meta

More

Packages that depend on radix_tree