Pure-functional Red-Black Tree Map for JavaScript
rbt
is a bare-minimum implmentation of functional red-black tree in
JavaScript.
Usage
Node.js
npm install rbt
Then require it.
var rbtree = ;var map1 = rbtree;var map2 = map1;map1; // 2map2; // 50
Browser
Also see spec.
API
Use the source, Luke!
- static
fromObject
- static
empty
has
add
get
count
iter
map
reduce
toObject