No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Latest commit cd4c6ac Aug 3, 2018
Permalink
Failed to load latest commit information.
lib change find-char, closes #1 Jun 13, 2018
t change find-char, closes #1 Jun 13, 2018
.gitignore Initial Commit Jun 7, 2018
.travis.yml Initial Commit Jun 7, 2018
Changes Initial Commit Jun 7, 2018
LICENSE Initial Commit Jun 7, 2018
META6.json Fix META Aug 3, 2018
README.md Merge branch 'master' of https://github.com/FCO/Trie Aug 3, 2018
dist.ini Initial Commit Jun 7, 2018

README.md

Build Status

NAME

Trie - A pure perl6 implementation of the trie data structure.

SYNOPSIS

use Trie;
my Trie $t .= new;

$t.insert: $_ for <ability able about above accept according account>;
$t.insert: "agent", {complex => "data"};

say $t.get-all:    "ab";     # (ability able about above)
say $t.get-all:    "abov";   # (above)
say $t.get-single: "abov";   # "above"
#   $t.get-single: "ab";     # dies

say $t.get-single: "agent";  # {complex => "data"}

$t<all>   = 1;
$t<allow> = 2;
say $t<all>;                 # (1 2)

say $t[0];                   # ability
say $t[0 .. 3];              # (ability able about above)

say $t.find-substring: "cc"; # (accept according account)
say $t.find-fuzzy:     "ao"; # set(2 about above according account)

DESCRIPTION

Trie is a pure perl6 implementation of the trie data structure.

AUTHOR

Fernando Correa de Oliveira fernandocorrea@gmail.com

COPYRIGHT AND LICENSE

Copyright 2018 Fernando Correa de Oliveira

This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.