functype 0.8.0 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/README.md +3 -3
  2. package/dist/chunk-6GSI27WU.js +1 -0
  3. package/dist/chunk-AB3QRD66.js +1 -0
  4. package/dist/chunk-BSQMHA7A.js +1 -0
  5. package/dist/chunk-I7TGEFK5.mjs +1 -0
  6. package/dist/chunk-JQ7HMWOT.mjs +1 -0
  7. package/dist/chunk-N3GTVYCO.js +1 -0
  8. package/dist/chunk-O7DO2OKU.mjs +1 -0
  9. package/dist/{chunk-VUD7L2T6.mjs → chunk-OWW7KOUW.mjs} +1 -1
  10. package/dist/chunk-PJIXAQSQ.mjs +1 -0
  11. package/dist/chunk-Q65ZRGZH.js +1 -0
  12. package/dist/collections/index.d.mts +2 -2
  13. package/dist/collections/index.d.ts +2 -2
  14. package/dist/either/Either.d.mts +2 -2
  15. package/dist/either/Either.d.ts +2 -2
  16. package/dist/either/Either.js +1 -1
  17. package/dist/either/Either.mjs +1 -1
  18. package/dist/{index-BB5a793T.d.mts → index-5xp8zYMn.d.mts} +5 -30
  19. package/dist/{index-DyWcaZaG.d.ts → index-8YakfACG.d.ts} +5 -30
  20. package/dist/index.d.mts +2 -2
  21. package/dist/index.d.ts +2 -2
  22. package/dist/index.js +1 -1
  23. package/dist/index.mjs +1 -1
  24. package/dist/iterable/Seq.d.mts +2 -2
  25. package/dist/iterable/Seq.d.ts +2 -2
  26. package/dist/iterable/Seq.js +1 -1
  27. package/dist/iterable/Seq.mjs +1 -1
  28. package/dist/iterable/index.d.mts +2 -2
  29. package/dist/iterable/index.d.ts +2 -2
  30. package/dist/iterable/index.js +1 -1
  31. package/dist/iterable/index.mjs +1 -1
  32. package/dist/list/List.d.mts +2 -2
  33. package/dist/list/List.d.ts +2 -2
  34. package/dist/list/List.js +1 -1
  35. package/dist/list/List.mjs +1 -1
  36. package/dist/map/Map.d.mts +2 -2
  37. package/dist/map/Map.d.ts +2 -2
  38. package/dist/map/Map.js +1 -1
  39. package/dist/map/Map.mjs +1 -1
  40. package/dist/option/Option.d.mts +2 -2
  41. package/dist/option/Option.d.ts +2 -2
  42. package/dist/option/Option.js +1 -1
  43. package/dist/option/Option.mjs +1 -1
  44. package/dist/set/Set.d.mts +2 -2
  45. package/dist/set/Set.d.ts +2 -2
  46. package/dist/set/Set.js +1 -1
  47. package/dist/set/Set.mjs +1 -1
  48. package/dist/try/Try.d.mts +2 -2
  49. package/dist/try/Try.d.ts +2 -2
  50. package/dist/try/Try.js +1 -1
  51. package/dist/try/Try.mjs +1 -1
  52. package/dist/typeable/Typeable.d.mts +6 -0
  53. package/dist/typeable/Typeable.d.ts +6 -0
  54. package/dist/typeable/Typeable.js +1 -0
  55. package/dist/typeable/Typeable.mjs +1 -0
  56. package/dist/util/index.d.mts +2 -2
  57. package/dist/util/index.d.ts +2 -2
  58. package/dist/util/index.js +1 -1
  59. package/dist/util/index.mjs +1 -1
  60. package/dist/util/isIterable.d.mts +1 -1
  61. package/dist/util/isIterable.d.ts +1 -1
  62. package/lib/collections/index.d.ts +2 -2
  63. package/lib/either/Either.d.ts +4 -8
  64. package/lib/index.d.ts +7 -10
  65. package/lib/iterable/Seq.d.ts +1 -1
  66. package/lib/iterable/index.d.ts +1 -1
  67. package/lib/list/List.d.ts +2 -2
  68. package/lib/map/Map.d.ts +4 -3
  69. package/lib/option/Option.d.ts +3 -6
  70. package/lib/set/Set.d.ts +1 -1
  71. package/lib/try/Try.d.ts +3 -7
  72. package/lib/typeable/Typeable.d.ts +4 -0
  73. package/lib/util/index.d.ts +1 -1
  74. package/lib/util/isIterable.d.ts +1 -1
  75. package/package.json +4 -4
  76. package/dist/chunk-3OHJLCSR.mjs +0 -0
  77. package/dist/chunk-3Y43FJKZ.mjs +0 -1
  78. package/dist/chunk-4AEODSGH.mjs +0 -1
  79. package/dist/chunk-4PGXHDAS.js +0 -1
  80. package/dist/chunk-6BEXQNLZ.js +0 -1
  81. package/dist/chunk-E3BAZBU2.js +0 -1
  82. package/dist/chunk-FMHIRYL5.mjs +0 -1
  83. package/dist/chunk-GPS3OL5F.mjs +0 -1
  84. package/dist/chunk-HJAAA6CD.mjs +0 -1
  85. package/dist/chunk-KWPKGISB.js +0 -1
  86. package/dist/chunk-PMZTOIT2.js +0 -1
  87. package/dist/chunk-Q4H3PCBH.mjs +0 -0
  88. package/dist/chunk-REXFLQTJ.js +0 -1
  89. package/dist/chunk-TVCOFH5I.js +0 -1
  90. package/dist/chunk-WDHUQRFT.js +0 -1
  91. package/dist/chunk-ZMF3MVW7.mjs +0 -1
  92. package/dist/chunk-ZOH672YH.js +0 -1
  93. package/dist/either/index.d.mts +0 -4
  94. package/dist/either/index.d.ts +0 -4
  95. package/dist/either/index.js +0 -1
  96. package/dist/either/index.mjs +0 -1
  97. package/dist/list/index.d.mts +0 -4
  98. package/dist/list/index.d.ts +0 -4
  99. package/dist/list/index.js +0 -1
  100. package/dist/list/index.mjs +0 -1
  101. package/dist/map/index.d.mts +0 -4
  102. package/dist/map/index.d.ts +0 -4
  103. package/dist/map/index.js +0 -1
  104. package/dist/map/index.mjs +0 -1
  105. package/dist/option/index.d.mts +0 -4
  106. package/dist/option/index.d.ts +0 -4
  107. package/dist/option/index.js +0 -1
  108. package/dist/option/index.mjs +0 -1
  109. package/dist/set/index.d.mts +0 -4
  110. package/dist/set/index.d.ts +0 -4
  111. package/dist/set/index.js +0 -1
  112. package/dist/set/index.mjs +0 -1
  113. package/dist/try/index.d.mts +0 -4
  114. package/dist/try/index.d.ts +0 -4
  115. package/dist/try/index.js +0 -1
  116. package/dist/try/index.mjs +0 -1
  117. package/dist/tuple/index.d.mts +0 -7
  118. package/dist/tuple/index.d.ts +0 -7
  119. package/dist/tuple/index.js +0 -1
  120. package/dist/tuple/index.mjs +0 -1
