UNPKG

1.18 kBPlain TextView Raw
1{"code":"function defineName$__(cls,name){\n\tObject.defineProperty(cls,\"name\",{value:name,configurable:true});\n};;\nfunction extend$__(target,ext){\n\t// @ts-ignore\n\tconst descriptors = Object.getOwnPropertyDescriptors(ext);\n\tdelete descriptors.constructor;\n\tif(target.extend__ instanceof Function){\n\t\ttarget.extend__(descriptors,ext);\n\t} else {\n\t\t// @ts-ignore\n\t\tObject.defineProperties(target,descriptors);\n\t}\n\treturn target;\n};\n\n/*body*/\nclass ΩSet {\n\t\n\t\n\tfilter(cb){\n\t\t\n\t\treturn new Set(Array.from(this).filter(cb));\n\t}\n\tstatic {\n\t\tdefineName$__(this,'Set');}\n};\nextend$__(Set.prototype,ΩSet.prototype);\n;\n","map":{"version":3,"file":"set.js","sourceRoot":"","sources":["/Users/abdellah/workspace/scrimba/imba/packages/imba/src/utils/std/set.imba"],"sourcesContent":["extend class Set\n\n\tdef filter cb\n\t\tnew Set(Array.from(self).filter(cb))\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAO,KAAK,CAAC,IAAG,EAAA;;;CAEX,MAAM,CAAC,EAAE,CAAA;;EACZ,OAAA,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;EAAA;;;AAAA;UAHzB,GAAG;AAGsB;AACtC;"},"dependencies":[],"meta":{"vite":{"lang":"js"}}}
\No newline at end of file