jumplist
v0.1.0
Published
Yet another implementation of skiplist datastructure
Downloads
3
Readme
skiplist
Yet another implement of skiplist in nodejs
Install
Examples
var list = new JumpList();
list.set('a', 5);
list.set('b', 6);
list.set('c', 8);
list.set('d', 9);
list.get('b');
>>> 6
list.remove('a');
list.get('a');
>>> undefined
list.range('c', 'e', function(key, value) {
console.info('=', key, value);
});
>> = c 8
>> = d 9
list.getAt(0);
>> {key: 'b', value: 6}
list.getAt(2);
>> {key: 'd', value: 9}