package/README.md CHANGED
@@ -1,3 +1,3 @@
1
- ## functype
2
-
3
- A small functional library for TypeScript
1
+ ## functype
2
+
3
+ A small functional library for TypeScript
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk5VTXJIR3js = require('./chunk-5VTXJIR3.js');var _chunkOXLZ6UIZjs = require('./chunk-OXLZ6UIZ.js');var _chunkN3GTVYCOjs = require('./chunk-N3GTVYCO.js');var _chunkAB3QRD66js = require('./chunk-AB3QRD66.js');var o=n=>{let a={values:new (0, _chunk5VTXJIR3js.a)(n)},r=()=>Array.from(a.values.entries()).map(([e,t])=>_chunkOXLZ6UIZjs.a.call(void 0, [e,t])),i=e=>o(new (0, _chunk5VTXJIR3js.a)(a.values).set(e.toArray()[0],e.toArray()[1]).entries()),c=e=>{let t=new (0, _chunk5VTXJIR3js.a)(a.values);return t.delete(e)?o(t.entries()):o(a.values.entries())},m=e=>a.values.get(e[0])===e[1],f=()=>a.values.size,v=e=>o(Array.from(a.values.entries()).map(([t,O])=>[t,e(O)])),M=e=>{let t=o(a.values.entries()).toList();return o(t.flatMap(e).toArray())},T=e=>_chunkAB3QRD66js.e.call(void 0, r()).reduce(e),g=e=>_chunkAB3QRD66js.e.call(void 0, r()).reduceRight(e),y=e=>t=>_chunkAB3QRD66js.e.call(void 0, r()).foldLeft(e)(t),d=e=>t=>_chunkAB3QRD66js.e.call(void 0, r()).foldRight(e)(t),S=e=>_chunkAB3QRD66js.c.call(void 0, a.values.get(e)),b=(e,t)=>_chunkAB3QRD66js.c.call(void 0, a.values.get(e)).getOrElse(t),E=()=>a.values.size===0;return{add:i,remove:c,contains:m,get size(){return f()},map:v,flatMap:M,reduce:T,reduceRight:g,foldLeft:y,foldRight:d,get:S,getOrElse:b,get isEmpty(){return E()},orElse:(e,t)=>_chunkAB3QRD66js.c.call(void 0, a.values.get(e)).orElse(t),toList:()=>_chunkN3GTVYCOjs.b.call(void 0, r()),toSet:()=>_chunkN3GTVYCOjs.a.call(void 0, r()),toString:()=>`Map(${r().toString()})`}},C= exports.a =n=>o(n);exports.a = C;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkBNNK42JCjs = require('./chunk-BNNK42JC.js');var n=e=>{let r=_chunkBNNK42JCjs.a.call(void 0, e)?e:e instanceof Object&&"toArray"in e?e.toArray():[],t=Array.from(r);return{[Symbol.iterator]:()=>t[Symbol.iterator](),get length(){return t.length},map:o=>n(t.map(o)),flatMap:o=>n(t.flatMap(a=>o(a).toArray())),forEach:o=>t.forEach(o),count:o=>t.filter(o).length,exists:o=>t.some(o),filter:o=>n(t.filter(o)),filterNot:o=>n(t.filter(a=>!o(a))),find:o=>i(t.find(o)),get head(){return t[0]},get headOption(){return t.length>0?i(t[0]):p()},get isEmpty(){return t.length===0},get size(){return t.length},toArray:()=>[...t],reduce:o=>t.reduce(o),reduceRight:o=>t.reduceRight(o),foldLeft:o=>a=>t.reduce(a,o),foldRight:o=>a=>t.reduceRight((B,b)=>a(b,B),o),valueOf:()=>({values:t})}},l= exports.e =e=>n(e);var A=e=>({_tag:"Some",value:e,isEmpty:!1,get:()=>e,getOrElse:()=>e,orElse:()=>A(e),map:r=>A(r(e)),flatMap:r=>r(e),reduce:r=>r(void 0,e),reduceRight:r=>r(void 0,e),foldLeft:r=>t=>t(r,e),foldRight:r=>t=>t(e,r),toList:()=>l([e]),contains:r=>r===e,size:1,valueOf:()=>({_tag:"Some",value:e}),toString:()=>`Some(${JSON.stringify(e)})`}),f={_tag:"None",value:void 0,isEmpty:!0,get:()=>{throw new Error("Cannot call get() on None")},getOrElse:e=>e,orElse:e=>e,map:()=>f,flatMap:()=>f,reduce:()=>{},reduceRight:()=>{},foldLeft:e=>()=>e,foldRight:e=>()=>e,toList:()=>l([]),contains:()=>!1,size:0,valueOf:()=>({_tag:"None"}),toString:()=>"None"},p= exports.b =()=>f,i= exports.c =e=>e!=null?A(e):p();exports.a = A; exports.b = p; exports.c = i; exports.d = n; exports.e = l;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkN3GTVYCOjs = require('./chunk-N3GTVYCO.js');var _chunkAB3QRD66js = require('./chunk-AB3QRD66.js');var R=t=>({_tag:"Right",value:t,isLeft:()=>!1,isRight:()=>!0,map:e=>R(e(t)),flatMap:e=>e(t),toOption:()=>_chunkAB3QRD66js.a.call(void 0, t),toList:()=>_chunkN3GTVYCOjs.b.call(void 0, [t]),valueOf:()=>({_tag:"Right",value:t}),toString:()=>`Right(${JSON.stringify(t)})`}),r=t=>({_tag:"Left",value:t,isLeft:()=>!0,isRight:()=>!1,map:e=>r(t),flatMap:e=>r(t),toOption:()=>_chunkAB3QRD66js.b.call(void 0, ),toList:()=>_chunkN3GTVYCOjs.b.call(void 0, ),valueOf:()=>({_tag:"Left",value:t}),toString:()=>`Left(${JSON.stringify(t)})`}),s= exports.a =t=>R(t),h= exports.b =t=>r(t),g= exports.c =t=>t.isRight(),U= exports.d =t=>t.isLeft(),E= exports.e =(t,e)=>{try{return s(t())}catch(n){return h(e(n))}};exports.a = s; exports.b = h; exports.c = g; exports.d = U; exports.e = E;
@@ -0,0 +1 @@
1
+ import{a as m}from"./chunk-HA5XD5KC.mjs";import{c as S,e as l}from"./chunk-O7DO2OKU.mjs";import{a as b}from"./chunk-RRAIFS3D.mjs";var n=o=>{function A(t){return t!=null&&typeof t[Symbol.iterator]=="function"}let e=Array.isArray(o)?o:A(o)?Array.from(o):[],i=l(e),r={...i,length:e.length,map:t=>n(e.map(t)),flatMap:t=>n(i.flatMap(t)),remove:t=>{let a=e.indexOf(t);return r.removeAt(a)},contains:t=>e.includes(t),add:t=>n([...e,t]),removeAt:t=>t<0||t>=e.length?r:n([...e.slice(0,t),...e.slice(t+1)]),get:t=>S(e[t]),concat:t=>n([...e,...t.toArray()]),toList:()=>r,toSet:()=>c(e),toString:()=>`List(${e.toString()})`};return new Proxy(r,{get(t,a){return typeof a=="symbol"||isNaN(Number(a))?t[a]:t.get(Number(a))}})},L=o=>n(o);var s=o=>{let A=b(o)?new m(o):new m(o?.toArray()??[]),e=l(A),i={...e,add:r=>s([...A,r]),remove:r=>{let t=new m(A);return t.delete(r),s(t)},contains:r=>A.has(r),has:r=>A.has(r),map:r=>s(e.map(r)),flatMap:r=>s(e.flatMap(r)),toList:()=>L(A),toSet:()=>i,toString:()=>`Set(${Array.from(A).toString()})`};return i},c=o=>s(o);export{c as a,L as b};
@@ -0,0 +1 @@
1
+ import{a,b as T}from"./chunk-PJIXAQSQ.mjs";var s=r=>({_tag:"Success",value:r,error:void 0,isSuccess:()=>!0,isFailure:()=>!1,getOrElse:e=>r,orElse:e=>s(r),toEither:()=>a(r),map:e=>l(()=>e(r)),flatMap:e=>e(r),valueOf:()=>({_tag:"Success",value:r}),toString:()=>`Success(${JSON.stringify(r)})`}),t=r=>({_tag:"Failure",value:void 0,error:r,isSuccess:()=>!1,isFailure:()=>!0,getOrElse:e=>e,orElse:e=>e,toEither:()=>T(r),map:e=>t(r),flatMap:e=>t(r),valueOf:()=>({_tag:"Failure",error:r}),toString:()=>`Failure(${r.message})`}),l=r=>{try{return s(r())}catch(e){return t(e instanceof Error?e:new Error(String(e)))}};export{l as a};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunk3VJERXBPjs = require('./chunk-3VJERXBP.js');var _chunkAB3QRD66js = require('./chunk-AB3QRD66.js');var _chunkBNNK42JCjs = require('./chunk-BNNK42JC.js');var n=o=>{function A(t){return t!=null&&typeof t[Symbol.iterator]=="function"}let e=Array.isArray(o)?o:A(o)?Array.from(o):[],i=_chunkAB3QRD66js.e.call(void 0, e),r={...i,length:e.length,map:t=>n(e.map(t)),flatMap:t=>n(i.flatMap(t)),remove:t=>{let a=e.indexOf(t);return r.removeAt(a)},contains:t=>e.includes(t),add:t=>n([...e,t]),removeAt:t=>t<0||t>=e.length?r:n([...e.slice(0,t),...e.slice(t+1)]),get:t=>_chunkAB3QRD66js.c.call(void 0, e[t]),concat:t=>n([...e,...t.toArray()]),toList:()=>r,toSet:()=>c(e),toString:()=>`List(${e.toString()})`};return new Proxy(r,{get(t,a){return typeof a=="symbol"||isNaN(Number(a))?t[a]:t.get(Number(a))}})},L= exports.b =o=>n(o);var s=o=>{let A=_chunkBNNK42JCjs.a.call(void 0, o)?new (0, _chunk3VJERXBPjs.a)(o):new (0, _chunk3VJERXBPjs.a)(_nullishCoalesce(_optionalChain([o, 'optionalAccess', _ => _.toArray, 'call', _2 => _2()]), () => ([]))),e=_chunkAB3QRD66js.e.call(void 0, A),i={...e,add:r=>s([...A,r]),remove:r=>{let t=new (0, _chunk3VJERXBPjs.a)(A);return t.delete(r),s(t)},contains:r=>A.has(r),has:r=>A.has(r),map:r=>s(e.map(r)),flatMap:r=>s(e.flatMap(r)),toList:()=>L(A),toSet:()=>i,toString:()=>`Set(${Array.from(A).toString()})`};return i},c= exports.a =o=>s(o);exports.a = c; exports.b = L;
@@ -0,0 +1 @@
1
+ import{a as d}from"./chunk-RRAIFS3D.mjs";var n=e=>{let r=d(e)?e:e instanceof Object&&"toArray"in e?e.toArray():[],t=Array.from(r);return{[Symbol.iterator]:()=>t[Symbol.iterator](),get length(){return t.length},map:o=>n(t.map(o)),flatMap:o=>n(t.flatMap(a=>o(a).toArray())),forEach:o=>t.forEach(o),count:o=>t.filter(o).length,exists:o=>t.some(o),filter:o=>n(t.filter(o)),filterNot:o=>n(t.filter(a=>!o(a))),find:o=>i(t.find(o)),get head(){return t[0]},get headOption(){return t.length>0?i(t[0]):p()},get isEmpty(){return t.length===0},get size(){return t.length},toArray:()=>[...t],reduce:o=>t.reduce(o),reduceRight:o=>t.reduceRight(o),foldLeft:o=>a=>t.reduce(a,o),foldRight:o=>a=>t.reduceRight((B,b)=>a(b,B),o),valueOf:()=>({values:t})}},l=e=>n(e);var A=e=>({_tag:"Some",value:e,isEmpty:!1,get:()=>e,getOrElse:()=>e,orElse:()=>A(e),map:r=>A(r(e)),flatMap:r=>r(e),reduce:r=>r(void 0,e),reduceRight:r=>r(void 0,e),foldLeft:r=>t=>t(r,e),foldRight:r=>t=>t(e,r),toList:()=>l([e]),contains:r=>r===e,size:1,valueOf:()=>({_tag:"Some",value:e}),toString:()=>`Some(${JSON.stringify(e)})`}),f={_tag:"None",value:void 0,isEmpty:!0,get:()=>{throw new Error("Cannot call get() on None")},getOrElse:e=>e,orElse:e=>e,map:()=>f,flatMap:()=>f,reduce:()=>{},reduceRight:()=>{},foldLeft:e=>()=>e,foldRight:e=>()=>e,toList:()=>l([]),contains:()=>!1,size:0,valueOf:()=>({_tag:"None"}),toString:()=>"None"},p=()=>f,i=e=>e!=null?A(e):p();export{A as a,p as b,i as c,n as d,l as e};
@@ -1 +1 @@
1
- import{a as u}from"./chunk-2I2NKDFN.mjs";import{a as s}from"./chunk-377WQNCB.mjs";import{a as V,b as K}from"./chunk-GPS3OL5F.mjs";import{c as p,i as l}from"./chunk-FMHIRYL5.mjs";var o=n=>{let a={values:new s(n)},r=()=>Array.from(a.values.entries()).map(([e,t])=>u([e,t])),i=e=>o(new s(a.values).set(e.toArray()[0],e.toArray()[1]).entries()),c=e=>{let t=new s(a.values);return t.delete(e)?o(t.entries()):o(a.values.entries())},m=e=>a.values.get(e[0])===e[1],f=()=>a.values.size,v=e=>o(Array.from(a.values.entries()).map(([t,O])=>[t,e(O)])),M=e=>{let t=o(a.values.entries()).toList();return o(t.flatMap(e).toArray())},T=e=>l(r()).reduce(e),g=e=>l(r()).reduceRight(e),y=e=>t=>l(r()).foldLeft(e)(t),d=e=>t=>l(r()).foldRight(e)(t),S=e=>p(a.values.get(e)),b=(e,t)=>p(a.values.get(e)).getOrElse(t),E=()=>a.values.size===0;return{add:i,remove:c,contains:m,get size(){return f()},map:v,flatMap:M,reduce:T,reduceRight:g,foldLeft:y,foldRight:d,get:S,getOrElse:b,get isEmpty(){return E()},orElse:(e,t)=>p(a.values.get(e)).orElse(t),toList:()=>K(r()),toSet:()=>V(r()),toString:()=>`Map(${r().toString()})`}},x=n=>o(n);export{x as a};
1
+ import{a as s}from"./chunk-377WQNCB.mjs";import{a as u}from"./chunk-2I2NKDFN.mjs";import{a as V,b as K}from"./chunk-I7TGEFK5.mjs";import{c as p,e as l}from"./chunk-O7DO2OKU.mjs";var o=n=>{let a={values:new s(n)},r=()=>Array.from(a.values.entries()).map(([e,t])=>u([e,t])),i=e=>o(new s(a.values).set(e.toArray()[0],e.toArray()[1]).entries()),c=e=>{let t=new s(a.values);return t.delete(e)?o(t.entries()):o(a.values.entries())},m=e=>a.values.get(e[0])===e[1],f=()=>a.values.size,v=e=>o(Array.from(a.values.entries()).map(([t,O])=>[t,e(O)])),M=e=>{let t=o(a.values.entries()).toList();return o(t.flatMap(e).toArray())},T=e=>l(r()).reduce(e),g=e=>l(r()).reduceRight(e),y=e=>t=>l(r()).foldLeft(e)(t),d=e=>t=>l(r()).foldRight(e)(t),S=e=>p(a.values.get(e)),b=(e,t)=>p(a.values.get(e)).getOrElse(t),E=()=>a.values.size===0;return{add:i,remove:c,contains:m,get size(){return f()},map:v,flatMap:M,reduce:T,reduceRight:g,foldLeft:y,foldRight:d,get:S,getOrElse:b,get isEmpty(){return E()},orElse:(e,t)=>p(a.values.get(e)).orElse(t),toList:()=>K(r()),toSet:()=>V(r()),toString:()=>`Map(${r().toString()})`}},C=n=>o(n);export{C as a};
@@ -0,0 +1 @@
1
+ import{b as i}from"./chunk-I7TGEFK5.mjs";import{a as L,b as o}from"./chunk-O7DO2OKU.mjs";var R=t=>({_tag:"Right",value:t,isLeft:()=>!1,isRight:()=>!0,map:e=>R(e(t)),flatMap:e=>e(t),toOption:()=>L(t),toList:()=>i([t]),valueOf:()=>({_tag:"Right",value:t}),toString:()=>`Right(${JSON.stringify(t)})`}),r=t=>({_tag:"Left",value:t,isLeft:()=>!0,isRight:()=>!1,map:e=>r(t),flatMap:e=>r(t),toOption:()=>o(),toList:()=>i(),valueOf:()=>({_tag:"Left",value:t}),toString:()=>`Left(${JSON.stringify(t)})`}),s=t=>R(t),h=t=>r(t),g=t=>t.isRight(),U=t=>t.isLeft(),E=(t,e)=>{try{return s(t())}catch(n){return h(e(n))}};export{s as a,h as b,g as c,U as d,E as e};
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkBSQMHA7Ajs = require('./chunk-BSQMHA7A.js');var s=r=>({_tag:"Success",value:r,error:void 0,isSuccess:()=>!0,isFailure:()=>!1,getOrElse:e=>r,orElse:e=>s(r),toEither:()=>_chunkBSQMHA7Ajs.a.call(void 0, r),map:e=>l(()=>e(r)),flatMap:e=>e(r),valueOf:()=>({_tag:"Success",value:r}),toString:()=>`Success(${JSON.stringify(r)})`}),t=r=>({_tag:"Failure",value:void 0,error:r,isSuccess:()=>!1,isFailure:()=>!0,getOrElse:e=>e,orElse:e=>e,toEither:()=>_chunkBSQMHA7Ajs.b.call(void 0, r),map:e=>t(r),flatMap:e=>t(r),valueOf:()=>({_tag:"Failure",error:r}),toString:()=>`Failure(${r.message})`}),l= exports.a =r=>{try{return s(r())}catch(e){return t(e instanceof Error?e:new Error(String(e)))}};exports.a = l;
@@ -1,4 +1,4 @@
1
- export { d as Collection, C as Converters } from '../index-BB5a793T.mjs';
1
+ export { d as Collection, C as Converters } from '../index-5xp8zYMn.mjs';
2
2
  import '../functor/index.mjs';
