UNPKG

@lumino/algorithm

Version:

Lumino Algorithms and Iterators

16 lines (15 loc) 304 B
/** * Create an empty iterator. * * @returns A new iterator which yields nothing. * * #### Example * ```typescript * import { empty } from '@lumino/algorithm'; * * let stream = empty<number>(); * * Array.from(stream); // [] * ``` */ export declare function empty<T>(): IterableIterator<T>;