flattree 1.0.0

helpers for representing a binary tree on a list
Documentation

flat-tree

You can represent a binary tree in a simple flat list using the following structure

      3
  1       5
0   2   4   6  ...

This create includes a series of helpers to map or traverse a binary tree on a list.

This crate is an almost line-by-line translation from mafintosh/flat-tree. I'm using it as an excuse to write some rust.

LICENSE

The MIT License