@altostra/core
Version:
Core library for shared types and logic
1 lines • 352 B
JavaScript
;Object.defineProperty(exports,"__esModule",{value:!0}),exports.Collection=void 0;const Iterable_1=require("./Iterable");class Collection extends Iterable_1.It{constructor(e,t){super(),this._cache=e,this._wrapper=t}_getWrapper(e){let t=this._cache.get(e);return t||(t=this._wrapper(e),this._cache.set(e,t)),t}}exports.Collection=Collection;