3
3
  import '../tuple/Tuple.mjs';
4
- import '../tuple/index.mjs';
4
+ import '../typeable/Typeable.mjs';
@@ -1,4 +1,4 @@
1
- export { d as Collection, C as Converters } from '../index-DyWcaZaG.js';
1
+ export { d as Collection, C as Converters } from '../index-8YakfACG.js';
2
2
  import '../functor/index.js';
3
3
  import '../tuple/Tuple.js';
4
- import '../tuple/index.js';
4
+ import '../typeable/Typeable.js';
@@ -1,4 +1,4 @@
1
1
  import '../functor/index.mjs';
2
- export { E as Either, e as Left, R as Right, f as isLeft, i as isRight, g as match, t as tryCatch } from '../index-BB5a793T.mjs';
2
+ export { E as Either, e as Left, R as Right, f as isLeft, i as isRight, t as tryCatch } from '../index-5xp8zYMn.mjs';
3
+ import '../typeable/Typeable.mjs';
3
4
  import '../tuple/Tuple.mjs';
4
- import '../tuple/index.mjs';
@@ -1,4 +1,4 @@
1
1
  import '../functor/index.js';
2
- export { E as Either, e as Left, R as Right, f as isLeft, i as isRight, g as match, t as tryCatch } from '../index-DyWcaZaG.js';
2
+ export { E as Either, e as Left, R as Right, f as isLeft, i as isRight, t as tryCatch } from '../index-8YakfACG.js';
3
+ import '../typeable/Typeable.js';
3
4
  import '../tuple/Tuple.js';
4
- import '../tuple/index.js';
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkTVCOFH5Ijs = require('../chunk-TVCOFH5I.js');require('../chunk-KWPKGISB.js');require('../chunk-3VJERXBP.js');require('../chunk-WDHUQRFT.js');require('../chunk-BNNK42JC.js');exports.Left = _chunkTVCOFH5Ijs.b; exports.Right = _chunkTVCOFH5Ijs.a; exports.isLeft = _chunkTVCOFH5Ijs.d; exports.isRight = _chunkTVCOFH5Ijs.c; exports.match = _chunkTVCOFH5Ijs.f; exports.tryCatch = _chunkTVCOFH5Ijs.e;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkBSQMHA7Ajs = require('../chunk-BSQMHA7A.js');require('../chunk-N3GTVYCO.js');require('../chunk-3VJERXBP.js');require('../chunk-AB3QRD66.js');require('../chunk-BNNK42JC.js');exports.Left = _chunkBSQMHA7Ajs.b; exports.Right = _chunkBSQMHA7Ajs.a; exports.isLeft = _chunkBSQMHA7Ajs.d; exports.isRight = _chunkBSQMHA7Ajs.c; exports.tryCatch = _chunkBSQMHA7Ajs.e;
@@ -1 +1 @@
1
- import{a,b,c,d,e,f}from"../chunk-HJAAA6CD.mjs";import"../chunk-GPS3OL5F.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-FMHIRYL5.mjs";import"../chunk-RRAIFS3D.mjs";export{b as Left,a as Right,d as isLeft,c as isRight,f as match,e as tryCatch};
1
+ import{a,b,c,d,e}from"../chunk-PJIXAQSQ.mjs";import"../chunk-I7TGEFK5.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-O7DO2OKU.mjs";import"../chunk-RRAIFS3D.mjs";export{b as Left,a as Right,d as isLeft,c as isRight,e as tryCatch};
@@ -1,6 +1,6 @@
1
1
  import { Type, Functor } from './functor/index.mjs';
2
2
  import { Tuple } from './tuple/Tuple.mjs';
3
- import './tuple/index.mjs';
3
+ import { Typeable } from './typeable/Typeable.mjs';
4
4
 
5
5
  declare const Some: <T extends Type>(value: T) => Option<T>;
6
6
  declare const None: <T extends Type>() => Option<T>;
@@ -25,16 +25,8 @@ type Option<T extends Type> = {
25
25
  value?: T;
26
26
  };
27
27
  toString(): string;
28
- } & Traversable<T> & Functor<T> & Typeable;
28
+ } & Traversable<T> & Functor<T> & Typeable<"Some" | "None">;
29
29
  declare const Option: <T extends Type>(value: T | null | undefined) => Option<T>;
30
- declare const match$2: <T extends Type, U>(option: Option<T>, patterns: {
31
- Some: (value: T) => U;
32
- None: () => U;
33
- }) => U;
34
-
35
- declare const option: <T extends Type>(value?: T) => Option<T>;
36
- declare const some: <T extends Type>(value: T) => Option<T>;
37
- declare const none: <T extends Type>() => Option<T>;
38
30
 
39
31
  declare const createSeq: <A>(values?: Iterable<A> | _Iterable_<A>) => Seq<A>;
40
32
  type Seq<A> = {
@@ -121,8 +113,6 @@ type List<A> = {
121
113
  } & ArrayLike<A> & _Iterable_<A> & Collection<A>;
122
114
  declare const List: <A>(values?: Iterable<A> | _Iterable_<A>) => List<A>;
123
115
 
124
- declare const list: <T extends Type>(items: T[] | undefined) => List<T>;
125
-
126
116
  type Either<L extends Type, R extends Type> = {
127
117
  readonly _tag: "Left" | "Right";
128
118
  value: L | R;
@@ -137,7 +127,7 @@ type Either<L extends Type, R extends Type> = {
137
127
  value: L | R;
138
128
  };
139
129
  toString: () => string;
140
- } & Functor<R> & Typeable;
130
+ } & Functor<R> & Typeable<"Left" | "Right">;
141
131
  declare const Right: <L, R>(value: R) => Either<L, R>;
142
132
  declare const Left: <L, R>(value: L) => Either<L, R>;
143
133
  declare const isRight: <L, R>(either: Either<L, R>) => either is Either<L, R> & {
@@ -147,13 +137,6 @@ declare const isLeft: <L, R>(either: Either<L, R>) => either is Either<L, R> & {
147
137
  value: L;
148
138
  };
149
139
  declare const tryCatch: <L, R>(f: () => R, onError: (error: unknown) => L) => Either<L, R>;
150
- declare const match$1: <L, R, U>(either: Either<L, R>, patterns: {
151
- Left: (value: L) => U;
152
- Right: (value: R) => U;
153
- }) => U;
154
-
155
- declare const left: <L, R>(value: L) => Either<L, R>;
156
- declare const right: <L, R>(value: R) => Either<L, R>;
157
140
 
158
141
  type SafeTraversable<K, V> = Omit<Traversable<Tuple<[K, V]>>, "map" | "flatMap">;
159
142
  type Map<K, V> = {
@@ -184,12 +167,8 @@ type Try<T> = {
184
167
  error?: Error;
185
168
  };
186
169
  toString: () => string;
187
- } & Typeable;
170
+ } & Typeable<"Success" | "Failure">;
188
171
  declare const Try: <T>(f: () => T) => Try<T>;
189
- declare const match: <T, U>(tryValue: Try<T>, patterns: {
190
- Success: (value: T) => U;
191
- Failure: (error: Error) => U;
192
- }) => U;
193
172
 
194
173
  type Traversable<A extends Type> = Functor<A> & {
195
174
  get size(): number;
@@ -201,8 +180,4 @@ type Traversable<A extends Type> = Functor<A> & {
201
180
  foldRight<B>(z: B): (op: (a: A, b: B) => B) => B;
202
181
  };
203
182
 
204
- type Typeable = {
205
- _tag: Type;
206
- };
207
-
208
- export { type Converters as C, type Either as E, List as L, Map as M, None as N, Option as O, Right as R, Some as S, Try as T, type _Iterable_ as _, Seq as a, Set as b, createSeq as c, type Collection as d, Left as e, isLeft as f, match$1 as g, left as h, isRight as i, match as j, type Traversable as k, list as l, match$2 as m, none as n, option as o, type Typeable as p, right as r, some as s, tryCatch as t };
183
+ export { type Converters as C, type Either as E, List as L, Map as M, None as N, Option as O, Right as R, Some as S, Try as T, type _Iterable_ as _, Seq as a, Set as b, createSeq as c, type Collection as d, Left as e, isLeft as f, type Traversable as g, isRight as i, tryCatch as t };
@@ -1,6 +1,6 @@
1
1
  import { Type, Functor } from './functor/index.js';
2
2
  import { Tuple } from './tuple/Tuple.js';
3
- import './tuple/index.js';
3
+ import { Typeable } from './typeable/Typeable.js';
4
4
 
5
5
  declare const Some: <T extends Type>(value: T) => Option<T>;
6
6
  declare const None: <T extends Type>() => Option<T>;
@@ -25,16 +25,8 @@ type Option<T extends Type> = {
25
25
  value?: T;
26
26
  };
27
27
  toString(): string;
28
- } & Traversable<T> & Functor<T> & Typeable;
28
+ } & Traversable<T> & Functor<T> & Typeable<"Some" | "None">;
29
29
  declare const Option: <T extends Type>(value: T | null | undefined) => Option<T>;
30
- declare const match$2: <T extends Type, U>(option: Option<T>, patterns: {
31
- Some: (value: T) => U;
32
- None: () => U;
33
- }) => U;
34
-
35
- declare const option: <T extends Type>(value?: T) => Option<T>;
36
- declare const some: <T extends Type>(value: T) => Option<T>;
37
- declare const none: <T extends Type>() => Option<T>;
38
30
 
39
31
  declare const createSeq: <A>(values?: Iterable<A> | _Iterable_<A>) => Seq<A>;
40
32
  type Seq<A> = {
@@ -121,8 +113,6 @@ type List<A> = {
121
113
  } & ArrayLike<A> & _Iterable_<A> & Collection<A>;
122
114
  declare const List: <A>(values?: Iterable<A> | _Iterable_<A>) => List<A>;
123
115
 
124
- declare const list: <T extends Type>(items: T[] | undefined) => List<T>;
125
-
126
116
  type Either<L extends Type, R extends Type> = {
127
117
  readonly _tag: "Left" | "Right";
128
118
  value: L | R;
@@ -137,7 +127,7 @@ type Either<L extends Type, R extends Type> = {
137
127
  value: L | R;
138
128
  };
139
129
  toString: () => string;
140
- } & Functor<R> & Typeable;
130
+ } & Functor<R> & Typeable<"Left" | "Right">;
141
131
  declare const Right: <L, R>(value: R) => Either<L, R>;
142
132
  declare const Left: <L, R>(value: L) => Either<L, R>;
