aureooms/js-skip-list

View on GitHub
src/iter.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import assert from 'assert';

export default function* iter(head) {
    assert(head !== null);
    while (head.right !== null) {
        head = head.right;
        yield head;
    }
}