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