1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | class ConcatIterator {
|
4 | constructor(toConcat) {
|
5 | this.toConcat = toConcat;
|
6 | }
|
7 | next() {
|
8 | if (this.toConcat.length === 0) {
|
9 | return { done: true };
|
10 | }
|
11 | const result = this.toConcat[0].next();
|
12 | if (!result.done) {
|
13 | return result;
|
14 | }
|
15 | this.toConcat.shift();
|
16 | return this.next();
|
17 | }
|
18 | }
|
19 | exports.ConcatIterator = ConcatIterator;
|
20 | //# sourceMappingURL=concat.js.map |
\ | No newline at end of file |