UNPKG

sequency

Version:

Functional sequences for processing iterable data in JavaScript

8 lines (7 loc) 275 B
export default class GeneratorSeedIterator<T> implements Iterator<T> { private readonly seed; private readonly nextFunction; private prevItem; constructor(seed: T, nextFunction: (value: T) => T | null | undefined); next(value?: any): IteratorResult<T>; }