graph-builder
Version:
A graph builder library for modeling abstract graph structures.
13 lines (12 loc) • 513 B
TypeScript
export declare namespace Iterators {
/**
* Returns a view containing the result of applying `function` to each element of
* `fromIterator`.
*
* <p>The returned iterator supports `remove()` if `fromIterator` does. After a
* successful `remove()` call, `fromIterator` no longer contains the corresponding
* element.
*/
const transform: <F, T>(fromIterator: Iterator<F>, mapper: (a: F) => T) => Iterator<T>;
const concat: <N>(a: Iterator<N>, b: Iterator<N>) => Iterator<N>;
}