(
func: () =>
IteratorResult<T>| Promise<IteratorResult<T>>)
| 63 | * @param func A function that produces data on each call. |
| 64 | */ |
| 65 | export function iteratorFromFunction<T>( |
| 66 | func: () => |
| 67 | IteratorResult<T>| Promise<IteratorResult<T>>): LazyIterator<T> { |
| 68 | return new FunctionCallIterator(func); |
| 69 | } |
| 70 | |
| 71 | /** |
| 72 | * Create a `LazyIterator` by concatenating underlying streams, which are |
no outgoing calls
no test coverage detected
searching dependent graphs…