143
133
  declare const isRight: <L, R>(either: Either<L, R>) => either is Either<L, R> & {
@@ -147,13 +137,6 @@ declare const isLeft: <L, R>(either: Either<L, R>) => either is Either<L, R> & {
147
137
  value: L;
148
138
  };
149
139
  declare const tryCatch: <L, R>(f: () => R, onError: (error: unknown) => L) => Either<L, R>;
150
- declare const match$1: <L, R, U>(either: Either<L, R>, patterns: {
151
- Left: (value: L) => U;
152
- Right: (value: R) => U;
153
- }) => U;
154
-
155
- declare const left: <L, R>(value: L) => Either<L, R>;
156
- declare const right: <L, R>(value: R) => Either<L, R>;
157
140
 
158
141
  type SafeTraversable<K, V> = Omit<Traversable<Tuple<[K, V]>>, "map" | "flatMap">;
159
142
  type Map<K, V> = {
@@ -184,12 +167,8 @@ type Try<T> = {
184
167
  error?: Error;
185
168
  };
186
169
  toString: () => string;
187
- } & Typeable;
170
+ } & Typeable<"Success" | "Failure">;
188
171
  declare const Try: <T>(f: () => T) => Try<T>;
189
- declare const match: <T, U>(tryValue: Try<T>, patterns: {
190
- Success: (value: T) => U;
191
- Failure: (error: Error) => U;
192
- }) => U;
193
172
 
