Skip to content

superisaac/node-jumplist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

skiplist

Yet another implement of skiplist in nodejs

Install

npm install jumplist

Examples

var JumpList = require('jumplist');
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}

About

Yet another implement of skiplist in nodejs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published