### ----------------------------------------------------
### -- AVL-Tree
### -- Licenses: Artistic-2.0
### -- Authors: Tom Browder <tbrowder@acm.org>
### -- File: dev/do.raku
### ----------------------------------------------------
use lib <./lib>;
use AVL-Tree;

my $tree = AVL-Tree.new;
for 1..10 {
    $tree.insert: $_;
}
$tree.show-keys;

my $n = $tree.find: 2;
$n ?? say $n.key !! say 'not found';