194
173
  type Traversable<A extends Type> = Functor<A> & {
195
174
  get size(): number;
@@ -201,8 +180,4 @@ type Traversable<A extends Type> = Functor<A> & {
201
180
  foldRight<B>(z: B): (op: (a: A, b: B) => B) => B;
202
181
  };
203
182
 
204
- type Typeable = {
205
- _tag: Type;
206
- };
207
-
208
- export { type Converters as C, type Either as E, List as L, Map as M, None as N, Option as O, Right as R, Some as S, Try as T, type _Iterable_ as _, Seq as a, Set as b, createSeq as c, type Collection as d, Left as e, isLeft as f, match$1 as g, left as h, isRight as i, match as j, type Traversable as k, list as l, match$2 as m, none as n, option as o, type Typeable as p, right as r, some as s, tryCatch as t };
183
+ export { type Converters as C, type Either as E, List as L, Map as M, None as N, Option as O, Right as R, Some as S, Try as T, type _Iterable_ as _, Seq as a, Set as b, createSeq as c, type Collection as d, Left as e, isLeft as f, type Traversable as g, isRight as i, tryCatch as t };
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
1
  export { AbstractFunctor, ArrayFunctor, ArrayType, Functor, SingleType, Type } from './functor/index.mjs';
2
- export { E as Either, e as Left, L as List, M as Map, N as None, O as Option, R as Right, a as Seq, b as Set, S as Some, k as Traversable, T as Try, p as Typeable, _ as _Iterable_, h as left, l as list, n as none, o as option, r as right, s as some } from './index-BB5a793T.mjs';
3
- export { t, tuple } from './tuple/index.mjs';
2
+ export { E as Either, e as Left, L as List, M as Map, N as None, O as Option, R as Right, a as Seq, b as Set, S as Some, g as Traversable, T as Try, _ as _Iterable_, f as isLeft, i as isRight, t as tryCatch } from './index-5xp8zYMn.mjs';
4
3
  export { Tuple } from './tuple/Tuple.mjs';
4
+ import './typeable/Typeable.mjs';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export { AbstractFunctor, ArrayFunctor, ArrayType, Functor, SingleType, Type } from './functor/index.js';
2
- export { E as Either, e as Left, L as List, M as Map, N as None, O as Option, R as Right, a as Seq, b as Set, S as Some, k as Traversable, T as Try, p as Typeable, _ as _Iterable_, h as left, l as list, n as none, o as option, r as right, s as some } from './index-DyWcaZaG.js';
3
- export { t, tuple } from './tuple/index.js';
2
+ export { E as Either, e as Left, L as List, M as Map, N as None, O as Option, R as Right, a as Seq, b as Set, S as Some, g as Traversable, T as Try, _ as _Iterable_, f as isLeft, i as isRight, t as tryCatch } from './index-8YakfACG.js';
4
3
  export { Tuple } from './tuple/Tuple.js';
4
+ import './typeable/Typeable.js';
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-6BEXQNLZ.js');var _chunkPMZTOIT2js = require('./chunk-PMZTOIT2.js');require('./chunk-ZOH672YH.js');var _chunkREXFLQTJjs = require('./chunk-REXFLQTJ.js');var _chunkE3BAZBU2js = require('./chunk-E3BAZBU2.js');var _chunkOXLZ6UIZjs = require('./chunk-OXLZ6UIZ.js');require('./chunk-5VTXJIR3.js');var _chunk4PGXHDASjs = require('./chunk-4PGXHDAS.js');var _chunkTVCOFH5Ijs = require('./chunk-TVCOFH5I.js');var _chunkKWPKGISBjs = require('./chunk-KWPKGISB.js');require('./chunk-3VJERXBP.js');require('./chunk-XORABVON.js');var _chunkWDHUQRFTjs = require('./chunk-WDHUQRFT.js');require('./chunk-BNNK42JC.js');exports.Left = _chunkTVCOFH5Ijs.b; exports.List = _chunkKWPKGISBjs.b; exports.Map = _chunkREXFLQTJjs.a; exports.None = _chunkWDHUQRFTjs.b; exports.Option = _chunkWDHUQRFTjs.c; exports.Right = _chunkTVCOFH5Ijs.a; exports.Seq = _chunkWDHUQRFTjs.i; exports.Set = _chunkKWPKGISBjs.a; exports.Some = _chunkWDHUQRFTjs.a; exports.Try = _chunkPMZTOIT2js.a; exports.Tuple = _chunkOXLZ6UIZjs.a; exports.left = _chunk4PGXHDASjs.a; exports.list = _chunkKWPKGISBjs.c; exports.none = _chunkWDHUQRFTjs.g; exports.option = _chunkWDHUQRFTjs.e; exports.right = _chunk4PGXHDASjs.b; exports.some = _chunkWDHUQRFTjs.f; exports.t = _chunkE3BAZBU2js.a; exports.tuple = _chunkE3BAZBU2js.b;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkQ65ZRGZHjs = require('./chunk-Q65ZRGZH.js');var _chunkBSQMHA7Ajs = require('./chunk-BSQMHA7A.js');require('./chunk-XORABVON.js');var _chunk6GSI27WUjs = require('./chunk-6GSI27WU.js');require('./chunk-5VTXJIR3.js');var _chunkOXLZ6UIZjs = require('./chunk-OXLZ6UIZ.js');var _chunkN3GTVYCOjs = require('./chunk-N3GTVYCO.js');require('./chunk-3VJERXBP.js');var _chunkAB3QRD66js = require('./chunk-AB3QRD66.js');require('./chunk-BNNK42JC.js');exports.Left = _chunkBSQMHA7Ajs.b; exports.List = _chunkN3GTVYCOjs.b; exports.Map = _chunk6GSI27WUjs.a; exports.None = _chunkAB3QRD66js.b; exports.Option = _chunkAB3QRD66js.c; exports.Right = _chunkBSQMHA7Ajs.a; exports.Seq = _chunkAB3QRD66js.e; exports.Set = _chunkN3GTVYCOjs.a; exports.Some = _chunkAB3QRD66js.a; exports.Try = _chunkQ65ZRGZHjs.a; exports.Tuple = _chunkOXLZ6UIZjs.a; exports.isLeft = _chunkBSQMHA7Ajs.d; exports.isRight = _chunkBSQMHA7Ajs.c; exports.tryCatch = _chunkBSQMHA7Ajs.e;
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- import"./chunk-Q4H3PCBH.mjs";import{a as d}from"./chunk-ZMF3MVW7.mjs";import"./chunk-3OHJLCSR.mjs";import{a as c}from"./chunk-VUD7L2T6.mjs";import{a as i,b as u}from"./chunk-4AEODSGH.mjs";import{a as y}from"./chunk-2I2NKDFN.mjs";import"./chunk-377WQNCB.mjs";import{a as n,b as l}from"./chunk-3Y43FJKZ.mjs";import{a as B,b}from"./chunk-HJAAA6CD.mjs";import{a as A,b as a,c as x}from"./chunk-GPS3OL5F.mjs";import"./chunk-HA5XD5KC.mjs";import"./chunk-V2J3R5IU.mjs";import{a as e,b as o,c as r,e as t,f as p,g as f,i as m}from"./chunk-FMHIRYL5.mjs";import"./chunk-RRAIFS3D.mjs";export{b as Left,a as List,c as Map,o as None,r as Option,B as Right,m as Seq,A as Set,e as Some,d as Try,y as Tuple,n as left,x as list,f as none,t as option,l as right,p as some,i as t,u as tuple};
1
+ import{a as i}from"./chunk-JQ7HMWOT.mjs";import{a as m,b as A,c as x,d as a,e as B}from"./chunk-PJIXAQSQ.mjs";import"./chunk-V2J3R5IU.mjs";import{a as n}from"./chunk-OWW7KOUW.mjs";import"./chunk-377WQNCB.mjs";import{a as b}from"./chunk-2I2NKDFN.mjs";import{a as p,b as f}from"./chunk-I7TGEFK5.mjs";import"./chunk-HA5XD5KC.mjs";import{a as o,b as e,c as r,e as t}from"./chunk-O7DO2OKU.mjs";import"./chunk-RRAIFS3D.mjs";export{A as Left,f as List,n as Map,e as None,r as Option,m as Right,t as Seq,p as Set,o as Some,i as Try,b as Tuple,a as isLeft,x as isRight,B as tryCatch};
@@ -1,4 +1,4 @@
1
- export { a as Seq, c as createSeq } from '../index-BB5a793T.mjs';
1
+ export { a as Seq, c as createSeq } from '../index-5xp8zYMn.mjs';
2
2
  import '../functor/index.mjs';
3
3
  import '../tuple/Tuple.mjs';
4
- import '../tuple/index.mjs';
4
+ import '../typeable/Typeable.mjs';
@@ -1,4 +1,4 @@
1
- export { a as Seq, c as createSeq } from '../index-DyWcaZaG.js';
1
+ export { a as Seq, c as createSeq } from '../index-8YakfACG.js';
2
2
  import '../functor/index.js';
3
3
  import '../tuple/Tuple.js';
4
- import '../tuple/index.js';
4
+ import '../typeable/Typeable.js';
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkWDHUQRFTjs = require('../chunk-WDHUQRFT.js');require('../chunk-BNNK42JC.js');exports.Seq = _chunkWDHUQRFTjs.i; exports.createSeq = _chunkWDHUQRFTjs.h;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkAB3QRD66js = require('../chunk-AB3QRD66.js');require('../chunk-BNNK42JC.js');exports.Seq = _chunkAB3QRD66js.e; exports.createSeq = _chunkAB3QRD66js.d;
@@ -1 +1 @@
1
- import{h as a,i as b}from"../chunk-FMHIRYL5.mjs";import"../chunk-RRAIFS3D.mjs";export{b as Seq,a as createSeq};
1
+ import{d as a,e as b}from"../chunk-O7DO2OKU.mjs";import"../chunk-RRAIFS3D.mjs";export{b as Seq,a as createSeq};
@@ -1,4 +1,4 @@
1
1
  import '../functor/index.mjs';
2
- export { a as Seq, _ as _Iterable_ } from '../index-BB5a793T.mjs';
2
+ export { a as Seq, _ as _Iterable_ } from '../index-5xp8zYMn.mjs';
3
3
  import '../tuple/Tuple.mjs';
4
- import '../tuple/index.mjs';
4
+ import '../typeable/Typeable.mjs';
@@ -1,4 +1,4 @@
1
1
  import '../functor/index.js';
2
- export { a as Seq, _ as _Iterable_ } from '../index-DyWcaZaG.js';
2
+ export { a as Seq, _ as _Iterable_ } from '../index-8YakfACG.js';
3
3
  import '../tuple/Tuple.js';
4
- import '../tuple/index.js';
4
+ import '../typeable/Typeable.js';
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkWDHUQRFTjs = require('../chunk-WDHUQRFT.js');require('../chunk-BNNK42JC.js');exports.Seq = _chunkWDHUQRFTjs.i;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkAB3QRD66js = require('../chunk-AB3QRD66.js');require('../chunk-BNNK42JC.js');exports.Seq = _chunkAB3QRD66js.e;
@@ -1 +1 @@
1
- import{i as a}from"../chunk-FMHIRYL5.mjs";import"../chunk-RRAIFS3D.mjs";export{a as Seq};
1
+ import{e as a}from"../chunk-O7DO2OKU.mjs";import"../chunk-RRAIFS3D.mjs";export{a as Seq};
@@ -1,4 +1,4 @@
1
- export { L as List } from '../index-BB5a793T.mjs';
1
+ export { L as List } from '../index-5xp8zYMn.mjs';
2
2
  import '../functor/index.mjs';
3
3
  import '../tuple/Tuple.mjs';
4
- import '../tuple/index.mjs';
4
+ import '../typeable/Typeable.mjs';
@@ -1,4 +1,4 @@
1
- export { L as List } from '../index-DyWcaZaG.js';
1
+ export { L as List } from '../index-8YakfACG.js';
2
2
  import '../functor/index.js';
3
3
  import '../tuple/Tuple.js';
4
- import '../tuple/index.js';
4
+ import '../typeable/Typeable.js';
package/dist/list/List.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkKWPKGISBjs = require('../chunk-KWPKGISB.js');require('../chunk-3VJERXBP.js');require('../chunk-WDHUQRFT.js');require('../chunk-BNNK42JC.js');exports.List = _chunkKWPKGISBjs.b;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkN3GTVYCOjs = require('../chunk-N3GTVYCO.js');require('../chunk-3VJERXBP.js');require('../chunk-AB3QRD66.js');require('../chunk-BNNK42JC.js');exports.List = _chunkN3GTVYCOjs.b;
@@ -1 +1 @@
1
- import{b as a}from"../chunk-GPS3OL5F.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-FMHIRYL5.mjs";import"../chunk-RRAIFS3D.mjs";export{a as List};
1
+ import{b as a}from"../chunk-I7TGEFK5.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-O7DO2OKU.mjs";import"../chunk-RRAIFS3D.mjs";export{a as List};
@@ -1,4 +1,4 @@
1
- export { M as Map } from '../index-BB5a793T.mjs';
1
+ export { M as Map } from '../index-5xp8zYMn.mjs';
2
2
  import '../tuple/Tuple.mjs';
3
3
  import '../functor/index.mjs';
4
- import '../tuple/index.mjs';
4
+ import '../typeable/Typeable.mjs';
package/dist/map/Map.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { M as Map } from '../index-DyWcaZaG.js';
1
+ export { M as Map } from '../index-8YakfACG.js';
2
2
  import '../tuple/Tuple.js';
3
3
  import '../functor/index.js';
4
- import '../tuple/index.js';
4
+ import '../typeable/Typeable.js';
package/dist/map/Map.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkREXFLQTJjs = require('../chunk-REXFLQTJ.js');require('../chunk-E3BAZBU2.js');require('../chunk-OXLZ6UIZ.js');require('../chunk-5VTXJIR3.js');require('../chunk-KWPKGISB.js');require('../chunk-3VJERXBP.js');require('../chunk-WDHUQRFT.js');require('../chunk-BNNK42JC.js');exports.Map = _chunkREXFLQTJjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk6GSI27WUjs = require('../chunk-6GSI27WU.js');require('../chunk-5VTXJIR3.js');require('../chunk-OXLZ6UIZ.js');require('../chunk-N3GTVYCO.js');require('../chunk-3VJERXBP.js');require('../chunk-AB3QRD66.js');require('../chunk-BNNK42JC.js');exports.Map = _chunk6GSI27WUjs.a;
package/dist/map/Map.mjs CHANGED
@@ -1 +1 @@
1
- import{a}from"../chunk-VUD7L2T6.mjs";import"../chunk-4AEODSGH.mjs";import"../chunk-2I2NKDFN.mjs";import"../chunk-377WQNCB.mjs";import"../chunk-GPS3OL5F.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-FMHIRYL5.mjs";import"../chunk-RRAIFS3D.mjs";export{a as Map};
1
+ import{a}from"../chunk-OWW7KOUW.mjs";import"../chunk-377WQNCB.mjs";import"../chunk-2I2NKDFN.mjs";import"../chunk-I7TGEFK5.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-O7DO2OKU.mjs";import"../chunk-RRAIFS3D.mjs";export{a as Map};
@@ -1,4 +1,4 @@
1
1
  import '../functor/index.mjs';
2
- export { N as None, O as Option, S as Some, m as match } from '../index-BB5a793T.mjs';
2
+ export { N as None, O as Option, S as Some } from '../index-5xp8zYMn.mjs';
3
+ import '../typeable/Typeable.mjs';
3
4
  import '../tuple/Tuple.mjs';
4
- import '../tuple/index.mjs';
@@ -1,4 +1,4 @@
1
1
  import '../functor/index.js';
2
- export { N as None, O as Option, S as Some, m as match } from '../index-DyWcaZaG.js';
2
+ export { N as None, O as Option, S as Some } from '../index-8YakfACG.js';
3
+ import '../typeable/Typeable.js';
3
4
  import '../tuple/Tuple.js';
4
- import '../tuple/index.js';
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkWDHUQRFTjs = require('../chunk-WDHUQRFT.js');require('../chunk-BNNK42JC.js');exports.None = _chunkWDHUQRFTjs.b; exports.Option = _chunkWDHUQRFTjs.c; exports.Some = _chunkWDHUQRFTjs.a; exports.match = _chunkWDHUQRFTjs.d;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkAB3QRD66js = require('../chunk-AB3QRD66.js');require('../chunk-BNNK42JC.js');exports.None = _chunkAB3QRD66js.b; exports.Option = _chunkAB3QRD66js.c; exports.Some = _chunkAB3QRD66js.a;
@@ -1 +1 @@
1
- import{a,b,c,d}from"../chunk-FMHIRYL5.mjs";import"../chunk-RRAIFS3D.mjs";export{b as None,c as Option,a as Some,d as match};
1
+ import{a,b,c}from"../chunk-O7DO2OKU.mjs";import"../chunk-RRAIFS3D.mjs";export{b as None,c as Option,a as Some};
@@ -1,4 +1,4 @@
1
- export { b as Set } from '../index-BB5a793T.mjs';
1
+ export { b as Set } from '../index-5xp8zYMn.mjs';
2
2
  import '../functor/index.mjs';
3
3
  import '../tuple/Tuple.mjs';
4
- import '../tuple/index.mjs';
4
+ import '../typeable/Typeable.mjs';
package/dist/set/Set.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { b as Set } from '../index-DyWcaZaG.js';
1
+ export { b as Set } from '../index-8YakfACG.js';
2
2
  import '../functor/index.js';
3
3
  import '../tuple/Tuple.js';
4
- import '../tuple/index.js';
4
+ import '../typeable/Typeable.js';
package/dist/set/Set.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkKWPKGISBjs = require('../chunk-KWPKGISB.js');require('../chunk-3VJERXBP.js');require('../chunk-WDHUQRFT.js');require('../chunk-BNNK42JC.js');exports.Set = _chunkKWPKGISBjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkN3GTVYCOjs = require('../chunk-N3GTVYCO.js');require('../chunk-3VJERXBP.js');require('../chunk-AB3QRD66.js');require('../chunk-BNNK42JC.js');exports.Set = _chunkN3GTVYCOjs.a;
package/dist/set/Set.mjs CHANGED
@@ -1 +1 @@
1
- import{a}from"../chunk-GPS3OL5F.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-FMHIRYL5.mjs";import"../chunk-RRAIFS3D.mjs";export{a as Set};
1
+ import{a}from"../chunk-I7TGEFK5.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-O7DO2OKU.mjs";import"../chunk-RRAIFS3D.mjs";export{a as Set};
@@ -1,4 +1,4 @@
1
- export { T as Try, j as match } from '../index-BB5a793T.mjs';
1
+ export { T as Try } from '../index-5xp8zYMn.mjs';
2
+ import '../typeable/Typeable.mjs';
2
3
  import '../functor/index.mjs';
3
4
  import '../tuple/Tuple.mjs';
4
- import '../tuple/index.mjs';
package/dist/try/Try.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { T as Try, j as match } from '../index-DyWcaZaG.js';
1
+ export { T as Try } from '../index-8YakfACG.js';
2
+ import '../typeable/Typeable.js';
2
3
  import '../functor/index.js';
3
4
  import '../tuple/Tuple.js';
4
- import '../tuple/index.js';
package/dist/try/Try.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkPMZTOIT2js = require('../chunk-PMZTOIT2.js');require('../chunk-4PGXHDAS.js');require('../chunk-TVCOFH5I.js');require('../chunk-KWPKGISB.js');require('../chunk-3VJERXBP.js');require('../chunk-WDHUQRFT.js');require('../chunk-BNNK42JC.js');exports.Try = _chunkPMZTOIT2js.a; exports.match = _chunkPMZTOIT2js.b;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkQ65ZRGZHjs = require('../chunk-Q65ZRGZH.js');require('../chunk-BSQMHA7A.js');require('../chunk-N3GTVYCO.js');require('../chunk-3VJERXBP.js');require('../chunk-AB3QRD66.js');require('../chunk-BNNK42JC.js');exports.Try = _chunkQ65ZRGZHjs.a;
package/dist/try/Try.mjs CHANGED
@@ -1 +1 @@
1
- import{a,b}from"../chunk-ZMF3MVW7.mjs";import"../chunk-3Y43FJKZ.mjs";import"../chunk-HJAAA6CD.mjs";import"../chunk-GPS3OL5F.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-FMHIRYL5.mjs";import"../chunk-RRAIFS3D.mjs";export{a as Try,b as match};
1
+ import{a}from"../chunk-JQ7HMWOT.mjs";import"../chunk-PJIXAQSQ.mjs";import"../chunk-I7TGEFK5.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-O7DO2OKU.mjs";import"../chunk-RRAIFS3D.mjs";export{a as Try};
@@ -0,0 +1,6 @@
1
+ declare function Typeable<T extends string>(type: T): {
2
+ readonly _tag: T;
3
+ };
4
+ type Typeable<T extends string> = ReturnType<typeof Typeable<T>>;
5
+
6
+ export { Typeable };
@@ -0,0 +1,6 @@
1
+ declare function Typeable<T extends string>(type: T): {
2
+ readonly _tag: T;
3
+ };
4
+ type Typeable<T extends string> = ReturnType<typeof Typeable<T>>;
5
+
6
+ export { Typeable };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});function t(e){return{_tag:e}}exports.Typeable = t;
@@ -0,0 +1 @@
1
+ function t(e){return{_tag:e}}export{t as Typeable};
@@ -1,8 +1,8 @@
1
- import { E as Either } from '../index-BB5a793T.mjs';
1
+ import { E as Either } from '../index-5xp8zYMn.mjs';
2
2
  import { ParseError } from '../error/ParseError.mjs';
3
3
  import '../functor/index.mjs';
4
4
  import '../tuple/Tuple.mjs';
5
- import '../tuple/index.mjs';
5
+ import '../typeable/Typeable.mjs';
6
6
 
7
7
  declare const parseNumber: (input: string) => Either<ParseError, number>;
8
8
 
@@ -1,8 +1,8 @@
1
- import { E as Either } from '../index-DyWcaZaG.js';
1
+ import { E as Either } from '../index-8YakfACG.js';
2
2
  import { ParseError } from '../error/ParseError.js';
3
3
  import '../functor/index.js';
4
4
  import '../tuple/Tuple.js';
5
- import '../tuple/index.js';
5
+ import '../typeable/Typeable.js';
6
6
 
7
7
  declare const parseNumber: (input: string) => Either<ParseError, number>;
