@aureooms/js-skip-list
v0.0.1
Published
Skip list data structure for JavaScript
Downloads
9
Maintainers
Readme
:fast_forward: @aureooms/js-skip-list
Skip list data structure for JavaScript. See docs.
:warning: The code requires
regeneratorRuntime
to be defined, for instance by importing regenerator-runtime/runtime.
import {decreasing} from '@aureooms/js-compare';
import {range} from '@aureooms/js-itertools';
import SkipList from '@aureooms/js-skip-list';
const list = SkipList.from(decreasing, range(10000));
[...list]; // [9999, 9998, ...]
list.add(...)
list.get(...)
list.has(...)
list.remove(...)