1 | import { IIterator, IterableOrArrayLike } from './iter';
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 | export declare function chain<T>(...objects: IterableOrArrayLike<T>[]): IIterator<T>;
|
23 |
|
24 |
|
25 |
|
26 | export declare class ChainIterator<T> implements IIterator<T> {
|
27 | |
28 |
|
29 |
|
30 |
|
31 |
|
32 | constructor(source: IIterator<IIterator<T>>);
|
33 | /**
|
34 | * Get an iterator over the object's values.
|
35 | *
|
36 | * @returns An iterator which yields the object's values.
|
37 | */
|
38 | iter(): IIterator<T>;
|
39 | /**
|
40 | * Create an independent clone of the iterator.
|
41 | *
|
42 | * @returns A new independent clone of the iterator.
|
43 | */
|
44 | clone(): IIterator<T>;
|
45 | /**
|
46 | * Get the next value from the iterator.
|
47 | *
|
48 | * @returns The next value from the iterator, or `undefined`.
|
49 | */
|
50 | next(): T | undefined;
|
51 | private _source;
|
52 | private _active;
|
53 | private _cloned;
|
54 | }
|
55 | //# sourceMappingURL=chain.d.ts.map |
\ | No newline at end of file |