{"version":3,"sources":["jsdelivr-header.js","/npm/functor-iterable@0.1.3/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,MAAM,QAAU,QAAQ,sBAClB,KAAO,QAAQ,wBACf,OAAS,QAAQ,0BAEvB,SAAS,gBAAiB,GACtB,KAAK,SAAW,EAChB,KAAK,GAAK,QAAQ,GACtB,CAEA,SAAS,IAAK,GACV,MAAM,EAAM,OAAO,OAAO,KAAK,YAAY,WAG3C,OAFA,EAAI,GAAK,KAAK,EAAG,KAAK,IACtB,EAAI,SAAW,KAAK,SACb,CACX,CAEA,MAAM,MAAQ,CAAC,EAAG,IAAM,EAAE,GAE1B,OAAO,iBAAiB,gBAAgB,UAAW,CAC/C,IAAK,CACD,MAAO,KAEX,CAAC,OAAO,UAAW,CACf,MAAE,GACE,MAAM,EAAK,KAAK,GACV,EAAW,KAAK,SACtB,IAAK,MAAM,KAAO,QACR,OAAO,MAAO,EAAK,EAEjC,KAIR,OAAO,QAAU","file":"/npm/functor-iterable@0.1.3/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/functor-iterable@0.1.3/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","const arrayOf = require('immutable-array.of')\nconst push = require('immutable-array.push')\nconst reduce = require('immutable-array.reduce')\n\nfunction FunctorIterable (iterable) {\n    this.iterable = iterable\n    this.fs = arrayOf([])\n}\n\nfunction map (f) {\n    const obj = Object.create(this.constructor.prototype)\n    obj.fs = push(f, this.fs)\n    obj.iterable = this.iterable\n    return obj\n}\n\nconst apply = (a, f) => f(a)\n\nObject.defineProperties(FunctorIterable.prototype, {\n    map: {\n        value: map\n    },\n    [Symbol.iterator]: {\n        * value () {\n            const fs = this.fs\n            const iterable = this.iterable\n            for (const val of iterable) {\n                yield reduce(apply, val, fs)\n            }\n        }\n    }\n})\n\nmodule.exports = FunctorIterable\n"]}