UNPKG

lib0

Version:

isomorphic utility functions

5 lines • 436 B
export function mapIterator<T, R>(iterator: Iterator<T>, f: (v: T) => R): IterableIterator<R>; export function createIterator<T>(next: () => IteratorResult<T>): IterableIterator<T>; export function iteratorFilter<T>(iterator: Iterator<T>, filter: (v: T) => boolean): IterableIterator<T>; export function iteratorMap<T, M>(iterator: Iterator<T>, fmap: (v: T) => M): IterableIterator<M | undefined>; //# sourceMappingURL=iterator.d.ts.map