8
8
 
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk4PGXHDASjs = require('../chunk-4PGXHDAS.js');require('../chunk-TVCOFH5I.js');require('../chunk-KWPKGISB.js');require('../chunk-3VJERXBP.js');var _chunkE6RS47F7js = require('../chunk-E6RS47F7.js');require('../chunk-WDHUQRFT.js');require('../chunk-BNNK42JC.js');var n=s=>{let r=parseInt(s,10);return isNaN(r)?_chunk4PGXHDASjs.a.call(void 0, _chunkE6RS47F7js.a.call(void 0, `${r}`)):_chunk4PGXHDASjs.b.call(void 0, r)};exports.parseNumber = n;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkE6RS47F7js = require('../chunk-E6RS47F7.js');var _chunkBSQMHA7Ajs = require('../chunk-BSQMHA7A.js');require('../chunk-N3GTVYCO.js');require('../chunk-3VJERXBP.js');require('../chunk-AB3QRD66.js');require('../chunk-BNNK42JC.js');var a=o=>{let r=parseInt(o,10);return isNaN(r)?_chunkBSQMHA7Ajs.b.call(void 0, _chunkE6RS47F7js.a.call(void 0, `${r}`)):_chunkBSQMHA7Ajs.a.call(void 0, r)};exports.parseNumber = a;
@@ -1 +1 @@
1
- import{a as e,b as t}from"../chunk-3Y43FJKZ.mjs";import"../chunk-HJAAA6CD.mjs";import"../chunk-GPS3OL5F.mjs";import"../chunk-HA5XD5KC.mjs";import{a as o}from"../chunk-VK5GL6NM.mjs";import"../chunk-FMHIRYL5.mjs";import"../chunk-RRAIFS3D.mjs";var n=s=>{let r=parseInt(s,10);return isNaN(r)?e(o(`${r}`)):t(r)};export{n as parseNumber};
1
+ import{a as s}from"../chunk-VK5GL6NM.mjs";import{a as e,b as t}from"../chunk-PJIXAQSQ.mjs";import"../chunk-I7TGEFK5.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-O7DO2OKU.mjs";import"../chunk-RRAIFS3D.mjs";var a=o=>{let r=parseInt(o,10);return isNaN(r)?t(s(`${r}`)):e(r)};export{a as parseNumber};
@@ -1,3 +1,3 @@
1
- declare const isIterable: <T>(value: any) => value is Iterable<T>;
1
+ declare const isIterable: <T>(value: unknown) => value is Iterable<T>;
2
2
 
3
3
  export { isIterable };
@@ -1,3 +1,3 @@
1
- declare const isIterable: <T>(value: any) => value is Iterable<T>;
1
+ declare const isIterable: <T>(value: unknown) => value is Iterable<T>;
2
2
 
3
3
  export { isIterable };
@@ -1,5 +1,5 @@
1
- import { List } from "../list";
2
- import { Set } from "../set";
1
+ import { List } from "../list/List";
2
+ import { Set } from "../set/Set";
3
3
  export type Converters<A> = {
4
4
  toList(): List<A>;
5
5
  toSet(): Set<A>;
@@ -1,7 +1,7 @@
1
1
  import { Functor, Type } from "../functor";
2
- import { List } from "../list";
3
- import { Option } from "../option";
4
- import { Typeable } from "../index";
2
+ import { List } from "../list/List";
3
+ import { Option } from "../option/Option";
4
+ import { Typeable } from "../typeable/Typeable";
5
5
  export type Either<L extends Type, R extends Type> = {
6
6
  readonly _tag: "Left" | "Right";
7
7
  value: L | R;
@@ -16,7 +16,7 @@ export type Either<L extends Type, R extends Type> = {
16
16
  value: L | R;
17
17
  };
18
18
  toString: () => string;
19
- } & Functor<R> & Typeable;
19
+ } & Functor<R> & Typeable<"Left" | "Right">;
20
20
  export declare const Right: <L, R>(value: R) => Either<L, R>;
21
21
  export declare const Left: <L, R>(value: L) => Either<L, R>;
22
22
  export declare const isRight: <L, R>(either: Either<L, R>) => either is Either<L, R> & {
@@ -26,7 +26,3 @@ export declare const isLeft: <L, R>(either: Either<L, R>) => either is Either<L,
26
26
  value: L;
27
27
  };
28
28
  export declare const tryCatch: <L, R>(f: () => R, onError: (error: unknown) => L) => Either<L, R>;
29
- export declare const match: <L, R, U>(either: Either<L, R>, patterns: {
30
- Left: (value: L) => U;
31
- Right: (value: R) => U;
32
- }) => U;
package/lib/index.d.ts CHANGED
@@ -8,15 +8,12 @@ export type Traversable<A extends Type> = Functor<A> & {
8
8
  foldLeft<B>(z: B): (op: (b: B, a: A) => B) => B;
9
9
  foldRight<B>(z: B): (op: (a: A, b: B) => B) => B;
10
10
  };
11
- export * from "./either";
11
+ export * from "./either/Either";
12
12
  export * from "./functor";
13
13
  export * from "./iterable";
14
- export * from "./list";
15
- export * from "./map";
16
- export * from "./option";
17
- export * from "./set";
18
- export * from "./try";
19
- export * from "./tuple";
20
- export type Typeable = {
21
- _tag: Type;
22
- };
14
+ export * from "./list/List";
15
+ export * from "./map/Map";
16
+ export * from "./option/Option";
17
+ export * from "./set/Set";
18
+ export * from "./try/Try";
19
+ export * from "./tuple/Tuple";
@@ -1,4 +1,4 @@
1
- import { Option } from "../option";
1
+ import { Option } from "../option/Option";
2
2
  import { _Iterable_ } from "./index";
3
3
  export type Seq<A> = {
4
4
  readonly length: number;
@@ -1,5 +1,5 @@
1
1
  import { Functor, Type } from "../functor";
2
- import { Option } from "../option";
2
+ import { Option } from "../option/Option";
3
3
  export type _Iterable_<A extends Type> = {
4
4
  count(p: (x: A) => boolean): number;
5
5
  find(p: (a: A) => boolean): Option<A>;
@@ -1,7 +1,7 @@
1
1
  import { Collection } from "../collections";
2
2
  import { _Iterable_ } from "../iterable";
3
- import { Option } from "../option";
4
- import { Set } from "../set";
3
+ import { Option } from "../option/Option";
4
+ import { Set } from "../set/Set";
5
5
  export type List<A> = {
6
6
  add: (item: A) => List<A>;
7
7
  map: <B>(f: (a: A) => B) => List<B>;
package/lib/map/Map.d.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  import { Collection } from "../collections";
2
- import { _Iterable_, Traversable } from "../index";
3
- import { Option } from "../option";
4
- import { Tuple } from "../tuple";
2
+ import { Traversable } from "../index";
3
+ import { _Iterable_ } from "../iterable";
4
+ import { Option } from "../option/Option";
5
+ import { Tuple } from "../tuple/Tuple";
5
6
  type SafeTraversable<K, V> = Omit<Traversable<Tuple<[K, V]>>, "map" | "flatMap">;
6
7
  export type Map<K, V> = {
7
8
  add(item: Tuple<[K, V]>): Map<K, V>;
@@ -1,6 +1,7 @@
1
1
  import { Functor, Type } from "../functor";
2
- import { Traversable, Typeable } from "../index";
2
+ import { Traversable } from "../index";
3
3
  import { _Iterable_ } from "../iterable";
4
+ import { Typeable } from "../typeable/Typeable";
4
5
  export type Option<T extends Type> = {
5
6
  readonly _tag: "Some" | "None";
6
7
  readonly value: T | undefined;
@@ -22,11 +23,7 @@ export type Option<T extends Type> = {
22
23
  value?: T;
23
24
  };
24
25
  toString(): string;
25
- } & Traversable<T> & Functor<T> & Typeable;
26
+ } & Traversable<T> & Functor<T> & Typeable<"Some" | "None">;
26
27
  export declare const Some: <T extends Type>(value: T) => Option<T>;
27
28
  export declare const None: <T extends Type>() => Option<T>;
28
29
  export declare const Option: <T extends Type>(value: T | null | undefined) => Option<T>;
29
- export declare const match: <T extends Type, U>(option: Option<T>, patterns: {
30
- Some: (value: T) => U;
31
- None: () => U;
32
- }) => U;
package/lib/set/Set.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Collection } from "../collections";
2
2
  import { _Iterable_ } from "../iterable";
3
- import { List } from "../list";
3
+ import { List } from "../list/List";
4
4
  export type Set<A> = {
5
5
  add: (value: A) => Set<A>;
6
6
  remove: (value: A) => Set<A>;
package/lib/try/Try.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { Either } from "../either";
2
- import { Typeable } from "../index";
1
+ import { Either } from "../either/Either";
2
+ import { Typeable } from "../typeable/Typeable";
3
3
  export type Try<T> = {
4
4
  readonly _tag: "Success" | "Failure";
5
5
  readonly value: T | undefined;
@@ -17,9 +17,5 @@ export type Try<T> = {
17
17
  error?: Error;
18
18
  };
19
19
  toString: () => string;
20
- } & Typeable;
20
+ } & Typeable<"Success" | "Failure">;
21
21
  export declare const Try: <T>(f: () => T) => Try<T>;
22
- export declare const match: <T, U>(tryValue: Try<T>, patterns: {
23
- Success: (value: T) => U;
24
- Failure: (error: Error) => U;
25
- }) => U;
@@ -0,0 +1,4 @@
1
+ export declare function Typeable<T extends string>(type: T): {
2
+ readonly _tag: T;
3
+ };
4
+ export type Typeable<T extends string> = ReturnType<typeof Typeable<T>>;
@@ -1,3 +1,3 @@
1
- import { Either } from "../either";
1
+ import { Either } from "../either/Either";
2
2
  import { ParseError } from "../error/ParseError";
3
3
  export declare const parseNumber: (input: string) => Either<ParseError, number>;
@@ -1 +1 @@
1
- export declare const isIterable: <T>(value: any) => value is Iterable<T>;
1
+ export declare const isIterable: <T>(value: unknown) => value is Iterable<T>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "functype",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "A smallish functional library for TypeScript",
5
5
  "author": "jordan.burke@gmail.com",
6
6
  "license": "MIT",
@@ -47,8 +47,8 @@
47
47
  "lint:fix": "eslint ./src --ext .ts,.tsx --quiet --fix --ignore-path ./.gitignore",
48
48
  "lint:format": "prettier --loglevel warn --write \"./**/*.{ts,tsx,css,md,json}\" ",
49
49
  "lint": "pnpm lint:format && pnpm lint:fix ",
50
- "test": "jest",
51
- "test:watch": "jest --watch",
52
- "test:cov": "jest --coverage"
50
+ "test": "tsc && jest",
51
+ "test:watch": "tsc && jest --watch",
52
+ "test:cov": "tsc && jest --coverage"
53
53
  }
54
54
  }
