The length to drop.
The dropped list.
const dropped = drop(2)(range(1, 6));
const iter = toIterator(dropped);
expect(iter.next()).toStrictEqual({ value: 3, done: false });
expect(iter.next()).toStrictEqual({ value: 4, done: false });
expect(iter.next()).toStrictEqual({ value: 5, done: false });
expect(iter.next()).toStrictEqual({ value: undefined, done: true });
Drops the prefix of length
count. Ifcount >= length(list), the empty list will be returned.