@jsdsl/iterator
Version:
A collection of classes that allow iteration over a predefined collection of elements.
3 lines (2 loc) • 607 B
JavaScript
Object.defineProperty(exports,"__esModule",{value:!0}),exports.AbstractIterator=void 0;const abstract_iterable_1=require("./abstract-iterable");class AbstractIterator extends abstract_iterable_1.AbstractIterable{forEachRemaining(t){for(let r of this)t(r)}remove(){throw new Error("ERR | #remove operation is not supported for this implementation of AbstractIterator.")}reset(){throw new Error("ERR | #reset operation is not supported for this implementation of AbstractIterator.")}iterator(){return this}}exports.AbstractIterator=AbstractIterator;
//# sourceMappingURL=abstract-iterator.js.map
;