0.1.1 • Published 8 months ago

@bablr/btree v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

@bablr/btree

Functional utilities for working with btrees such as those used in agAST. These trees could also correctly be termed sum trees, and are represented as:

let leafNode = [...data];

let branchNode = [sum, [...nodes]];

let tree = [3, [[node1, node2], [node3]]];

You can differentiate non-leaf nodes because they have a number as their first element. This is possible the data stored in this tree will always be object-typed.

0.1.1

8 months ago

0.1.0

9 months ago