export default function _shift(x) {
    assert(x instanceof Node);
    assert(x.prev === null);
    const next = x.next;
    assert(next !== null);