The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

DataStructure::BTree

SYNOPSIS

A binary tree data-structure, written in pure Perl.

DESCRIPTION

CONSTRUCTOR

DataStructure::BTree->new(%options)

Creates an empty binary tree.

Available options are:

cmp

The comparator used for the elements of the tree. Should be a reference to a sub using $a and $b. Defaults to using cmp if not specified.

multiset

Whether several identical values can be stored.