File without changes
@@ -1 +0,0 @@
1
- import{a as r,b as e}from"./chunk-HJAAA6CD.mjs";var o=t=>e(t),i=t=>r(t);export{o as a,i as b};
@@ -1 +0,0 @@
1
- import{a as r}from"./chunk-2I2NKDFN.mjs";var t=e=>r(e),T=e=>r(e);export{t as a,T as b};
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkTVCOFH5Ijs = require('./chunk-TVCOFH5I.js');var o=t=>_chunkTVCOFH5Ijs.b.call(void 0, t),i= exports.b =t=>_chunkTVCOFH5Ijs.a.call(void 0, t);exports.a = o; exports.b = i;
@@ -1 +0,0 @@
1
- "use strict";
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkOXLZ6UIZjs = require('./chunk-OXLZ6UIZ.js');var t=e=>_chunkOXLZ6UIZjs.a.call(void 0, e),T= exports.b =e=>_chunkOXLZ6UIZjs.a.call(void 0, e);exports.a = t; exports.b = T;
@@ -1 +0,0 @@
1
- import{a as d}from"./chunk-RRAIFS3D.mjs";var A=e=>e?b(e):c(),b=e=>a(e),c=()=>p();var i=e=>{let r=d(e)?e:e instanceof Object&&"toArray"in e?e.toArray():[],t=Array.from(r);return{[Symbol.iterator]:()=>t[Symbol.iterator](),get length(){return t.length},map:o=>i(t.map(o)),flatMap:o=>i(t.flatMap(n=>o(n).toArray())),forEach:o=>t.forEach(o),count:o=>t.filter(o).length,exists:o=>t.some(o),filter:o=>i(t.filter(o)),filterNot:o=>i(t.filter(n=>!o(n))),find:o=>A(t.find(o)),get head(){return t[0]},get headOption(){return t.length>0?A(t[0]):p()},get isEmpty(){return t.length===0},get size(){return t.length},toArray:()=>[...t],reduce:o=>t.reduce(o),reduceRight:o=>t.reduceRight(o),foldLeft:o=>n=>t.reduce(n,o),foldRight:o=>n=>t.reduceRight((T,s)=>n(s,T),o),valueOf:()=>({values:t})}},l=e=>i(e);var a=e=>({_tag:"Some",value:e,isEmpty:!1,get:()=>e,getOrElse:()=>e,orElse:()=>a(e),map:r=>a(r(e)),flatMap:r=>r(e),reduce:r=>r(void 0,e),reduceRight:r=>r(void 0,e),foldLeft:r=>t=>t(r,e),foldRight:r=>t=>t(e,r),toList:()=>l([e]),contains:r=>r===e,size:1,valueOf:()=>({_tag:"Some",value:e}),toString:()=>`Some(${JSON.stringify(e)})`}),f={_tag:"None",value:void 0,isEmpty:!0,get:()=>{throw new Error("Cannot call get() on None")},getOrElse:e=>e,orElse:e=>e,map:()=>f,flatMap:()=>f,reduce:()=>{},reduceRight:()=>{},foldLeft:e=>()=>e,foldRight:e=>()=>e,toList:()=>l([]),contains:()=>!1,size:0,valueOf:()=>({_tag:"None"}),toString:()=>"None"},p=()=>f,B=e=>e!=null?a(e):p(),I=(e,r)=>e._tag==="Some"?r.Some(e.value):r.None();export{a,p as b,B as c,I as d,A as e,b as f,c as g,i as h,l as i};
@@ -1 +0,0 @@
1
- import{a as m}from"./chunk-HA5XD5KC.mjs";import{e as p,i as l}from"./chunk-FMHIRYL5.mjs";import{a as c}from"./chunk-RRAIFS3D.mjs";var a=r=>{function A(t){return t!=null&&typeof t[Symbol.iterator]=="function"}let e=Array.isArray(r)?r:A(r)?Array.from(r):[],n=l(e),o={...n,length:e.length,map:t=>a(e.map(t)),flatMap:t=>a(n.flatMap(t)),remove:t=>{let i=e.indexOf(t);return o.removeAt(i)},contains:t=>e.includes(t),add:t=>a([...e,t]),removeAt:t=>t<0||t>=e.length?o:a([...e.slice(0,t),...e.slice(t+1)]),get:t=>p(e[t]),concat:t=>a([...e,...t.toArray()]),toList:()=>o,toSet:()=>f(e),toString:()=>`List(${e.toString()})`};return new Proxy(o,{get(t,i){return typeof i=="symbol"||isNaN(Number(i))?t[i]:t.get(Number(i))}})},S=r=>a(r);var g=r=>S(r);var s=r=>{let A=c(r)?new m(r):new m(r?.toArray()??[]),e=l(A),n={...e,add:o=>s([...A,o]),remove:o=>{let t=new m(A);return t.delete(o),s(t)},contains:o=>A.has(o),has:o=>A.has(o),map:o=>s(e.map(o)),flatMap:o=>s(e.flatMap(o)),toList:()=>S(A),toSet:()=>n,toString:()=>`Set(${Array.from(A).toString()})`};return n},f=r=>s(r);export{f as a,S as b,g as c};
@@ -1 +0,0 @@
1
- import{b as i}from"./chunk-GPS3OL5F.mjs";import{f as L,g as R}from"./chunk-FMHIRYL5.mjs";var o=t=>({_tag:"Right",value:t,isLeft:()=>!1,isRight:()=>!0,map:e=>o(e(t)),flatMap:e=>e(t),toOption:()=>L(t),toList:()=>i([t]),valueOf:()=>({_tag:"Right",value:t}),toString:()=>`Right(${JSON.stringify(t)})`}),r=t=>({_tag:"Left",value:t,isLeft:()=>!0,isRight:()=>!1,map:e=>r(t),flatMap:e=>r(t),toOption:()=>R(),toList:()=>i(),valueOf:()=>({_tag:"Left",value:t}),toString:()=>`Left(${JSON.stringify(t)})`}),n=t=>o(t),h=t=>r(t),g=t=>t.isRight(),U=t=>t.isLeft(),E=(t,e)=>{try{return n(t())}catch(s){return h(e(s))}},l=(t,e)=>t._tag==="Right"?e.Right(t.value):e.Left(t.value);export{n as a,h as b,g as c,U as d,E as e,l as f};
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunk3VJERXBPjs = require('./chunk-3VJERXBP.js');var _chunkWDHUQRFTjs = require('./chunk-WDHUQRFT.js');var _chunkBNNK42JCjs = require('./chunk-BNNK42JC.js');var a=r=>{function A(t){return t!=null&&typeof t[Symbol.iterator]=="function"}let e=Array.isArray(r)?r:A(r)?Array.from(r):[],n=_chunkWDHUQRFTjs.i.call(void 0, e),o={...n,length:e.length,map:t=>a(e.map(t)),flatMap:t=>a(n.flatMap(t)),remove:t=>{let i=e.indexOf(t);return o.removeAt(i)},contains:t=>e.includes(t),add:t=>a([...e,t]),removeAt:t=>t<0||t>=e.length?o:a([...e.slice(0,t),...e.slice(t+1)]),get:t=>_chunkWDHUQRFTjs.e.call(void 0, e[t]),concat:t=>a([...e,...t.toArray()]),toList:()=>o,toSet:()=>f(e),toString:()=>`List(${e.toString()})`};return new Proxy(o,{get(t,i){return typeof i=="symbol"||isNaN(Number(i))?t[i]:t.get(Number(i))}})},S= exports.b =r=>a(r);var g=r=>S(r);var s=r=>{let A=_chunkBNNK42JCjs.a.call(void 0, r)?new (0, _chunk3VJERXBPjs.a)(r):new (0, _chunk3VJERXBPjs.a)(_nullishCoalesce(_optionalChain([r, 'optionalAccess', _ => _.toArray, 'call', _2 => _2()]), () => ([]))),e=_chunkWDHUQRFTjs.i.call(void 0, A),n={...e,add:o=>s([...A,o]),remove:o=>{let t=new (0, _chunk3VJERXBPjs.a)(A);return t.delete(o),s(t)},contains:o=>A.has(o),has:o=>A.has(o),map:o=>s(e.map(o)),flatMap:o=>s(e.flatMap(o)),toList:()=>S(A),toSet:()=>n,toString:()=>`Set(${Array.from(A).toString()})`};return n},f= exports.a =r=>s(r);exports.a = f; exports.b = S; exports.c = g;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkTVCOFH5Ijs = require('./chunk-TVCOFH5I.js');var s=r=>({_tag:"Success",value:r,error:void 0,isSuccess:()=>!0,isFailure:()=>!1,getOrElse:e=>r,orElse:e=>s(r),toEither:()=>_chunkTVCOFH5Ijs.a.call(void 0, r),map:e=>l(()=>e(r)),flatMap:e=>e(r),valueOf:()=>({_tag:"Success",value:r}),toString:()=>`Success(${JSON.stringify(r)})`}),a=r=>({_tag:"Failure",value:void 0,error:r,isSuccess:()=>!1,isFailure:()=>!0,getOrElse:e=>e,orElse:e=>e,toEither:()=>_chunkTVCOFH5Ijs.b.call(void 0, r),map:e=>a(r),flatMap:e=>a(r),valueOf:()=>({_tag:"Failure",error:r}),toString:()=>`Failure(${r.message})`}),l= exports.a =r=>{try{return s(r())}catch(e){return a(e instanceof Error?e:new Error(String(e)))}},o= exports.b =(r,e)=>r._tag==="Success"?e.Success(r.value):e.Failure(r.error);exports.a = l; exports.b = o;
File without changes
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkOXLZ6UIZjs = require('./chunk-OXLZ6UIZ.js');var _chunk5VTXJIR3js = require('./chunk-5VTXJIR3.js');var _chunkKWPKGISBjs = require('./chunk-KWPKGISB.js');var _chunkWDHUQRFTjs = require('./chunk-WDHUQRFT.js');var o=n=>{let a={values:new (0, _chunk5VTXJIR3js.a)(n)},r=()=>Array.from(a.values.entries()).map(([e,t])=>_chunkOXLZ6UIZjs.a.call(void 0, [e,t])),i=e=>o(new (0, _chunk5VTXJIR3js.a)(a.values).set(e.toArray()[0],e.toArray()[1]).entries()),c=e=>{let t=new (0, _chunk5VTXJIR3js.a)(a.values);return t.delete(e)?o(t.entries()):o(a.values.entries())},m=e=>a.values.get(e[0])===e[1],f=()=>a.values.size,v=e=>o(Array.from(a.values.entries()).map(([t,O])=>[t,e(O)])),M=e=>{let t=o(a.values.entries()).toList();return o(t.flatMap(e).toArray())},T=e=>_chunkWDHUQRFTjs.i.call(void 0, r()).reduce(e),g=e=>_chunkWDHUQRFTjs.i.call(void 0, r()).reduceRight(e),y=e=>t=>_chunkWDHUQRFTjs.i.call(void 0, r()).foldLeft(e)(t),d=e=>t=>_chunkWDHUQRFTjs.i.call(void 0, r()).foldRight(e)(t),S=e=>_chunkWDHUQRFTjs.c.call(void 0, a.values.get(e)),b=(e,t)=>_chunkWDHUQRFTjs.c.call(void 0, a.values.get(e)).getOrElse(t),E=()=>a.values.size===0;return{add:i,remove:c,contains:m,get size(){return f()},map:v,flatMap:M,reduce:T,reduceRight:g,foldLeft:y,foldRight:d,get:S,getOrElse:b,get isEmpty(){return E()},orElse:(e,t)=>_chunkWDHUQRFTjs.c.call(void 0, a.values.get(e)).orElse(t),toList:()=>_chunkKWPKGISBjs.b.call(void 0, r()),toSet:()=>_chunkKWPKGISBjs.a.call(void 0, r()),toString:()=>`Map(${r().toString()})`}},x= exports.a =n=>o(n);exports.a = x;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkKWPKGISBjs = require('./chunk-KWPKGISB.js');var _chunkWDHUQRFTjs = require('./chunk-WDHUQRFT.js');var o=t=>({_tag:"Right",value:t,isLeft:()=>!1,isRight:()=>!0,map:e=>o(e(t)),flatMap:e=>e(t),toOption:()=>_chunkWDHUQRFTjs.f.call(void 0, t),toList:()=>_chunkKWPKGISBjs.b.call(void 0, [t]),valueOf:()=>({_tag:"Right",value:t}),toString:()=>`Right(${JSON.stringify(t)})`}),r=t=>({_tag:"Left",value:t,isLeft:()=>!0,isRight:()=>!1,map:e=>r(t),flatMap:e=>r(t),toOption:()=>_chunkWDHUQRFTjs.g.call(void 0, ),toList:()=>_chunkKWPKGISBjs.b.call(void 0, ),valueOf:()=>({_tag:"Left",value:t}),toString:()=>`Left(${JSON.stringify(t)})`}),n= exports.a =t=>o(t),h= exports.b =t=>r(t),g= exports.c =t=>t.isRight(),U= exports.d =t=>t.isLeft(),E= exports.e =(t,e)=>{try{return n(t())}catch(s){return h(e(s))}},l= exports.f =(t,e)=>t._tag==="Right"?e.Right(t.value):e.Left(t.value);exports.a = n; exports.b = h; exports.c = g; exports.d = U; exports.e = E; exports.f = l;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkBNNK42JCjs = require('./chunk-BNNK42JC.js');var A=e=>e?b(e):c(),b= exports.f =e=>a(e),c= exports.g =()=>p();var i=e=>{let r=_chunkBNNK42JCjs.a.call(void 0, e)?e:e instanceof Object&&"toArray"in e?e.toArray():[],t=Array.from(r);return{[Symbol.iterator]:()=>t[Symbol.iterator](),get length(){return t.length},map:o=>i(t.map(o)),flatMap:o=>i(t.flatMap(n=>o(n).toArray())),forEach:o=>t.forEach(o),count:o=>t.filter(o).length,exists:o=>t.some(o),filter:o=>i(t.filter(o)),filterNot:o=>i(t.filter(n=>!o(n))),find:o=>A(t.find(o)),get head(){return t[0]},get headOption(){return t.length>0?A(t[0]):p()},get isEmpty(){return t.length===0},get size(){return t.length},toArray:()=>[...t],reduce:o=>t.reduce(o),reduceRight:o=>t.reduceRight(o),foldLeft:o=>n=>t.reduce(n,o),foldRight:o=>n=>t.reduceRight((T,s)=>n(s,T),o),valueOf:()=>({values:t})}},l= exports.i =e=>i(e);var a=e=>({_tag:"Some",value:e,isEmpty:!1,get:()=>e,getOrElse:()=>e,orElse:()=>a(e),map:r=>a(r(e)),flatMap:r=>r(e),reduce:r=>r(void 0,e),reduceRight:r=>r(void 0,e),foldLeft:r=>t=>t(r,e),foldRight:r=>t=>t(e,r),toList:()=>l([e]),contains:r=>r===e,size:1,valueOf:()=>({_tag:"Some",value:e}),toString:()=>`Some(${JSON.stringify(e)})`}),f={_tag:"None",value:void 0,isEmpty:!0,get:()=>{throw new Error("Cannot call get() on None")},getOrElse:e=>e,orElse:e=>e,map:()=>f,flatMap:()=>f,reduce:()=>{},reduceRight:()=>{},foldLeft:e=>()=>e,foldRight:e=>()=>e,toList:()=>l([]),contains:()=>!1,size:0,valueOf:()=>({_tag:"None"}),toString:()=>"None"},p= exports.b =()=>f,B= exports.c =e=>e!=null?a(e):p(),I= exports.d =(e,r)=>e._tag==="Some"?r.Some(e.value):r.None();exports.a = a; exports.b = p; exports.c = B; exports.d = I; exports.e = A; exports.f = b; exports.g = c; exports.h = i; exports.i = l;
@@ -1 +0,0 @@
1
- import{a as t,b as T}from"./chunk-HJAAA6CD.mjs";var s=r=>({_tag:"Success",value:r,error:void 0,isSuccess:()=>!0,isFailure:()=>!1,getOrElse:e=>r,orElse:e=>s(r),toEither:()=>t(r),map:e=>l(()=>e(r)),flatMap:e=>e(r),valueOf:()=>({_tag:"Success",value:r}),toString:()=>`Success(${JSON.stringify(r)})`}),a=r=>({_tag:"Failure",value:void 0,error:r,isSuccess:()=>!1,isFailure:()=>!0,getOrElse:e=>e,orElse:e=>e,toEither:()=>T(r),map:e=>a(r),flatMap:e=>a(r),valueOf:()=>({_tag:"Failure",error:r}),toString:()=>`Failure(${r.message})`}),l=r=>{try{return s(r())}catch(e){return a(e instanceof Error?e:new Error(String(e)))}},o=(r,e)=>r._tag==="Success"?e.Success(r.value):e.Failure(r.error);export{l as a,o as b};
@@ -1 +0,0 @@
1
- "use strict";
@@ -1,4 +0,0 @@
1
- export { E as Either, e as Left, R as Right, h as left, r as right } from '../index-BB5a793T.mjs';
2
- import '../functor/index.mjs';
3
- import '../tuple/Tuple.mjs';
4
- import '../tuple/index.mjs';
@@ -1,4 +0,0 @@
1
- export { E as Either, e as Left, R as Right, h as left, r as right } from '../index-DyWcaZaG.js';
2
- import '../functor/index.js';
3
- import '../tuple/Tuple.js';
4
- import '../tuple/index.js';
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk4PGXHDASjs = require('../chunk-4PGXHDAS.js');var _chunkTVCOFH5Ijs = require('../chunk-TVCOFH5I.js');require('../chunk-KWPKGISB.js');require('../chunk-3VJERXBP.js');require('../chunk-WDHUQRFT.js');require('../chunk-BNNK42JC.js');exports.Left = _chunkTVCOFH5Ijs.b; exports.Right = _chunkTVCOFH5Ijs.a; exports.left = _chunk4PGXHDASjs.a; exports.right = _chunk4PGXHDASjs.b;
@@ -1 +0,0 @@
1
- import{a as c,b as d}from"../chunk-3Y43FJKZ.mjs";import{a,b}from"../chunk-HJAAA6CD.mjs";import"../chunk-GPS3OL5F.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-FMHIRYL5.mjs";import"../chunk-RRAIFS3D.mjs";export{b as Left,a as Right,c as left,d as right};
@@ -1,4 +0,0 @@
1
- import '../functor/index.mjs';
2
- export { L as List, l as list } from '../index-BB5a793T.mjs';
3
- import '../tuple/Tuple.mjs';
4
- import '../tuple/index.mjs';
@@ -1,4 +0,0 @@
1
- import '../functor/index.js';
2
- export { L as List, l as list } from '../index-DyWcaZaG.js';
3
- import '../tuple/Tuple.js';
4
- import '../tuple/index.js';
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkKWPKGISBjs = require('../chunk-KWPKGISB.js');require('../chunk-3VJERXBP.js');require('../chunk-WDHUQRFT.js');require('../chunk-BNNK42JC.js');exports.List = _chunkKWPKGISBjs.b; exports.list = _chunkKWPKGISBjs.c;
@@ -1 +0,0 @@
1
- import{b as a,c as b}from"../chunk-GPS3OL5F.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-FMHIRYL5.mjs";import"../chunk-RRAIFS3D.mjs";export{a as List,b as list};
@@ -1,4 +0,0 @@
1
- export { M as Map } from '../index-BB5a793T.mjs';
2
- import '../functor/index.mjs';
3
- import '../tuple/Tuple.mjs';
4
- import '../tuple/index.mjs';
@@ -1,4 +0,0 @@
1
- export { M as Map } from '../index-DyWcaZaG.js';
2
- import '../functor/index.js';
3
- import '../tuple/Tuple.js';
4
- import '../tuple/index.js';
package/dist/map/index.js DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-ZOH672YH.js');var _chunkREXFLQTJjs = require('../chunk-REXFLQTJ.js');require('../chunk-E3BAZBU2.js');require('../chunk-OXLZ6UIZ.js');require('../chunk-5VTXJIR3.js');require('../chunk-KWPKGISB.js');require('../chunk-3VJERXBP.js');require('../chunk-WDHUQRFT.js');require('../chunk-BNNK42JC.js');exports.Map = _chunkREXFLQTJjs.a;
@@ -1 +0,0 @@
1
- import"../chunk-3OHJLCSR.mjs";import{a}from"../chunk-VUD7L2T6.mjs";import"../chunk-4AEODSGH.mjs";import"../chunk-2I2NKDFN.mjs";import"../chunk-377WQNCB.mjs";import"../chunk-GPS3OL5F.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-FMHIRYL5.mjs";import"../chunk-RRAIFS3D.mjs";export{a as Map};
@@ -1,4 +0,0 @@
1
- import '../functor/index.mjs';
2
- export { N as None, O as Option, S as Some, n as none, o as option, s as some } from '../index-BB5a793T.mjs';
3
- import '../tuple/Tuple.mjs';
4
- import '../tuple/index.mjs';
@@ -1,4 +0,0 @@
1
- import '../functor/index.js';
2
- export { N as None, O as Option, S as Some, n as none, o as option, s as some } from '../index-DyWcaZaG.js';
3
- import '../tuple/Tuple.js';
4
- import '../tuple/index.js';
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkWDHUQRFTjs = require('../chunk-WDHUQRFT.js');require('../chunk-BNNK42JC.js');exports.None = _chunkWDHUQRFTjs.b; exports.Option = _chunkWDHUQRFTjs.c; exports.Some = _chunkWDHUQRFTjs.a; exports.none = _chunkWDHUQRFTjs.g; exports.option = _chunkWDHUQRFTjs.e; exports.some = _chunkWDHUQRFTjs.f;
@@ -1 +0,0 @@
1
- import{a,b,c,e as d,f as e,g as f}from"../chunk-FMHIRYL5.mjs";import"../chunk-RRAIFS3D.mjs";export{b as None,c as Option,a as Some,f as none,d as option,e as some};
@@ -1,4 +0,0 @@
1
- export { b as Set } from '../index-BB5a793T.mjs';
2
- import '../functor/index.mjs';
3
- import '../tuple/Tuple.mjs';
4
- import '../tuple/index.mjs';
@@ -1,4 +0,0 @@
1
- export { b as Set } from '../index-DyWcaZaG.js';
2
- import '../functor/index.js';
3
- import '../tuple/Tuple.js';
4
- import '../tuple/index.js';
package/dist/set/index.js DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkKWPKGISBjs = require('../chunk-KWPKGISB.js');require('../chunk-3VJERXBP.js');require('../chunk-WDHUQRFT.js');require('../chunk-BNNK42JC.js');exports.Set = _chunkKWPKGISBjs.a;
@@ -1 +0,0 @@
1
- import{a}from"../chunk-GPS3OL5F.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-FMHIRYL5.mjs";import"../chunk-RRAIFS3D.mjs";export{a as Set};
@@ -1,4 +0,0 @@
1
- export { T as Try } from '../index-BB5a793T.mjs';
2
- import '../functor/index.mjs';
3
- import '../tuple/Tuple.mjs';
4
- import '../tuple/index.mjs';
@@ -1,4 +0,0 @@
1
- export { T as Try } from '../index-DyWcaZaG.js';
2
- import '../functor/index.js';
3
- import '../tuple/Tuple.js';
4
- import '../tuple/index.js';
package/dist/try/index.js DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-6BEXQNLZ.js');var _chunkPMZTOIT2js = require('../chunk-PMZTOIT2.js');require('../chunk-4PGXHDAS.js');require('../chunk-TVCOFH5I.js');require('../chunk-KWPKGISB.js');require('../chunk-3VJERXBP.js');require('../chunk-WDHUQRFT.js');require('../chunk-BNNK42JC.js');exports.Try = _chunkPMZTOIT2js.a;
@@ -1 +0,0 @@
1
- import"../chunk-Q4H3PCBH.mjs";import{a}from"../chunk-ZMF3MVW7.mjs";import"../chunk-3Y43FJKZ.mjs";import"../chunk-HJAAA6CD.mjs";import"../chunk-GPS3OL5F.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-FMHIRYL5.mjs";import"../chunk-RRAIFS3D.mjs";export{a as Try};
@@ -1,7 +0,0 @@
1
- import { ArrayType } from '../functor/index.mjs';
2
- import { Tuple } from './Tuple.mjs';
3
-
4
- declare const t: <T extends ArrayType>(values: T) => Tuple<T>;
5
- declare const tuple: <T extends ArrayType>(values: T) => Tuple<T>;
6
-
7
- export { Tuple, t, tuple };
@@ -1,7 +0,0 @@
1
- import { ArrayType } from '../functor/index.js';
2
- import { Tuple } from './Tuple.js';
3
-
4
- declare const t: <T extends ArrayType>(values: T) => Tuple<T>;
5
- declare const tuple: <T extends ArrayType>(values: T) => Tuple<T>;
6
-
7
- export { Tuple, t, tuple };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkE3BAZBU2js = require('../chunk-E3BAZBU2.js');var _chunkOXLZ6UIZjs = require('../chunk-OXLZ6UIZ.js');exports.Tuple = _chunkOXLZ6UIZjs.a; exports.t = _chunkE3BAZBU2js.a; exports.tuple = _chunkE3BAZBU2js.b;
@@ -1 +0,0 @@
1
- import{a as b,b as c}from"../chunk-4AEODSGH.mjs";import{a}from"../chunk-2I2NKDFN.mjs";export{a as Tuple,b as t,c as tuple};