0.1.0 • Published 10 years ago

jumplist v0.1.0

Weekly downloads
4
License
PUBLIC
Repository
github
Last release
10 years ago

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}