michangarrito/apps/backend/node_modules/iterare/lib/concat.js
rckrdmrd 97f407c661 [MIGRATION-V2] feat: Migrar michangarrito a estructura v2
- Prefijo v2: MCH
- TRACEABILITY-MASTER.yml creado
- Listo para integracion como submodulo

Workspace: v2.0.0 | SIMCO: v4.0.0
2026-01-10 11:28:54 -06:00

20 lines
523 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class ConcatIterator {
constructor(toConcat) {
this.toConcat = toConcat;
}
next() {
if (this.toConcat.length === 0) {
return { done: true };
}
const result = this.toConcat[0].next();
if (!result.done) {
return result;
}
this.toConcat.shift();
return this.next();
}
}
exports.ConcatIterator = ConcatIterator;
//# sourceMappingURL=concat.js.map