import { curry } from '@typed/lambda'
export const drop = curry(__drop) as {
(amount: number, iterable: Iterable): Iterable
(amount: number): (iterable: Iterable) => Iterable
}
function* __drop(amount: number, iterable: Iterable): Iterable {
for (const x of iterable) {
if (--amount < 0) {
yield x
}
}
}