"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _default=func=>{
const cache=new WeakMap;
return arg=>{
if(cache.has(arg)){
return cache.get(arg);
}
const result=func(arg);
cache.set(arg,result);
return result;
};
};exports.default=_default;