@fncts/base 0.0.20 → 0.0.21

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 (975) hide show
  1. package/_cjs/collection/Iterable/api/traverseConc.cjs +8 -8
  2. package/_cjs/collection/Iterable/api/traverseConc.cjs.map +1 -1
  3. package/_cjs/collection/Iterable/api.cjs +497 -444
  4. package/_cjs/collection/Iterable/api.cjs.map +1 -1
  5. package/_cjs/collection/Iterable/constructors.cjs +7 -7
  6. package/_cjs/collection/Iterable/constructors.cjs.map +1 -1
  7. package/_cjs/collection/compat/Array/api.cjs +16 -12
  8. package/_cjs/collection/compat/Array/api.cjs.map +1 -1
  9. package/_cjs/collection/compat/Array/derivations.cjs +41 -19
  10. package/_cjs/collection/compat/Array/derivations.cjs.map +1 -1
  11. package/_cjs/collection/compat/ArrayLike/api.cjs +1 -1
  12. package/_cjs/collection/compat/ArrayLike/api.cjs.map +1 -1
  13. package/_cjs/collection/compat/Record/instances.cjs +39 -3
  14. package/_cjs/collection/compat/Record/instances.cjs.map +1 -1
  15. package/_cjs/collection/immutable/Conc/api/makeBy.cjs +1 -1
  16. package/_cjs/collection/immutable/Conc/api/makeBy.cjs.map +1 -1
  17. package/_cjs/collection/immutable/Conc/api.cjs +866 -765
  18. package/_cjs/collection/immutable/Conc/api.cjs.map +1 -1
  19. package/_cjs/collection/immutable/Conc/definition.cjs +55 -53
  20. package/_cjs/collection/immutable/Conc/definition.cjs.map +1 -1
  21. package/_cjs/collection/immutable/Conc/derivations.cjs +13 -2
  22. package/_cjs/collection/immutable/Conc/derivations.cjs.map +1 -1
  23. package/_cjs/collection/immutable/Conc.cjs.map +1 -1
  24. package/_cjs/collection/immutable/Dictionary/api.cjs +57 -44
  25. package/_cjs/collection/immutable/Dictionary/api.cjs.map +1 -1
  26. package/_cjs/collection/immutable/HashMap/api.cjs +351 -258
  27. package/_cjs/collection/immutable/HashMap/api.cjs.map +1 -1
  28. package/_cjs/collection/immutable/HashMap/definition.cjs +1 -1
  29. package/_cjs/collection/immutable/HashMap/definition.cjs.map +1 -1
  30. package/_cjs/collection/immutable/HashMap/internal.cjs.map +1 -1
  31. package/_cjs/collection/immutable/HashSet/api.cjs +230 -192
  32. package/_cjs/collection/immutable/HashSet/api.cjs.map +1 -1
  33. package/_cjs/collection/immutable/HashSet/definition.cjs +1 -1
  34. package/_cjs/collection/immutable/HashSet/definition.cjs.map +1 -1
  35. package/_cjs/collection/immutable/ImmutableArray/api/chunksOf.cjs +6 -4
  36. package/_cjs/collection/immutable/ImmutableArray/api/chunksOf.cjs.map +1 -1
  37. package/_cjs/collection/immutable/ImmutableArray/api/slice.cjs +6 -4
  38. package/_cjs/collection/immutable/ImmutableArray/api/slice.cjs.map +1 -1
  39. package/_cjs/collection/immutable/ImmutableArray/api/splitAt.cjs +6 -4
  40. package/_cjs/collection/immutable/ImmutableArray/api/splitAt.cjs.map +1 -1
  41. package/_cjs/collection/immutable/ImmutableArray/api/splitWhere.cjs +15 -13
  42. package/_cjs/collection/immutable/ImmutableArray/api/splitWhere.cjs.map +1 -1
  43. package/_cjs/collection/immutable/ImmutableArray/api.cjs +943 -749
  44. package/_cjs/collection/immutable/ImmutableArray/api.cjs.map +1 -1
  45. package/_cjs/collection/immutable/ImmutableArray/derivations.cjs +12 -1
  46. package/_cjs/collection/immutable/ImmutableArray/derivations.cjs.map +1 -1
  47. package/_cjs/collection/immutable/ImmutableArray/instances.cjs +33 -33
  48. package/_cjs/collection/immutable/ImmutableArray/instances.cjs.map +1 -1
  49. package/_cjs/collection/immutable/ImmutableArray.cjs.map +1 -1
  50. package/_cjs/collection/immutable/ImmutableNonEmptyArray/api.cjs +338 -273
  51. package/_cjs/collection/immutable/ImmutableNonEmptyArray/api.cjs.map +1 -1
  52. package/_cjs/collection/immutable/ImmutableNonEmptyArray/constructors.cjs.map +1 -1
  53. package/_cjs/collection/immutable/ImmutableNonEmptyArray/definition.cjs.map +1 -1
  54. package/_cjs/collection/immutable/ImmutableNonEmptyArray/derivations.cjs +15 -4
  55. package/_cjs/collection/immutable/ImmutableNonEmptyArray/derivations.cjs.map +1 -1
  56. package/_cjs/collection/immutable/ImmutableNonEmptyArray/destructors.cjs +2 -2
  57. package/_cjs/collection/immutable/ImmutableNonEmptyArray/destructors.cjs.map +1 -1
  58. package/_cjs/collection/immutable/ImmutableNonEmptyArray/instances.cjs +12 -12
  59. package/_cjs/collection/immutable/ImmutableNonEmptyArray/instances.cjs.map +1 -1
  60. package/_cjs/collection/immutable/List/api/foldLeft.cjs +12 -10
  61. package/_cjs/collection/immutable/List/api/foldLeft.cjs.map +1 -1
  62. package/_cjs/collection/immutable/List/api.cjs +164 -141
  63. package/_cjs/collection/immutable/List/api.cjs.map +1 -1
  64. package/_cjs/collection/immutable/List.cjs.map +1 -1
  65. package/_cjs/collection/immutable/Queue/api.cjs +64 -48
  66. package/_cjs/collection/immutable/Queue/api.cjs.map +1 -1
  67. package/_cjs/collection/immutable/Queue/definition.cjs +1 -1
  68. package/_cjs/collection/immutable/Queue/definition.cjs.map +1 -1
  69. package/_cjs/collection/immutable/RoseTree/api.cjs +50 -36
  70. package/_cjs/collection/immutable/RoseTree/api.cjs.map +1 -1
  71. package/_cjs/collection/immutable/RoseTree/definition.cjs.map +1 -1
  72. package/_cjs/collection/immutable/SortedMap/api.cjs +408 -368
  73. package/_cjs/collection/immutable/SortedMap/api.cjs.map +1 -1
  74. package/_cjs/collection/immutable/Vector/api.cjs +723 -608
  75. package/_cjs/collection/immutable/Vector/api.cjs.map +1 -1
  76. package/_cjs/collection/immutable/Vector/definition.cjs +18 -16
  77. package/_cjs/collection/immutable/Vector/definition.cjs.map +1 -1
  78. package/_cjs/collection/immutable/Vector/internal.cjs +40 -39
  79. package/_cjs/collection/immutable/Vector/internal.cjs.map +1 -1
  80. package/_cjs/collection/mutable/HashMap.cjs +3 -5
  81. package/_cjs/collection/mutable/HashMap.cjs.map +1 -1
  82. package/_cjs/collection/mutable/HashSet.cjs.map +1 -1
  83. package/_cjs/collection/mutable/ListBuffer.cjs +2 -2
  84. package/_cjs/collection/mutable/ListBuffer.cjs.map +1 -1
  85. package/_cjs/collection/mutable/internal.cjs +0 -2
  86. package/_cjs/collection/mutable/internal.cjs.map +1 -1
  87. package/_cjs/collection/weak/IterableWeakMap.cjs +7 -7
  88. package/_cjs/collection/weak/IterableWeakMap.cjs.map +1 -1
  89. package/_cjs/collection/weak/IterableWeakSet.cjs +7 -7
  90. package/_cjs/collection/weak/IterableWeakSet.cjs.map +1 -1
  91. package/_cjs/control/Eval/api.cjs +55 -43
  92. package/_cjs/control/Eval/api.cjs.map +1 -1
  93. package/_cjs/control/Eval/instance.cjs +4 -4
  94. package/_cjs/control/Eval/instance.cjs.map +1 -1
  95. package/_cjs/control/Eval/run.cjs +1 -1
  96. package/_cjs/control/Eval/run.cjs.map +1 -1
  97. package/_cjs/control/Z/api.cjs +241 -172
  98. package/_cjs/control/Z/api.cjs.map +1 -1
  99. package/_cjs/control/Z/instances.cjs +3 -3
  100. package/_cjs/control/Z/instances.cjs.map +1 -1
  101. package/_cjs/control/Z/runtime.cjs +250 -241
  102. package/_cjs/control/Z/runtime.cjs.map +1 -1
  103. package/_cjs/data/Branded/definition.cjs.map +1 -1
  104. package/_cjs/data/Branded/derivations.cjs +3 -3
  105. package/_cjs/data/Branded/derivations.cjs.map +1 -1
  106. package/_cjs/data/CaseClass.cjs.map +1 -1
  107. package/_cjs/data/Cause/api/fold.cjs +20 -18
  108. package/_cjs/data/Cause/api/fold.cjs.map +1 -1
  109. package/_cjs/data/Cause/api/isEmpty.cjs +1 -1
  110. package/_cjs/data/Cause/api/isEmpty.cjs.map +1 -1
  111. package/_cjs/data/Cause/api/linearize.cjs +8 -8
  112. package/_cjs/data/Cause/api/linearize.cjs.map +1 -1
  113. package/_cjs/data/Cause/api/prettyPrint.cjs +1 -1
  114. package/_cjs/data/Cause/api/prettyPrint.cjs.map +1 -1
  115. package/_cjs/data/Cause/api.cjs +160 -140
  116. package/_cjs/data/Cause/api.cjs.map +1 -1
  117. package/_cjs/data/Cause/definition.cjs +18 -18
  118. package/_cjs/data/Cause/definition.cjs.map +1 -1
  119. package/_cjs/data/Cause.cjs.map +1 -1
  120. package/_cjs/data/Const/api.cjs +8 -6
  121. package/_cjs/data/Const/api.cjs.map +1 -1
  122. package/_cjs/data/Const/instances.cjs +4 -4
  123. package/_cjs/data/Const/instances.cjs.map +1 -1
  124. package/_cjs/data/Datum/api.cjs +219 -176
  125. package/_cjs/data/Datum/api.cjs.map +1 -1
  126. package/_cjs/data/Datum/definition.cjs.map +1 -1
  127. package/_cjs/data/DatumEither/api.cjs +165 -133
  128. package/_cjs/data/DatumEither/api.cjs.map +1 -1
  129. package/_cjs/data/DecodeError/definition.cjs +14 -14
  130. package/_cjs/data/DecodeError/definition.cjs.map +1 -1
  131. package/_cjs/data/Decoder/api.cjs +9 -7
  132. package/_cjs/data/Decoder/api.cjs.map +1 -1
  133. package/_cjs/data/Duration/api.cjs +18 -12
  134. package/_cjs/data/Duration/api.cjs.map +1 -1
  135. package/_cjs/data/Either/api/align.cjs +8 -3
  136. package/_cjs/data/Either/api/align.cjs.map +1 -1
  137. package/_cjs/data/Either/api/alignWith.cjs +14 -12
  138. package/_cjs/data/Either/api/alignWith.cjs.map +1 -1
  139. package/_cjs/data/Either/api.cjs +206 -169
  140. package/_cjs/data/Either/api.cjs.map +1 -1
  141. package/_cjs/data/Either/constructors.cjs +11 -9
  142. package/_cjs/data/Either/constructors.cjs.map +1 -1
  143. package/_cjs/data/Either/destructors.cjs +16 -14
  144. package/_cjs/data/Either/destructors.cjs.map +1 -1
  145. package/_cjs/data/Either/instances.cjs +8 -8
  146. package/_cjs/data/Either/instances.cjs.map +1 -1
  147. package/_cjs/data/EitherT/api.cjs +8 -8
  148. package/_cjs/data/EitherT/api.cjs.map +1 -1
  149. package/_cjs/data/Encoder/api.cjs +134 -0
  150. package/_cjs/data/Encoder/api.cjs.map +1 -0
  151. package/_cjs/data/Encoder/definition.cjs +25 -0
  152. package/_cjs/data/Encoder/definition.cjs.map +1 -0
  153. package/_cjs/data/Encoder.cjs +32 -0
  154. package/_cjs/data/Encoder.cjs.map +1 -0
  155. package/_cjs/data/Environment/api.cjs +45 -33
  156. package/_cjs/data/Environment/api.cjs.map +1 -1
  157. package/_cjs/data/EnvironmentPatch.cjs +17 -13
  158. package/_cjs/data/EnvironmentPatch.cjs.map +1 -1
  159. package/_cjs/data/ExecutionStrategy.cjs +21 -29
  160. package/_cjs/data/ExecutionStrategy.cjs.map +1 -1
  161. package/_cjs/data/Exit/api.cjs +159 -127
  162. package/_cjs/data/Exit/api.cjs.map +1 -1
  163. package/_cjs/data/Exit/constructors.cjs +4 -4
  164. package/_cjs/data/Exit/constructors.cjs.map +1 -1
  165. package/_cjs/data/FiberId/api.cjs +23 -21
  166. package/_cjs/data/FiberId/api.cjs.map +1 -1
  167. package/_cjs/data/FiberId/constructors.cjs.map +1 -1
  168. package/_cjs/data/Identity/api.cjs +26 -18
  169. package/_cjs/data/Identity/api.cjs.map +1 -1
  170. package/_cjs/data/Identity/instances.cjs +3 -3
  171. package/_cjs/data/Identity/instances.cjs.map +1 -1
  172. package/_cjs/data/Interval.cjs +43 -33
  173. package/_cjs/data/Interval.cjs.map +1 -1
  174. package/_cjs/data/Intervals.cjs +35 -27
  175. package/_cjs/data/Intervals.cjs.map +1 -1
  176. package/_cjs/data/Maybe/api.cjs +160 -125
  177. package/_cjs/data/Maybe/api.cjs.map +1 -1
  178. package/_cjs/data/Maybe/constructors.cjs +2 -2
  179. package/_cjs/data/Maybe/constructors.cjs.map +1 -1
  180. package/_cjs/data/Maybe/definition.cjs.map +1 -1
  181. package/_cjs/data/Maybe/destructors.cjs +9 -7
  182. package/_cjs/data/Maybe/destructors.cjs.map +1 -1
  183. package/_cjs/data/Maybe/instances.cjs +11 -11
  184. package/_cjs/data/Maybe/instances.cjs.map +1 -1
  185. package/_cjs/data/Predicate/api.cjs +10 -8
  186. package/_cjs/data/Predicate/api.cjs.map +1 -1
  187. package/_cjs/data/Refinement/api.cjs +15 -9
  188. package/_cjs/data/Refinement/api.cjs.map +1 -1
  189. package/_cjs/data/Struct/api.cjs +62 -50
  190. package/_cjs/data/Struct/api.cjs.map +1 -1
  191. package/_cjs/data/Tag/constructors.cjs +3 -2
  192. package/_cjs/data/Tag/constructors.cjs.map +1 -1
  193. package/_cjs/data/Tag/definition.cjs +0 -3
  194. package/_cjs/data/Tag/definition.cjs.map +1 -1
  195. package/_cjs/data/These/api.cjs +188 -170
  196. package/_cjs/data/These/api.cjs.map +1 -1
  197. package/_cjs/data/These/constructors.cjs +1 -1
  198. package/_cjs/data/These/constructors.cjs.map +1 -1
  199. package/_cjs/data/These/destructors.cjs +39 -35
  200. package/_cjs/data/These/destructors.cjs.map +1 -1
  201. package/_cjs/data/These/instances.cjs +1 -1
  202. package/_cjs/data/These/instances.cjs.map +1 -1
  203. package/_cjs/data/Trace/api.cjs +7 -5
  204. package/_cjs/data/Trace/api.cjs.map +1 -1
  205. package/_cjs/data/Zipped.cjs.map +1 -1
  206. package/_cjs/data/function/api.cjs +6 -4
  207. package/_cjs/data/function/api.cjs.map +1 -1
  208. package/_cjs/data/function/pipe.cjs +9 -0
  209. package/_cjs/data/function/pipe.cjs.map +1 -1
  210. package/_cjs/data/string/api.cjs +53 -96
  211. package/_cjs/data/string/api.cjs.map +1 -1
  212. package/_cjs/global/api.cjs +4 -2
  213. package/_cjs/global/api.cjs.map +1 -1
  214. package/_cjs/internal/AtomicBoolean.cjs.map +1 -1
  215. package/_cjs/internal/AtomicNumber.cjs.map +1 -1
  216. package/_cjs/internal/AtomicReference.cjs.map +1 -1
  217. package/_cjs/internal/Stack.cjs +2 -2
  218. package/_cjs/internal/Stack.cjs.map +1 -1
  219. package/_cjs/optics/At/api.cjs +1 -1
  220. package/_cjs/optics/At/api.cjs.map +1 -1
  221. package/_cjs/optics/At/definition.cjs +2 -2
  222. package/_cjs/optics/At/definition.cjs.map +1 -1
  223. package/_cjs/optics/Fold/definition.cjs +3 -4
  224. package/_cjs/optics/Fold/definition.cjs.map +1 -1
  225. package/_cjs/optics/Getter/definition.cjs +2 -3
  226. package/_cjs/optics/Getter/definition.cjs.map +1 -1
  227. package/_cjs/optics/Index/api.cjs +4 -4
  228. package/_cjs/optics/Index/api.cjs.map +1 -1
  229. package/_cjs/optics/Index/definition.cjs +2 -2
  230. package/_cjs/optics/Index/definition.cjs.map +1 -1
  231. package/_cjs/optics/Iso/api.cjs +9 -7
  232. package/_cjs/optics/Iso/api.cjs.map +1 -1
  233. package/_cjs/optics/Iso/definition.cjs +12 -12
  234. package/_cjs/optics/Iso/definition.cjs.map +1 -1
  235. package/_cjs/optics/Lens/api.cjs +54 -44
  236. package/_cjs/optics/Lens/api.cjs.map +1 -1
  237. package/_cjs/optics/Lens/definition.cjs +10 -10
  238. package/_cjs/optics/Lens/definition.cjs.map +1 -1
  239. package/_cjs/optics/Optional/api/compose.cjs +9 -7
  240. package/_cjs/optics/Optional/api/compose.cjs.map +1 -1
  241. package/_cjs/optics/Optional/definition.cjs +12 -13
  242. package/_cjs/optics/Optional/definition.cjs.map +1 -1
  243. package/_cjs/optics/Optional.cjs.map +1 -1
  244. package/_cjs/optics/Prism/api/compose.cjs +9 -7
  245. package/_cjs/optics/Prism/api/compose.cjs.map +1 -1
  246. package/_cjs/optics/Prism/api/fromNullable.cjs +2 -2
  247. package/_cjs/optics/Prism/api/fromNullable.cjs.map +1 -1
  248. package/_cjs/optics/Prism/api/just.cjs +2 -2
  249. package/_cjs/optics/Prism/api/just.cjs.map +1 -1
  250. package/_cjs/optics/Prism/definition.cjs +9 -9
  251. package/_cjs/optics/Prism/definition.cjs.map +1 -1
  252. package/_cjs/optics/Prism.cjs.map +1 -1
  253. package/_cjs/optics/Setter/definition.cjs +8 -13
  254. package/_cjs/optics/Setter/definition.cjs.map +1 -1
  255. package/_cjs/optics/Traversal/api/compose.cjs +8 -6
  256. package/_cjs/optics/Traversal/api/compose.cjs.map +1 -1
  257. package/_cjs/optics/Traversal/api/fromTraversable.cjs +2 -2
  258. package/_cjs/optics/Traversal/api/fromTraversable.cjs.map +1 -1
  259. package/_cjs/optics/Traversal/definition.cjs +12 -12
  260. package/_cjs/optics/Traversal/definition.cjs.map +1 -1
  261. package/_cjs/optics/Traversal.cjs.map +1 -1
  262. package/_cjs/typeclass/Align.cjs.map +1 -1
  263. package/_cjs/typeclass/Alt.cjs.map +1 -1
  264. package/_cjs/typeclass/Applicative.cjs.map +1 -1
  265. package/_cjs/typeclass/ApplicativeExcept.cjs +5 -10
  266. package/_cjs/typeclass/ApplicativeExcept.cjs.map +1 -1
  267. package/_cjs/typeclass/Apply.cjs +8 -8
  268. package/_cjs/typeclass/Apply.cjs.map +1 -1
  269. package/_cjs/typeclass/Chain.cjs +4 -4
  270. package/_cjs/typeclass/Chain.cjs.map +1 -1
  271. package/_cjs/typeclass/Eq/definition.cjs.map +1 -1
  272. package/_cjs/typeclass/Eq/derivations.cjs.map +1 -1
  273. package/_cjs/typeclass/Equatable/api.cjs.map +1 -1
  274. package/_cjs/typeclass/Equatable/definition.cjs.map +1 -1
  275. package/_cjs/typeclass/Equatable/fast-equals.cjs.map +1 -1
  276. package/_cjs/typeclass/Filterable.cjs.map +1 -1
  277. package/_cjs/typeclass/FilterableWithIndex.cjs.map +1 -1
  278. package/_cjs/typeclass/Foldable.cjs +1 -1
  279. package/_cjs/typeclass/Foldable.cjs.map +1 -1
  280. package/_cjs/typeclass/FoldableWithIndex.cjs +1 -1
  281. package/_cjs/typeclass/FoldableWithIndex.cjs.map +1 -1
  282. package/_cjs/typeclass/Functor.cjs.map +1 -1
  283. package/_cjs/typeclass/FunctorWithIndex.cjs.map +1 -1
  284. package/_cjs/typeclass/Guard/api.cjs +18 -10
  285. package/_cjs/typeclass/Guard/api.cjs.map +1 -1
  286. package/_cjs/typeclass/Guard/definition.cjs.map +1 -1
  287. package/_cjs/typeclass/Guard/derivations.cjs.map +1 -1
  288. package/_cjs/typeclass/Has.cjs +7 -5
  289. package/_cjs/typeclass/Has.cjs.map +1 -1
  290. package/_cjs/typeclass/HashEq.cjs.map +1 -1
  291. package/_cjs/typeclass/Hashable/definition.cjs.map +1 -1
  292. package/_cjs/typeclass/Hashable/hash.cjs.map +1 -1
  293. package/_cjs/typeclass/MonadExcept.cjs +1 -1
  294. package/_cjs/typeclass/MonadExcept.cjs.map +1 -1
  295. package/_cjs/typeclass/Ord/api/contramap.cjs +7 -5
  296. package/_cjs/typeclass/Ord/api/contramap.cjs.map +1 -1
  297. package/_cjs/typeclass/Ord/api/max.cjs.map +1 -1
  298. package/_cjs/typeclass/Ord/api/min.cjs.map +1 -1
  299. package/_cjs/typeclass/Ord/definition.cjs.map +1 -1
  300. package/_cjs/typeclass/Ord/instances.cjs.map +1 -1
  301. package/_cjs/typeclass/Ordering.cjs.map +1 -1
  302. package/_cjs/typeclass/Semialign.cjs +7 -7
  303. package/_cjs/typeclass/Semialign.cjs.map +1 -1
  304. package/_cjs/typeclass/Semigroup/api.cjs.map +1 -1
  305. package/_cjs/typeclass/Semigroup/definition.cjs.map +1 -1
  306. package/_cjs/typeclass/Semigroup/derivations.cjs.map +1 -1
  307. package/_cjs/typeclass/Semimonoidal.cjs.map +1 -1
  308. package/_cjs/typeclass/Showable/definition.cjs.map +1 -1
  309. package/_cjs/typeclass/Showable/show.cjs +107 -107
  310. package/_cjs/typeclass/Showable/show.cjs.map +1 -1
  311. package/_cjs/typeclass/Showable/styles.cjs.map +1 -1
  312. package/_cjs/typeclass/Showable/util.cjs +1 -1
  313. package/_cjs/typeclass/Showable/util.cjs.map +1 -1
  314. package/_cjs/typeclass/Traversable.cjs +1 -2
  315. package/_cjs/typeclass/Traversable.cjs.map +1 -1
  316. package/_cjs/typeclass/TraversableWithIndex.cjs.map +1 -1
  317. package/_cjs/typeclass/Witherable.cjs +3 -1
  318. package/_cjs/typeclass/Witherable.cjs.map +1 -1
  319. package/_cjs/typeclass/WitherableWithIndex.cjs +3 -1
  320. package/_cjs/typeclass/WitherableWithIndex.cjs.map +1 -1
  321. package/_cjs/util/AnsiFormat.cjs +11 -11
  322. package/_cjs/util/AnsiFormat.cjs.map +1 -1
  323. package/_cjs/util/PCGRandom.cjs.map +1 -1
  324. package/_cjs/util/assert.cjs.map +1 -1
  325. package/_cjs/util/pattern.cjs.map +1 -1
  326. package/_cjs/util/predicates.cjs.map +1 -1
  327. package/_cjs/util/rand/Random.cjs.map +1 -1
  328. package/_cjs/util/rand/distribution/UniformArrayIntDistribution.cjs.map +1 -1
  329. package/_cjs/util/rand/distribution/UniformBigIntDistribution.cjs.map +1 -1
  330. package/_cjs/util/rand/distribution/UniformIntDistribution.cjs.map +1 -1
  331. package/_cjs/util/rand/distribution/internals/ArrayInt.cjs.map +1 -1
  332. package/_cjs/util/rand/distribution/internals/UniformArrayIntDistributionInternal.cjs.map +1 -1
  333. package/_cjs/util/rand/distribution/internals/UniformIntDistributionInternal.cjs.map +1 -1
  334. package/_cjs/util/rand/generator/MersenneTwister.cjs.map +1 -1
  335. package/_cjs/util/rand/generator/RandomGenerator.cjs.map +1 -1
  336. package/_cjs/util/rand.cjs.map +1 -1
  337. package/_mjs/collection/Iterable/api/traverseConc.mjs +5 -5
  338. package/_mjs/collection/Iterable/api/traverseConc.mjs.map +1 -1
  339. package/_mjs/collection/Iterable/api.mjs +465 -411
  340. package/_mjs/collection/Iterable/api.mjs.map +1 -1
  341. package/_mjs/collection/Iterable/constructors.mjs +5 -5
  342. package/_mjs/collection/Iterable/constructors.mjs.map +1 -1
  343. package/_mjs/collection/compat/Array/api.mjs +16 -12
  344. package/_mjs/collection/compat/Array/api.mjs.map +1 -1
  345. package/_mjs/collection/compat/Array/derivations.mjs +35 -19
  346. package/_mjs/collection/compat/Array/derivations.mjs.map +1 -1
  347. package/_mjs/collection/compat/ArrayLike/api.mjs +1 -1
  348. package/_mjs/collection/compat/ArrayLike/api.mjs.map +1 -1
  349. package/_mjs/collection/compat/Record/instances.mjs +34 -3
  350. package/_mjs/collection/compat/Record/instances.mjs.map +1 -1
  351. package/_mjs/collection/immutable/Conc/api/makeBy.mjs +1 -1
  352. package/_mjs/collection/immutable/Conc/api/makeBy.mjs.map +1 -1
  353. package/_mjs/collection/immutable/Conc/api.mjs +795 -697
  354. package/_mjs/collection/immutable/Conc/api.mjs.map +1 -1
  355. package/_mjs/collection/immutable/Conc/definition.mjs +53 -51
  356. package/_mjs/collection/immutable/Conc/definition.mjs.map +1 -1
  357. package/_mjs/collection/immutable/Conc/derivations.mjs +10 -2
  358. package/_mjs/collection/immutable/Conc/derivations.mjs.map +1 -1
  359. package/_mjs/collection/immutable/Conc.mjs.map +1 -1
  360. package/_mjs/collection/immutable/Dictionary/api.mjs +47 -35
  361. package/_mjs/collection/immutable/Dictionary/api.mjs.map +1 -1
  362. package/_mjs/collection/immutable/HashMap/api.mjs +295 -217
  363. package/_mjs/collection/immutable/HashMap/api.mjs.map +1 -1
  364. package/_mjs/collection/immutable/HashMap/definition.mjs +1 -1
  365. package/_mjs/collection/immutable/HashMap/definition.mjs.map +1 -1
  366. package/_mjs/collection/immutable/HashMap/internal.mjs.map +1 -1
  367. package/_mjs/collection/immutable/HashSet/api.mjs +206 -168
  368. package/_mjs/collection/immutable/HashSet/api.mjs.map +1 -1
  369. package/_mjs/collection/immutable/HashSet/definition.mjs +1 -1
  370. package/_mjs/collection/immutable/HashSet/definition.mjs.map +1 -1
  371. package/_mjs/collection/immutable/ImmutableArray/api/chunksOf.mjs +5 -3
  372. package/_mjs/collection/immutable/ImmutableArray/api/chunksOf.mjs.map +1 -1
  373. package/_mjs/collection/immutable/ImmutableArray/api/slice.mjs +5 -3
  374. package/_mjs/collection/immutable/ImmutableArray/api/slice.mjs.map +1 -1
  375. package/_mjs/collection/immutable/ImmutableArray/api/splitAt.mjs +5 -3
  376. package/_mjs/collection/immutable/ImmutableArray/api/splitAt.mjs.map +1 -1
  377. package/_mjs/collection/immutable/ImmutableArray/api/splitWhere.mjs +13 -11
  378. package/_mjs/collection/immutable/ImmutableArray/api/splitWhere.mjs.map +1 -1
  379. package/_mjs/collection/immutable/ImmutableArray/api.mjs +816 -629
  380. package/_mjs/collection/immutable/ImmutableArray/api.mjs.map +1 -1
  381. package/_mjs/collection/immutable/ImmutableArray/derivations.mjs +9 -1
  382. package/_mjs/collection/immutable/ImmutableArray/derivations.mjs.map +1 -1
  383. package/_mjs/collection/immutable/ImmutableArray/instances.mjs +34 -34
  384. package/_mjs/collection/immutable/ImmutableArray/instances.mjs.map +1 -1
  385. package/_mjs/collection/immutable/ImmutableArray.mjs.map +1 -1
  386. package/_mjs/collection/immutable/ImmutableNonEmptyArray/api.mjs +301 -239
  387. package/_mjs/collection/immutable/ImmutableNonEmptyArray/api.mjs.map +1 -1
  388. package/_mjs/collection/immutable/ImmutableNonEmptyArray/constructors.mjs.map +1 -1
  389. package/_mjs/collection/immutable/ImmutableNonEmptyArray/definition.mjs.map +1 -1
  390. package/_mjs/collection/immutable/ImmutableNonEmptyArray/derivations.mjs +12 -4
  391. package/_mjs/collection/immutable/ImmutableNonEmptyArray/derivations.mjs.map +1 -1
  392. package/_mjs/collection/immutable/ImmutableNonEmptyArray/destructors.mjs +2 -2
  393. package/_mjs/collection/immutable/ImmutableNonEmptyArray/destructors.mjs.map +1 -1
  394. package/_mjs/collection/immutable/ImmutableNonEmptyArray/instances.mjs +13 -13
  395. package/_mjs/collection/immutable/ImmutableNonEmptyArray/instances.mjs.map +1 -1
  396. package/_mjs/collection/immutable/List/api/foldLeft.mjs +11 -9
  397. package/_mjs/collection/immutable/List/api/foldLeft.mjs.map +1 -1
  398. package/_mjs/collection/immutable/List/api.mjs +157 -133
  399. package/_mjs/collection/immutable/List/api.mjs.map +1 -1
  400. package/_mjs/collection/immutable/List.mjs.map +1 -1
  401. package/_mjs/collection/immutable/Queue/api.mjs +55 -39
  402. package/_mjs/collection/immutable/Queue/api.mjs.map +1 -1
  403. package/_mjs/collection/immutable/Queue/definition.mjs +1 -1
  404. package/_mjs/collection/immutable/Queue/definition.mjs.map +1 -1
  405. package/_mjs/collection/immutable/RoseTree/api.mjs +50 -36
  406. package/_mjs/collection/immutable/RoseTree/api.mjs.map +1 -1
  407. package/_mjs/collection/immutable/RoseTree/definition.mjs.map +1 -1
  408. package/_mjs/collection/immutable/SortedMap/api.mjs +398 -358
  409. package/_mjs/collection/immutable/SortedMap/api.mjs.map +1 -1
  410. package/_mjs/collection/immutable/Vector/api.mjs +650 -538
  411. package/_mjs/collection/immutable/Vector/api.mjs.map +1 -1
  412. package/_mjs/collection/immutable/Vector/definition.mjs +16 -14
  413. package/_mjs/collection/immutable/Vector/definition.mjs.map +1 -1
  414. package/_mjs/collection/immutable/Vector/internal.mjs +40 -39
  415. package/_mjs/collection/immutable/Vector/internal.mjs.map +1 -1
  416. package/_mjs/collection/mutable/HashMap.mjs +3 -5
  417. package/_mjs/collection/mutable/HashMap.mjs.map +1 -1
  418. package/_mjs/collection/mutable/HashSet.mjs.map +1 -1
  419. package/_mjs/collection/mutable/ListBuffer.mjs +2 -2
  420. package/_mjs/collection/mutable/ListBuffer.mjs.map +1 -1
  421. package/_mjs/collection/mutable/internal.mjs +0 -2
  422. package/_mjs/collection/mutable/internal.mjs.map +1 -1
  423. package/_mjs/collection/weak/IterableWeakMap.mjs +7 -7
  424. package/_mjs/collection/weak/IterableWeakMap.mjs.map +1 -1
  425. package/_mjs/collection/weak/IterableWeakSet.mjs +7 -7
  426. package/_mjs/collection/weak/IterableWeakSet.mjs.map +1 -1
  427. package/_mjs/control/Eval/api.mjs +40 -28
  428. package/_mjs/control/Eval/api.mjs.map +1 -1
  429. package/_mjs/control/Eval/instance.mjs +5 -5
  430. package/_mjs/control/Eval/instance.mjs.map +1 -1
  431. package/_mjs/control/Eval/run.mjs +1 -1
  432. package/_mjs/control/Eval/run.mjs.map +1 -1
  433. package/_mjs/control/Z/api.mjs +196 -128
  434. package/_mjs/control/Z/api.mjs.map +1 -1
  435. package/_mjs/control/Z/instances.mjs +4 -4
  436. package/_mjs/control/Z/instances.mjs.map +1 -1
  437. package/_mjs/control/Z/runtime.mjs +244 -234
  438. package/_mjs/control/Z/runtime.mjs.map +1 -1
  439. package/_mjs/data/Branded/definition.mjs.map +1 -1
  440. package/_mjs/data/Branded/derivations.mjs +3 -3
  441. package/_mjs/data/Branded/derivations.mjs.map +1 -1
  442. package/_mjs/data/CaseClass.mjs.map +1 -1
  443. package/_mjs/data/Cause/api/fold.mjs +19 -17
  444. package/_mjs/data/Cause/api/fold.mjs.map +1 -1
  445. package/_mjs/data/Cause/api/isEmpty.mjs +1 -1
  446. package/_mjs/data/Cause/api/isEmpty.mjs.map +1 -1
  447. package/_mjs/data/Cause/api/linearize.mjs +8 -8
  448. package/_mjs/data/Cause/api/linearize.mjs.map +1 -1
  449. package/_mjs/data/Cause/api/prettyPrint.mjs +1 -1
  450. package/_mjs/data/Cause/api/prettyPrint.mjs.map +1 -1
  451. package/_mjs/data/Cause/api.mjs +149 -129
  452. package/_mjs/data/Cause/api.mjs.map +1 -1
  453. package/_mjs/data/Cause/definition.mjs +18 -18
  454. package/_mjs/data/Cause/definition.mjs.map +1 -1
  455. package/_mjs/data/Cause.mjs.map +1 -1
  456. package/_mjs/data/Const/api.mjs +6 -4
  457. package/_mjs/data/Const/api.mjs.map +1 -1
  458. package/_mjs/data/Const/instances.mjs +4 -4
  459. package/_mjs/data/Const/instances.mjs.map +1 -1
  460. package/_mjs/data/Datum/api.mjs +220 -179
  461. package/_mjs/data/Datum/api.mjs.map +1 -1
  462. package/_mjs/data/Datum/definition.mjs.map +1 -1
  463. package/_mjs/data/DatumEither/api.mjs +163 -132
  464. package/_mjs/data/DatumEither/api.mjs.map +1 -1
  465. package/_mjs/data/DecodeError/definition.mjs +14 -14
  466. package/_mjs/data/DecodeError/definition.mjs.map +1 -1
  467. package/_mjs/data/Decoder/api.mjs +9 -7
  468. package/_mjs/data/Decoder/api.mjs.map +1 -1
  469. package/_mjs/data/Duration/api.mjs +16 -10
  470. package/_mjs/data/Duration/api.mjs.map +1 -1
  471. package/_mjs/data/Either/api/align.mjs +8 -2
  472. package/_mjs/data/Either/api/align.mjs.map +1 -1
  473. package/_mjs/data/Either/api/alignWith.mjs +13 -11
  474. package/_mjs/data/Either/api/alignWith.mjs.map +1 -1
  475. package/_mjs/data/Either/api.mjs +175 -136
  476. package/_mjs/data/Either/api.mjs.map +1 -1
  477. package/_mjs/data/Either/constructors.mjs +7 -5
  478. package/_mjs/data/Either/constructors.mjs.map +1 -1
  479. package/_mjs/data/Either/destructors.mjs +15 -13
  480. package/_mjs/data/Either/destructors.mjs.map +1 -1
  481. package/_mjs/data/Either/instances.mjs +9 -9
  482. package/_mjs/data/Either/instances.mjs.map +1 -1
  483. package/_mjs/data/EitherT/api.mjs +8 -8
  484. package/_mjs/data/EitherT/api.mjs.map +1 -1
  485. package/_mjs/data/Encoder/api.mjs +102 -0
  486. package/_mjs/data/Encoder/api.mjs.map +1 -0
  487. package/_mjs/data/Encoder/definition.mjs +15 -0
  488. package/_mjs/data/Encoder/definition.mjs.map +1 -0
  489. package/_mjs/data/Encoder.mjs +4 -0
  490. package/_mjs/data/Encoder.mjs.map +1 -0
  491. package/_mjs/data/Environment/api.mjs +45 -33
  492. package/_mjs/data/Environment/api.mjs.map +1 -1
  493. package/_mjs/data/EnvironmentPatch.mjs +17 -13
  494. package/_mjs/data/EnvironmentPatch.mjs.map +1 -1
  495. package/_mjs/data/ExecutionStrategy.mjs +19 -27
  496. package/_mjs/data/ExecutionStrategy.mjs.map +1 -1
  497. package/_mjs/data/Exit/api.mjs +140 -108
  498. package/_mjs/data/Exit/api.mjs.map +1 -1
  499. package/_mjs/data/Exit/constructors.mjs +3 -3
  500. package/_mjs/data/Exit/constructors.mjs.map +1 -1
  501. package/_mjs/data/FiberId/api.mjs +22 -20
  502. package/_mjs/data/FiberId/api.mjs.map +1 -1
  503. package/_mjs/data/FiberId/constructors.mjs.map +1 -1
  504. package/_mjs/data/Identity/api.mjs +21 -13
  505. package/_mjs/data/Identity/api.mjs.map +1 -1
  506. package/_mjs/data/Identity/instances.mjs +4 -4
  507. package/_mjs/data/Identity/instances.mjs.map +1 -1
  508. package/_mjs/data/Interval.mjs +38 -28
  509. package/_mjs/data/Interval.mjs.map +1 -1
  510. package/_mjs/data/Intervals.mjs +35 -27
  511. package/_mjs/data/Intervals.mjs.map +1 -1
  512. package/_mjs/data/Maybe/api.mjs +141 -106
  513. package/_mjs/data/Maybe/api.mjs.map +1 -1
  514. package/_mjs/data/Maybe/constructors.mjs +1 -1
  515. package/_mjs/data/Maybe/constructors.mjs.map +1 -1
  516. package/_mjs/data/Maybe/definition.mjs.map +1 -1
  517. package/_mjs/data/Maybe/destructors.mjs +8 -6
  518. package/_mjs/data/Maybe/destructors.mjs.map +1 -1
  519. package/_mjs/data/Maybe/instances.mjs +12 -12
  520. package/_mjs/data/Maybe/instances.mjs.map +1 -1
  521. package/_mjs/data/Predicate/api.mjs +10 -8
  522. package/_mjs/data/Predicate/api.mjs.map +1 -1
  523. package/_mjs/data/Refinement/api.mjs +15 -9
  524. package/_mjs/data/Refinement/api.mjs.map +1 -1
  525. package/_mjs/data/Struct/api.mjs +56 -44
  526. package/_mjs/data/Struct/api.mjs.map +1 -1
  527. package/_mjs/data/Tag/constructors.mjs +3 -2
  528. package/_mjs/data/Tag/constructors.mjs.map +1 -1
  529. package/_mjs/data/Tag/definition.mjs +0 -2
  530. package/_mjs/data/Tag/definition.mjs.map +1 -1
  531. package/_mjs/data/These/api.mjs +187 -169
  532. package/_mjs/data/These/api.mjs.map +1 -1
  533. package/_mjs/data/These/constructors.mjs +1 -1
  534. package/_mjs/data/These/constructors.mjs.map +1 -1
  535. package/_mjs/data/These/destructors.mjs +35 -31
  536. package/_mjs/data/These/destructors.mjs.map +1 -1
  537. package/_mjs/data/These/instances.mjs +1 -1
  538. package/_mjs/data/These/instances.mjs.map +1 -1
  539. package/_mjs/data/Trace/api.mjs +6 -4
  540. package/_mjs/data/Trace/api.mjs.map +1 -1
  541. package/_mjs/data/Zipped.mjs.map +1 -1
  542. package/_mjs/data/function/api.mjs +5 -3
  543. package/_mjs/data/function/api.mjs.map +1 -1
  544. package/_mjs/data/function/pipe.mjs +7 -0
  545. package/_mjs/data/function/pipe.mjs.map +1 -1
  546. package/_mjs/data/string/api.mjs +46 -66
  547. package/_mjs/data/string/api.mjs.map +1 -1
  548. package/_mjs/global/api.mjs +4 -2
  549. package/_mjs/global/api.mjs.map +1 -1
  550. package/_mjs/internal/AtomicBoolean.mjs.map +1 -1
  551. package/_mjs/internal/AtomicNumber.mjs.map +1 -1
  552. package/_mjs/internal/AtomicReference.mjs.map +1 -1
  553. package/_mjs/internal/Stack.mjs +1 -1
  554. package/_mjs/internal/Stack.mjs.map +1 -1
  555. package/_mjs/optics/At/api.mjs +1 -1
  556. package/_mjs/optics/At/api.mjs.map +1 -1
  557. package/_mjs/optics/At/definition.mjs +2 -2
  558. package/_mjs/optics/At/definition.mjs.map +1 -1
  559. package/_mjs/optics/Fold/definition.mjs +2 -3
  560. package/_mjs/optics/Fold/definition.mjs.map +1 -1
  561. package/_mjs/optics/Getter/definition.mjs +1 -2
  562. package/_mjs/optics/Getter/definition.mjs.map +1 -1
  563. package/_mjs/optics/Index/api.mjs +4 -4
  564. package/_mjs/optics/Index/api.mjs.map +1 -1
  565. package/_mjs/optics/Index/definition.mjs +1 -1
  566. package/_mjs/optics/Index/definition.mjs.map +1 -1
  567. package/_mjs/optics/Iso/api.mjs +8 -6
  568. package/_mjs/optics/Iso/api.mjs.map +1 -1
  569. package/_mjs/optics/Iso/definition.mjs +9 -9
  570. package/_mjs/optics/Iso/definition.mjs.map +1 -1
  571. package/_mjs/optics/Lens/api.mjs +49 -39
  572. package/_mjs/optics/Lens/api.mjs.map +1 -1
  573. package/_mjs/optics/Lens/definition.mjs +7 -7
  574. package/_mjs/optics/Lens/definition.mjs.map +1 -1
  575. package/_mjs/optics/Optional/api/compose.mjs +8 -6
  576. package/_mjs/optics/Optional/api/compose.mjs.map +1 -1
  577. package/_mjs/optics/Optional/definition.mjs +8 -10
  578. package/_mjs/optics/Optional/definition.mjs.map +1 -1
  579. package/_mjs/optics/Optional.mjs.map +1 -1
  580. package/_mjs/optics/Prism/api/compose.mjs +8 -6
  581. package/_mjs/optics/Prism/api/compose.mjs.map +1 -1
  582. package/_mjs/optics/Prism/api/fromNullable.mjs +2 -2
  583. package/_mjs/optics/Prism/api/fromNullable.mjs.map +1 -1
  584. package/_mjs/optics/Prism/api/just.mjs +2 -2
  585. package/_mjs/optics/Prism/api/just.mjs.map +1 -1
  586. package/_mjs/optics/Prism/definition.mjs +6 -6
  587. package/_mjs/optics/Prism/definition.mjs.map +1 -1
  588. package/_mjs/optics/Prism.mjs.map +1 -1
  589. package/_mjs/optics/Setter/definition.mjs +5 -10
  590. package/_mjs/optics/Setter/definition.mjs.map +1 -1
  591. package/_mjs/optics/Traversal/api/compose.mjs +7 -5
  592. package/_mjs/optics/Traversal/api/compose.mjs.map +1 -1
  593. package/_mjs/optics/Traversal/api/fromTraversable.mjs +2 -2
  594. package/_mjs/optics/Traversal/api/fromTraversable.mjs.map +1 -1
  595. package/_mjs/optics/Traversal/definition.mjs +9 -9
  596. package/_mjs/optics/Traversal/definition.mjs.map +1 -1
  597. package/_mjs/optics/Traversal.mjs.map +1 -1
  598. package/_mjs/typeclass/Align.mjs.map +1 -1
  599. package/_mjs/typeclass/Alt.mjs.map +1 -1
  600. package/_mjs/typeclass/Applicative.mjs.map +1 -1
  601. package/_mjs/typeclass/ApplicativeExcept.mjs +6 -10
  602. package/_mjs/typeclass/ApplicativeExcept.mjs.map +1 -1
  603. package/_mjs/typeclass/Apply.mjs +9 -9
  604. package/_mjs/typeclass/Apply.mjs.map +1 -1
  605. package/_mjs/typeclass/Chain.mjs +5 -5
  606. package/_mjs/typeclass/Chain.mjs.map +1 -1
  607. package/_mjs/typeclass/Eq/definition.mjs.map +1 -1
  608. package/_mjs/typeclass/Eq/derivations.mjs.map +1 -1
  609. package/_mjs/typeclass/Equatable/api.mjs.map +1 -1
  610. package/_mjs/typeclass/Equatable/definition.mjs.map +1 -1
  611. package/_mjs/typeclass/Equatable/fast-equals.mjs.map +1 -1
  612. package/_mjs/typeclass/Filterable.mjs.map +1 -1
  613. package/_mjs/typeclass/FilterableWithIndex.mjs.map +1 -1
  614. package/_mjs/typeclass/Foldable.mjs +1 -1
  615. package/_mjs/typeclass/Foldable.mjs.map +1 -1
  616. package/_mjs/typeclass/FoldableWithIndex.mjs +1 -1
  617. package/_mjs/typeclass/FoldableWithIndex.mjs.map +1 -1
  618. package/_mjs/typeclass/Functor.mjs.map +1 -1
  619. package/_mjs/typeclass/FunctorWithIndex.mjs.map +1 -1
  620. package/_mjs/typeclass/Guard/api.mjs +18 -10
  621. package/_mjs/typeclass/Guard/api.mjs.map +1 -1
  622. package/_mjs/typeclass/Guard/definition.mjs.map +1 -1
  623. package/_mjs/typeclass/Guard/derivations.mjs.map +1 -1
  624. package/_mjs/typeclass/Has.mjs +7 -5
  625. package/_mjs/typeclass/Has.mjs.map +1 -1
  626. package/_mjs/typeclass/HashEq.mjs.map +1 -1
  627. package/_mjs/typeclass/Hashable/definition.mjs.map +1 -1
  628. package/_mjs/typeclass/Hashable/hash.mjs.map +1 -1
  629. package/_mjs/typeclass/MonadExcept.mjs +1 -1
  630. package/_mjs/typeclass/MonadExcept.mjs.map +1 -1
  631. package/_mjs/typeclass/Ord/api/contramap.mjs +7 -5
  632. package/_mjs/typeclass/Ord/api/contramap.mjs.map +1 -1
  633. package/_mjs/typeclass/Ord/api/max.mjs.map +1 -1
  634. package/_mjs/typeclass/Ord/api/min.mjs.map +1 -1
  635. package/_mjs/typeclass/Ord/definition.mjs.map +1 -1
  636. package/_mjs/typeclass/Ord/instances.mjs.map +1 -1
  637. package/_mjs/typeclass/Ordering.mjs.map +1 -1
  638. package/_mjs/typeclass/Semialign.mjs +7 -7
  639. package/_mjs/typeclass/Semialign.mjs.map +1 -1
  640. package/_mjs/typeclass/Semigroup/api.mjs.map +1 -1
  641. package/_mjs/typeclass/Semigroup/definition.mjs.map +1 -1
  642. package/_mjs/typeclass/Semigroup/derivations.mjs.map +1 -1
  643. package/_mjs/typeclass/Semimonoidal.mjs.map +1 -1
  644. package/_mjs/typeclass/Showable/definition.mjs.map +1 -1
  645. package/_mjs/typeclass/Showable/show.mjs +107 -107
  646. package/_mjs/typeclass/Showable/show.mjs.map +1 -1
  647. package/_mjs/typeclass/Showable/styles.mjs.map +1 -1
  648. package/_mjs/typeclass/Showable/util.mjs +1 -1
  649. package/_mjs/typeclass/Showable/util.mjs.map +1 -1
  650. package/_mjs/typeclass/Traversable.mjs +1 -2
  651. package/_mjs/typeclass/Traversable.mjs.map +1 -1
  652. package/_mjs/typeclass/TraversableWithIndex.mjs.map +1 -1
  653. package/_mjs/typeclass/Witherable.mjs +2 -1
  654. package/_mjs/typeclass/Witherable.mjs.map +1 -1
  655. package/_mjs/typeclass/WitherableWithIndex.mjs +2 -1
  656. package/_mjs/typeclass/WitherableWithIndex.mjs.map +1 -1
  657. package/_mjs/util/AnsiFormat.mjs +11 -11
  658. package/_mjs/util/AnsiFormat.mjs.map +1 -1
  659. package/_mjs/util/PCGRandom.mjs.map +1 -1
  660. package/_mjs/util/assert.mjs.map +1 -1
  661. package/_mjs/util/pattern.mjs.map +1 -1
  662. package/_mjs/util/predicates.mjs.map +1 -1
  663. package/_mjs/util/rand/Random.mjs.map +1 -1
  664. package/_mjs/util/rand/distribution/UniformArrayIntDistribution.mjs.map +1 -1
  665. package/_mjs/util/rand/distribution/UniformBigIntDistribution.mjs.map +1 -1
  666. package/_mjs/util/rand/distribution/UniformIntDistribution.mjs.map +1 -1
  667. package/_mjs/util/rand/distribution/internals/ArrayInt.mjs.map +1 -1
  668. package/_mjs/util/rand/distribution/internals/UniformArrayIntDistributionInternal.mjs.map +1 -1
  669. package/_mjs/util/rand/distribution/internals/UniformIntDistributionInternal.mjs.map +1 -1
  670. package/_mjs/util/rand/generator/MersenneTwister.mjs.map +1 -1
  671. package/_mjs/util/rand/generator/RandomGenerator.mjs.map +1 -1
  672. package/_mjs/util/rand.mjs.map +1 -1
  673. package/_src/collection/Iterable/api/traverseConc.ts +3 -3
  674. package/_src/collection/Iterable/api.ts +445 -408
  675. package/_src/collection/Iterable/constructors.ts +1 -1
  676. package/_src/collection/compat/Array/api.ts +16 -13
  677. package/_src/collection/compat/Array/derivations.ts +27 -1
  678. package/_src/collection/compat/Record/instances.ts +51 -2
  679. package/_src/collection/immutable/Conc/api.ts +716 -607
  680. package/_src/collection/immutable/Conc/definition.ts +60 -68
  681. package/_src/collection/immutable/Conc/derivations.ts +13 -0
  682. package/_src/collection/immutable/Conc.ts +0 -1
  683. package/_src/collection/immutable/Dictionary/api.ts +44 -32
  684. package/_src/collection/immutable/HashMap/api.ts +338 -224
  685. package/_src/collection/immutable/HashMap/internal.ts +3 -7
  686. package/_src/collection/immutable/HashSet/api.ts +193 -158
  687. package/_src/collection/immutable/ImmutableArray/api/chunksOf.ts +5 -3
  688. package/_src/collection/immutable/ImmutableArray/api/slice.ts +5 -3
  689. package/_src/collection/immutable/ImmutableArray/api/splitAt.ts +5 -3
  690. package/_src/collection/immutable/ImmutableArray/api/splitWhere.ts +13 -14
  691. package/_src/collection/immutable/ImmutableArray/api.ts +870 -722
  692. package/_src/collection/immutable/ImmutableArray/derivations.ts +13 -0
  693. package/_src/collection/immutable/ImmutableArray/instances.ts +54 -73
  694. package/_src/collection/immutable/ImmutableArray.ts +0 -1
  695. package/_src/collection/immutable/ImmutableNonEmptyArray/api.ts +311 -273
  696. package/_src/collection/immutable/ImmutableNonEmptyArray/constructors.ts +19 -4
  697. package/_src/collection/immutable/ImmutableNonEmptyArray/definition.ts +0 -1
  698. package/_src/collection/immutable/ImmutableNonEmptyArray/derivations.ts +13 -0
  699. package/_src/collection/immutable/ImmutableNonEmptyArray/instances.ts +22 -23
  700. package/_src/collection/immutable/List/api/foldLeft.ts +11 -9
  701. package/_src/collection/immutable/List/api.ts +147 -133
  702. package/_src/collection/immutable/List.ts +0 -1
  703. package/_src/collection/immutable/Queue/api.ts +53 -37
  704. package/_src/collection/immutable/Queue/definition.ts +0 -1
  705. package/_src/collection/immutable/RoseTree/api.ts +38 -32
  706. package/_src/collection/immutable/RoseTree/definition.ts +2 -0
  707. package/_src/collection/immutable/SortedMap/api.ts +364 -332
  708. package/_src/collection/immutable/Vector/api.ts +608 -482
  709. package/_src/collection/immutable/Vector/definition.ts +11 -12
  710. package/_src/collection/immutable/Vector/internal.ts +37 -38
  711. package/_src/collection/mutable/HashMap.ts +1 -4
  712. package/_src/collection/mutable/HashSet.ts +1 -2
  713. package/_src/collection/mutable/ListBuffer.ts +1 -1
  714. package/_src/collection/mutable/internal.ts +0 -2
  715. package/_src/collection/weak/IterableWeakMap.ts +11 -7
  716. package/_src/collection/weak/IterableWeakSet.ts +10 -5
  717. package/_src/control/Eval/api.ts +35 -19
  718. package/_src/control/Eval/instance.ts +5 -5
  719. package/_src/control/Z/api.ts +191 -208
  720. package/_src/control/Z/instances.ts +4 -5
  721. package/_src/control/Z/runtime.ts +190 -189
  722. package/_src/data/Branded/definition.ts +11 -12
  723. package/_src/data/Branded/derivations.ts +2 -2
  724. package/_src/data/CaseClass.ts +4 -1
  725. package/_src/data/Cause/api/fold.ts +13 -14
  726. package/_src/data/Cause/api.ts +125 -105
  727. package/_src/data/Cause.ts +0 -1
  728. package/_src/data/Const/api.ts +6 -4
  729. package/_src/data/Const/instances.ts +3 -3
  730. package/_src/data/Datum/api.ts +229 -197
  731. package/_src/data/Datum/definition.ts +2 -5
  732. package/_src/data/DatumEither/api.ts +208 -193
  733. package/_src/data/Decoder/api.ts +5 -3
  734. package/_src/data/Duration/api.ts +19 -15
  735. package/_src/data/Either/api/align.ts +7 -2
  736. package/_src/data/Either/api/alignWith.ts +13 -15
  737. package/_src/data/Either/api.ts +141 -119
  738. package/_src/data/Either/constructors.ts +12 -10
  739. package/_src/data/Either/destructors.ts +11 -9
  740. package/_src/data/Either/instances.ts +24 -20
  741. package/_src/data/EitherT/api.ts +43 -49
  742. package/_src/data/Encoder/api.ts +123 -0
  743. package/_src/data/Encoder/definition.ts +12 -0
  744. package/_src/data/Encoder.ts +4 -0
  745. package/_src/data/Environment/api.ts +52 -44
  746. package/_src/data/EnvironmentPatch.ts +10 -9
  747. package/_src/data/ExecutionStrategy.ts +14 -24
  748. package/_src/data/Exit/api.ts +104 -73
  749. package/_src/data/Exit/constructors.ts +2 -2
  750. package/_src/data/FiberId/api.ts +19 -17
  751. package/_src/data/FiberId/constructors.ts +1 -2
  752. package/_src/data/Identity/api.ts +20 -12
  753. package/_src/data/Identity/instances.ts +4 -7
  754. package/_src/data/Interval.ts +39 -29
  755. package/_src/data/Intervals.ts +31 -23
  756. package/_src/data/Maybe/api.ts +112 -79
  757. package/_src/data/Maybe/constructors.ts +3 -3
  758. package/_src/data/Maybe/definition.ts +11 -1
  759. package/_src/data/Maybe/destructors.ts +6 -4
  760. package/_src/data/Maybe/instances.ts +10 -21
  761. package/_src/data/Predicate/api.ts +14 -8
  762. package/_src/data/Refinement/api.ts +19 -13
  763. package/_src/data/Struct/api.ts +75 -55
  764. package/_src/data/Tag/constructors.ts +1 -2
  765. package/_src/data/Tag/definition.ts +0 -1
  766. package/_src/data/These/api.ts +114 -114
  767. package/_src/data/These/destructors.ts +23 -24
  768. package/_src/data/Trace/api.ts +5 -3
  769. package/_src/data/Zipped.ts +3 -4
  770. package/_src/data/function/api.ts +6 -7
  771. package/_src/data/function/pipe.ts +9 -1
  772. package/_src/data/string/api.ts +40 -60
  773. package/_src/data.ts +1 -0
  774. package/_src/global/api.ts +7 -12
  775. package/_src/global.ts +4 -0
  776. package/_src/internal/AtomicBoolean.ts +0 -1
  777. package/_src/internal/AtomicNumber.ts +0 -7
  778. package/_src/internal/AtomicReference.ts +0 -4
  779. package/_src/internal/Stack.ts +1 -7
  780. package/_src/optics/At/definition.ts +5 -3
  781. package/_src/optics/Fold/definition.ts +3 -10
  782. package/_src/optics/Getter/definition.ts +1 -2
  783. package/_src/optics/Index/definition.ts +1 -1
  784. package/_src/optics/Iso/api.ts +8 -6
  785. package/_src/optics/Iso/definition.ts +3 -3
  786. package/_src/optics/Lens/api.ts +44 -42
  787. package/_src/optics/Lens/definition.ts +5 -5
  788. package/_src/optics/Optional/api/compose.ts +9 -9
  789. package/_src/optics/Optional/definition.ts +9 -16
  790. package/_src/optics/Optional.ts +0 -1
  791. package/_src/optics/Prism/api/compose.ts +9 -6
  792. package/_src/optics/Prism/definition.ts +3 -3
  793. package/_src/optics/Prism.ts +0 -1
  794. package/_src/optics/Setter/definition.ts +3 -23
  795. package/_src/optics/Traversal/api/compose.ts +7 -8
  796. package/_src/optics/Traversal/api/fromTraversable.ts +1 -1
  797. package/_src/optics/Traversal/definition.ts +10 -15
  798. package/_src/optics/Traversal.ts +0 -1
  799. package/_src/typeclass/Align.ts +0 -3
  800. package/_src/typeclass/Alt.ts +2 -1
  801. package/_src/typeclass/Applicative.ts +0 -1
  802. package/_src/typeclass/ApplicativeExcept.ts +15 -10
  803. package/_src/typeclass/Apply.ts +30 -33
  804. package/_src/typeclass/Chain.ts +9 -12
  805. package/_src/typeclass/Eq/definition.ts +0 -3
  806. package/_src/typeclass/Eq/derivations.ts +0 -2
  807. package/_src/typeclass/Equatable/api.ts +0 -2
  808. package/_src/typeclass/Equatable/definition.ts +0 -4
  809. package/_src/typeclass/Equatable/fast-equals.ts +11 -93
  810. package/_src/typeclass/Filterable.ts +19 -13
  811. package/_src/typeclass/FilterableWithIndex.ts +19 -13
  812. package/_src/typeclass/Foldable.ts +7 -10
  813. package/_src/typeclass/FoldableWithIndex.ts +7 -10
  814. package/_src/typeclass/Functor.ts +6 -4
  815. package/_src/typeclass/FunctorWithIndex.ts +3 -2
  816. package/_src/typeclass/Guard/api.ts +21 -16
  817. package/_src/typeclass/Guard/definition.ts +0 -3
  818. package/_src/typeclass/Guard/derivations.ts +5 -6
  819. package/_src/typeclass/Has.ts +6 -4
  820. package/_src/typeclass/HashEq.ts +0 -7
  821. package/_src/typeclass/Hashable/definition.ts +0 -4
  822. package/_src/typeclass/Hashable/hash.ts +0 -26
  823. package/_src/typeclass/MonadExcept.ts +1 -1
  824. package/_src/typeclass/Ord/api/contramap.ts +7 -6
  825. package/_src/typeclass/Ord/api/max.ts +0 -1
  826. package/_src/typeclass/Ord/api/min.ts +0 -1
  827. package/_src/typeclass/Ord/definition.ts +0 -4
  828. package/_src/typeclass/Ord/instances.ts +0 -2
  829. package/_src/typeclass/Ordering.ts +2 -0
  830. package/_src/typeclass/Semialign.ts +43 -32
  831. package/_src/typeclass/Semigroup/api.ts +0 -2
  832. package/_src/typeclass/Semigroup/definition.ts +0 -4
  833. package/_src/typeclass/Semigroup/derivations.ts +0 -2
  834. package/_src/typeclass/Semimonoidal.ts +3 -2
  835. package/_src/typeclass/Showable/definition.ts +0 -6
  836. package/_src/typeclass/Showable/show.ts +1 -57
  837. package/_src/typeclass/Showable/styles.ts +0 -8
  838. package/_src/typeclass/Showable/util.ts +22 -57
  839. package/_src/typeclass/Traversable.ts +13 -18
  840. package/_src/typeclass/TraversableWithIndex.ts +5 -7
  841. package/_src/typeclass/Witherable.ts +21 -13
  842. package/_src/typeclass/WitherableWithIndex.ts +26 -17
  843. package/_src/typeclass/builtin/Symbol.ts +0 -1
  844. package/_src/types/extractions.ts +12 -3
  845. package/_src/types/utility.ts +3 -5
  846. package/_src/util/AnsiFormat.ts +0 -25
  847. package/_src/util/PCGRandom.ts +4 -9
  848. package/_src/util/assert.ts +1 -2
  849. package/_src/util/pattern.ts +91 -12
  850. package/_src/util/predicates.ts +3 -1
  851. package/_src/util/rand/Random.ts +12 -16
  852. package/_src/util/rand/distribution/Distribution.ts +0 -1
  853. package/_src/util/rand/distribution/UniformArrayIntDistribution.ts +0 -3
  854. package/_src/util/rand/distribution/UniformBigIntDistribution.ts +0 -5
  855. package/_src/util/rand/distribution/UniformIntDistribution.ts +0 -7
  856. package/_src/util/rand/distribution/internals/ArrayInt.ts +3 -13
  857. package/_src/util/rand/distribution/internals/UniformArrayIntDistributionInternal.ts +0 -3
  858. package/_src/util/rand/distribution/internals/UniformIntDistributionInternal.ts +0 -4
  859. package/_src/util/rand/generator/MersenneTwister.ts +6 -29
  860. package/_src/util/rand/generator/RandomGenerator.ts +0 -3
  861. package/_src/util/rand.ts +0 -2
  862. package/collection/Iterable/api/traverseConc.d.ts +2 -2
  863. package/collection/Iterable/api.d.ts +64 -64
  864. package/collection/Iterable/constructors.d.ts +1 -1
  865. package/collection/compat/Array/api.d.ts +6 -6
  866. package/collection/compat/Array/derivations.d.ts +11 -0
  867. package/collection/compat/Record/instances.d.ts +30 -6
  868. package/collection/immutable/Conc/api.d.ts +108 -105
  869. package/collection/immutable/Conc/definition.d.ts +2 -2
  870. package/collection/immutable/Conc/derivations.d.ts +6 -0
  871. package/collection/immutable/Dictionary/api.d.ts +12 -12
  872. package/collection/immutable/HashMap/api.d.ts +76 -70
  873. package/collection/immutable/HashSet/api.d.ts +45 -41
  874. package/collection/immutable/ImmutableArray/api/chunksOf.d.ts +2 -2
  875. package/collection/immutable/ImmutableArray/api/slice.d.ts +2 -2
  876. package/collection/immutable/ImmutableArray/api/splitAt.d.ts +2 -2
  877. package/collection/immutable/ImmutableArray/api/splitWhere.d.ts +3 -3
  878. package/collection/immutable/ImmutableArray/api.d.ts +206 -206
  879. package/collection/immutable/ImmutableArray/derivations.d.ts +6 -0
  880. package/collection/immutable/ImmutableNonEmptyArray/api.d.ts +64 -63
  881. package/collection/immutable/ImmutableNonEmptyArray/derivations.d.ts +6 -0
  882. package/collection/immutable/List/api/foldLeft.d.ts +2 -2
  883. package/collection/immutable/List/api.d.ts +24 -24
  884. package/collection/immutable/Queue/api.d.ts +16 -16
  885. package/collection/immutable/RoseTree/api.d.ts +14 -14
  886. package/collection/immutable/SortedMap/api.d.ts +41 -41
  887. package/collection/immutable/Vector/api.d.ts +121 -117
  888. package/collection/immutable/Vector/definition.d.ts +2 -2
  889. package/collection/immutable/Vector/internal.d.ts +2 -2
  890. package/collection/mutable/ListBuffer.d.ts +1 -1
  891. package/control/Eval/api.d.ts +12 -12
  892. package/control/Z/api.d.ts +68 -68
  893. package/control/Z/runtime.d.ts +10 -10
  894. package/data/Branded/derivations.d.ts +2 -2
  895. package/data/Cause/api/fold.d.ts +3 -3
  896. package/data/Cause/api.d.ts +20 -20
  897. package/data/Const/api.d.ts +3 -3
  898. package/data/Datum/api.d.ts +43 -41
  899. package/data/DatumEither/api.d.ts +48 -46
  900. package/data/Decoder/api.d.ts +2 -2
  901. package/data/Duration/api.d.ts +7 -7
  902. package/data/Either/api/align.d.ts +5 -1
  903. package/data/Either/api/alignWith.d.ts +2 -2
  904. package/data/Either/api.d.ts +40 -46
  905. package/data/Either/constructors.d.ts +6 -6
  906. package/data/Either/destructors.d.ts +2 -2
  907. package/data/EitherT/api.d.ts +6 -6
  908. package/data/Encoder/api.d.ts +73 -0
  909. package/data/Encoder/definition.d.ts +12 -0
  910. package/data/Encoder.d.ts +2 -0
  911. package/data/Environment/api.d.ts +14 -14
  912. package/data/EnvironmentPatch.d.ts +4 -4
  913. package/data/ExecutionStrategy.d.ts +1 -6
  914. package/data/Exit/api.d.ts +32 -32
  915. package/data/Exit/constructors.d.ts +2 -2
  916. package/data/FiberId/api.d.ts +2 -2
  917. package/data/Identity/api.d.ts +8 -8
  918. package/data/Interval.d.ts +11 -11
  919. package/data/Intervals.d.ts +11 -11
  920. package/data/Maybe/api.d.ts +36 -37
  921. package/data/Maybe/constructors.d.ts +2 -2
  922. package/data/Maybe/definition.d.ts +7 -3
  923. package/data/Maybe/destructors.d.ts +2 -2
  924. package/data/Predicate/api.d.ts +5 -5
  925. package/data/Refinement/api.d.ts +9 -9
  926. package/data/Struct/api.d.ts +13 -23
  927. package/data/Tag/constructors.d.ts +1 -2
  928. package/data/Tag/definition.d.ts +0 -1
  929. package/data/These/api.d.ts +18 -22
  930. package/data/These/destructors.d.ts +4 -4
  931. package/data/Trace/api.d.ts +2 -2
  932. package/data/function/api.d.ts +3 -3
  933. package/data/function/pipe.d.ts +7 -1
  934. package/data/string/api.d.ts +9 -49
  935. package/data.d.ts +1 -0
  936. package/global/api.d.ts +3 -3
  937. package/global.d.ts +4 -0
  938. package/internal/Stack.d.ts +1 -1
  939. package/optics/At/definition.d.ts +1 -1
  940. package/optics/Fold/definition.d.ts +2 -6
  941. package/optics/Getter/definition.d.ts +1 -1
  942. package/optics/Index/definition.d.ts +1 -1
  943. package/optics/Iso/api.d.ts +2 -2
  944. package/optics/Iso/definition.d.ts +2 -2
  945. package/optics/Lens/api.d.ts +10 -10
  946. package/optics/Lens/definition.d.ts +4 -4
  947. package/optics/Optional/api/compose.d.ts +2 -2
  948. package/optics/Optional/definition.d.ts +4 -8
  949. package/optics/Prism/api/compose.d.ts +2 -2
  950. package/optics/Prism/definition.d.ts +2 -2
  951. package/optics/Setter/definition.d.ts +2 -14
  952. package/optics/Traversal/api/compose.d.ts +2 -2
  953. package/optics/Traversal/definition.d.ts +4 -4
  954. package/package.json +1 -1
  955. package/typeclass/Alt.d.ts +1 -1
  956. package/typeclass/ApplicativeExcept.d.ts +2 -6
  957. package/typeclass/Apply.d.ts +5 -5
  958. package/typeclass/Chain.d.ts +4 -4
  959. package/typeclass/Filterable.d.ts +6 -6
  960. package/typeclass/FilterableWithIndex.d.ts +6 -6
  961. package/typeclass/Foldable.d.ts +4 -4
  962. package/typeclass/FoldableWithIndex.d.ts +4 -4
  963. package/typeclass/Functor.d.ts +2 -2
  964. package/typeclass/FunctorWithIndex.d.ts +1 -1
  965. package/typeclass/Guard/api.d.ts +7 -7
  966. package/typeclass/Has.d.ts +3 -3
  967. package/typeclass/Ord/api/contramap.d.ts +2 -2
  968. package/typeclass/Semialign.d.ts +14 -14
  969. package/typeclass/Semimonoidal.d.ts +1 -1
  970. package/typeclass/Traversable.d.ts +4 -6
  971. package/typeclass/TraversableWithIndex.d.ts +2 -2
  972. package/typeclass/Witherable.d.ts +3 -3
  973. package/typeclass/WitherableWithIndex.d.ts +5 -5
  974. package/types/extractions.d.ts +10 -6
  975. package/util/assert.d.ts +1 -1
@@ -3,33 +3,32 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.ap_ = ap_;
7
- exports.append_ = append_;
6
+ exports.ap = ap;
7
+ exports.append = append;
8
8
  exports.asIterable = asIterable;
9
- exports.concat_ = concat_;
10
- exports.corresponds_ = corresponds_;
11
- exports.crossWith_ = crossWith_;
12
- exports.everyWithIndex_ = void 0;
13
- exports.every_ = every_;
14
- exports.filterMapWithIndex_ = void 0;
15
- exports.filterMap_ = filterMap_;
16
- exports.filterWithIndex_ = void 0;
17
- exports.filter_ = filter_;
9
+ exports.concat = concat;
10
+ exports.corresponds = corresponds;
11
+ exports.crossWith = crossWith;
12
+ exports.every = every;
13
+ exports.everyWithIndex = void 0;
14
+ exports.filter = filter;
15
+ exports.filterMap = filterMap;
16
+ exports.filterWithIndex = exports.filterMapWithIndex = void 0;
17
+ exports.find = find;
18
18
  exports.findIndex = findIndex;
19
- exports.find_ = find_;
20
- exports.foldMapWithIndex_ = exports.foldLeft_ = exports.foldLeftWithIndex_ = exports.flatMap_ = void 0;
21
- exports.foldMap_ = foldMap_;
22
- exports.foldRightWithIndex_ = void 0;
23
- exports.foldRight_ = foldRight_;
24
- exports.partitionMapWithIndex_ = exports.map_ = exports.mapWithIndex_ = void 0;
25
- exports.partitionMap_ = partitionMap_;
26
- exports.partitionWithIndex_ = void 0;
27
- exports.partition_ = partition_;
19
+ exports.foldLeftWithIndex = exports.foldLeft = exports.flatMap = void 0;
20
+ exports.foldMap = foldMap;
21
+ exports.foldMapWithIndex = void 0;
22
+ exports.foldRight = foldRight;
23
+ exports.mapWithIndex = exports.map = exports.foldRightWithIndex = void 0;
24
+ exports.partition = partition;
25
+ exports.partitionMap = partitionMap;
26
+ exports.partitionWithIndex = exports.partitionMapWithIndex = void 0;
28
27
  exports.size = size;
29
28
  exports.sum = sum;
30
29
  exports.take = take;
30
+ exports.zipWith = zipWith;
31
31
  exports.zipWithIndex = zipWithIndex;
32
- exports.zipWith_ = zipWith_;
33
32
 
34
33
  var tsplus_module_1 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/Iterable/constructors"));
35
34
 
@@ -45,88 +44,92 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
45
44
 
46
45
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
47
46
 
48
- const flatMap_ = flatMap_1;
49
- exports.flatMap_ = flatMap_;
50
- const everyWithIndex_ = everyWithIndex_1;
51
- exports.everyWithIndex_ = everyWithIndex_;
52
- const filterMapWithIndex_ = filterMapWithIndex_1;
53
- exports.filterMapWithIndex_ = filterMapWithIndex_;
54
- const filterWithIndex_ = filterWithIndex_1;
55
- exports.filterWithIndex_ = filterWithIndex_;
56
- const foldLeftWithIndex_ = foldLeftWithIndex_1;
57
- exports.foldLeftWithIndex_ = foldLeftWithIndex_;
58
- const foldLeft_ = foldLeft_1;
59
- exports.foldLeft_ = foldLeft_;
60
- const foldMapWithIndex_ = foldMapWithIndex_1;
61
- exports.foldMapWithIndex_ = foldMapWithIndex_;
62
- const foldRightWithIndex_ = foldRightWithIndex_1;
63
- exports.foldRightWithIndex_ = foldRightWithIndex_;
64
- const map_ = map_1;
65
- exports.map_ = map_;
66
- const mapWithIndex_ = mapWithIndex_1;
67
- exports.mapWithIndex_ = mapWithIndex_;
68
- const partitionMapWithIndex_ = partitionMapWithIndex_1;
69
- exports.partitionMapWithIndex_ = partitionMapWithIndex_;
70
- const partitionWithIndex_ = partitionWithIndex_1;
71
- exports.partitionWithIndex_ = partitionWithIndex_;
47
+ const flatMap = flatMap_1;
48
+ exports.flatMap = flatMap;
49
+ const everyWithIndex = everyWithIndex_1;
50
+ exports.everyWithIndex = everyWithIndex;
51
+ const filterMapWithIndex = filterMapWithIndex_1;
52
+ exports.filterMapWithIndex = filterMapWithIndex;
53
+ const filterWithIndex = filterWithIndex_1;
54
+ exports.filterWithIndex = filterWithIndex;
55
+ const foldLeftWithIndex = foldLeftWithIndex_1;
56
+ exports.foldLeftWithIndex = foldLeftWithIndex;
57
+ const foldLeft = foldLeft_1;
58
+ exports.foldLeft = foldLeft;
59
+ const foldMapWithIndex = foldMapWithIndex_1;
60
+ exports.foldMapWithIndex = foldMapWithIndex;
61
+ const foldRightWithIndex = foldRightWithIndex_1;
62
+ exports.foldRightWithIndex = foldRightWithIndex;
63
+ const map = map_1;
64
+ exports.map = map;
65
+ const mapWithIndex = mapWithIndex_1;
66
+ exports.mapWithIndex = mapWithIndex;
67
+ const partitionMapWithIndex = partitionMapWithIndex_1;
68
+ exports.partitionMapWithIndex = partitionMapWithIndex;
69
+ const partitionWithIndex = partitionWithIndex_1;
70
+ exports.partitionWithIndex = partitionWithIndex;
72
71
 
73
72
  /**
74
- * @tsplus fluent fncts.Iterable ap
73
+ * @tsplus pipeable fncts.Iterable ap
75
74
  */
76
- function ap_(self, fa) {
77
- return flatMap_1(self, f => map_1(fa, f));
75
+ function ap(fa) {
76
+ return self => {
77
+ return flatMap_1(f => map_1(f)(fa))(self);
78
+ };
78
79
  }
79
80
  /**
80
- * @tsplus fluent fncts.Iterable append
81
+ * @tsplus pipeable fncts.Iterable append
81
82
  */
82
83
 
83
84
 
84
- function append_(self, b) {
85
- return tsplus_module_1.mkIterable(() => {
86
- let done = false;
87
- const ia = self[Symbol.iterator]();
88
- let va;
89
- return {
90
- next() {
91
- if (done) {
92
- return this.return();
93
- }
85
+ function append(b) {
86
+ return self => {
87
+ return tsplus_module_1.makeIterable(() => {
88
+ let done = false;
89
+ const ia = self[Symbol.iterator]();
90
+ let va;
91
+ return {
92
+ next() {
93
+ if (done) {
94
+ return this.return();
95
+ }
94
96
 
95
- va = ia.next();
97
+ va = ia.next();
98
+
99
+ if (va.done) {
100
+ done = true;
101
+ return {
102
+ done: false,
103
+ value: b
104
+ };
105
+ }
96
106
 
97
- if (va.done) {
98
- done = true;
99
107
  return {
100
- done: false,
101
- value: b
108
+ done,
109
+ value: va.value
102
110
  };
103
- }
111
+ },
104
112
 
105
- return {
106
- done,
107
- value: va.value
108
- };
109
- },
113
+ return(value) {
114
+ done = true;
110
115
 
111
- return(value) {
112
- done = true;
116
+ if (!done) {
117
+ done = true;
118
+ }
113
119
 
114
- if (!done) {
115
- done = true;
116
- }
120
+ if (typeof ia.return === "function") {
121
+ ia.return();
122
+ }
117
123
 
118
- if (typeof ia.return === "function") {
119
- ia.return();
124
+ return {
125
+ done,
126
+ value
127
+ };
120
128
  }
121
129
 
122
- return {
123
- done,
124
- value
125
- };
126
- }
127
-
128
- };
129
- });
130
+ };
131
+ });
132
+ };
130
133
  }
131
134
  /**
132
135
  * @tsplus getter fncts.Iterable asIterable
@@ -137,437 +140,477 @@ function asIterable(self) {
137
140
  return self;
138
141
  }
139
142
  /**
140
- * @tsplus fluent fncts.Iterable flatMap
143
+ * @tsplus pipeable fncts.Iterable flatMap
141
144
  */
142
145
 
143
146
 
144
- function flatMap_1(self, f) {
145
- return tsplus_module_1.mkIterable(() => {
146
- const ia = self[Symbol.iterator]();
147
- let ib;
148
- let va;
149
- let vb;
150
- let done = false;
147
+ function flatMap_1(f) {
148
+ return self => {
149
+ return tsplus_module_1.makeIterable(() => {
150
+ const ia = self[Symbol.iterator]();
151
+ let ib;
152
+ let va;
153
+ let vb;
154
+ let done = false;
151
155
 
152
- const pullA = onDone => {
153
- va = ia.next();
156
+ const pullA = onDone => {
157
+ va = ia.next();
154
158
 
155
- if (va.done) {
156
- return onDone();
157
- }
159
+ if (va.done) {
160
+ return onDone();
161
+ }
158
162
 
159
- ib = f(va.value)[Symbol.iterator]();
160
- return pullB(onDone);
161
- };
163
+ ib = f(va.value)[Symbol.iterator]();
164
+ return pullB(onDone);
165
+ };
162
166
 
163
- const pullB = onDone => {
164
- if (!ib) {
165
- return pullA(onDone);
166
- }
167
+ const pullB = onDone => {
168
+ if (!ib) {
169
+ return pullA(onDone);
170
+ }
167
171
 
168
- vb = ib.next();
172
+ vb = ib.next();
169
173
 
170
- if (!vb.done) {
171
- return {
172
- done,
173
- value: vb.value
174
- };
175
- }
174
+ if (!vb.done) {
175
+ return {
176
+ done,
177
+ value: vb.value
178
+ };
179
+ }
176
180
 
177
- return pullA(onDone);
178
- };
181
+ return pullA(onDone);
182
+ };
179
183
 
180
- return {
181
- next() {
182
- if (done) {
183
- return this.return();
184
- }
184
+ return {
185
+ next() {
186
+ if (done) {
187
+ return this.return();
188
+ }
185
189
 
186
- return pullB(() => this.return());
187
- },
190
+ return pullB(() => this.return());
191
+ },
188
192
 
189
- return(value) {
190
- if (!done) {
191
- done = true;
193
+ return(value) {
194
+ if (!done) {
195
+ done = true;
192
196
 
193
- if (typeof ia.return === "function") {
194
- ia.return();
195
- }
197
+ if (typeof ia.return === "function") {
198
+ ia.return();
199
+ }
196
200
 
197
- if (ib && typeof ib.return === "function") {
198
- ib.return();
201
+ if (ib && typeof ib.return === "function") {
202
+ ib.return();
203
+ }
199
204
  }
200
- }
201
205
 
202
- return {
203
- done,
204
- value
205
- };
206
- }
206
+ return {
207
+ done,
208
+ value
209
+ };
210
+ }
207
211
 
208
- };
209
- });
212
+ };
213
+ });
214
+ };
210
215
  }
211
216
  /**
212
- * @tsplus fluent fncts.Iterable concat
217
+ * @tsplus pipeable fncts.Iterable concat
213
218
  */
214
219
 
215
220
 
216
- function concat_(self, ib) {
217
- return tsplus_module_1.mkIterable(() => {
218
- const iterA = self[Symbol.iterator]();
219
- let doneA = false;
220
- let iterB;
221
- return {
222
- next() {
223
- if (!doneA) {
224
- const r = iterA.next();
221
+ function concat(ib) {
222
+ return self => {
223
+ return tsplus_module_1.makeIterable(() => {
224
+ const iterA = self[Symbol.iterator]();
225
+ let doneA = false;
226
+ let iterB;
227
+ return {
228
+ next() {
229
+ if (!doneA) {
230
+ const r = iterA.next();
231
+
232
+ if (r.done) {
233
+ doneA = true;
234
+ iterB = ib[Symbol.iterator]();
235
+ return iterB.next();
236
+ }
225
237
 
226
- if (r.done) {
227
- doneA = true;
228
- iterB = ib[Symbol.iterator]();
229
- return iterB.next();
238
+ return r;
230
239
  }
231
240
 
232
- return r;
241
+ return iterB.next();
233
242
  }
234
243
 
235
- return iterB.next();
236
- }
237
-
238
- };
239
- });
244
+ };
245
+ });
246
+ };
240
247
  }
241
248
  /**
242
- * @tsplus fluent fncts.Iterable corresponds
249
+ * @tsplus pipeable fncts.Iterable corresponds
243
250
  */
244
251
 
245
252
 
246
- function corresponds_(left, right, f) {
247
- const leftIterator = left[Symbol.iterator]();
248
- const rightIterator = right[Symbol.iterator](); // eslint-disable-next-line no-constant-condition
253
+ function corresponds(right, f) {
254
+ return left => {
255
+ const leftIterator = left[Symbol.iterator]();
256
+ const rightIterator = right[Symbol.iterator](); // eslint-disable-next-line no-constant-condition
249
257
 
250
- while (true) {
251
- const lnext = leftIterator.next();
252
- const rnext = rightIterator.next();
258
+ while (true) {
259
+ const lnext = leftIterator.next();
260
+ const rnext = rightIterator.next();
253
261
 
254
- if (lnext.done !== rnext.done) {
255
- return false;
256
- }
262
+ if (lnext.done !== rnext.done) {
263
+ return false;
264
+ }
257
265
 
258
- if (lnext.done) {
259
- return true;
260
- }
266
+ if (lnext.done) {
267
+ return true;
268
+ }
261
269
 
262
- if (!f(lnext.value, rnext.value)) {
263
- return false;
270
+ if (!f(lnext.value, rnext.value)) {
271
+ return false;
272
+ }
264
273
  }
265
- }
274
+ };
266
275
  }
267
276
  /**
268
- * @tsplus fluent fncts.Iterable crossWith
277
+ * @tsplus pipeable fncts.Iterable crossWith
269
278
  */
270
279
 
271
280
 
272
- function crossWith_(self, fb, f) {
273
- return flatMap_1(self, a => map_1(fb, b => f(a, b)));
281
+ function crossWith(fb, f) {
282
+ return self => {
283
+ return flatMap_1(a => map_1(b => f(a, b))(fb))(self);
284
+ };
274
285
  }
275
286
 
276
- function every_(self, p) {
277
- return everyWithIndex_1(self, (_, a) => p(a));
287
+ function every(p) {
288
+ return self => {
289
+ return everyWithIndex_1((_, a) => p(a))(self);
290
+ };
278
291
  }
279
292
 
280
- function everyWithIndex_1(self, p) {
281
- const iterator = self[Symbol.iterator]();
282
- let i = 0;
283
- let next;
293
+ function everyWithIndex_1(p) {
294
+ return self => {
295
+ const iterator = self[Symbol.iterator]();
296
+ let i = 0;
297
+ let next;
298
+
299
+ while (!(next = iterator.next()).done) {
300
+ if (!p(i, next.value)) {
301
+ if (typeof iterator.return === "function") {
302
+ iterator.return();
303
+ }
284
304
 
285
- while (!(next = iterator.next()).done) {
286
- if (!p(i, next.value)) {
287
- if (typeof iterator.return === "function") {
288
- iterator.return();
305
+ return false;
289
306
  }
290
307
 
291
- return false;
308
+ i++;
292
309
  }
293
310
 
294
- i++;
295
- }
296
-
297
- return true;
311
+ return true;
312
+ };
298
313
  }
299
314
 
300
- function filter_(self, p) {
301
- return filterWithIndex_1(self, (_, a) => p(a));
315
+ function filter(p) {
316
+ return self => {
317
+ return filterWithIndex_1((_, a) => p(a))(self);
318
+ };
302
319
  }
303
320
  /**
304
- * @tsplus fluent fncts.Iterable filterMap
321
+ * @tsplus pipeable fncts.Iterable filterMap
305
322
  */
306
323
 
307
324
 
308
- function filterMap_(self, f) {
309
- return filterMapWithIndex_1(self, (_, a) => f(a));
325
+ function filterMap(f) {
326
+ return self => {
327
+ return filterMapWithIndex_1((_, a) => f(a))(self);
328
+ };
310
329
  }
311
330
  /**
312
- * @tsplus fluent fncts.Iterable filterMapWithIndex
331
+ * @tsplus pipeable fncts.Iterable filterMapWithIndex
313
332
  */
314
333
 
315
334
 
316
- function filterMapWithIndex_1(self, f) {
317
- return tsplus_module_1.mkIterable(() => {
318
- let i = 0;
319
- const ia = self[Symbol.iterator]();
320
- let va;
321
- let done = false;
322
- return {
323
- next() {
324
- if (done) {
325
- this.return();
326
- } // eslint-disable-next-line no-constant-condition
335
+ function filterMapWithIndex_1(f) {
336
+ return self => {
337
+ return tsplus_module_1.makeIterable(() => {
338
+ let i = 0;
339
+ const ia = self[Symbol.iterator]();
340
+ let va;
341
+ let done = false;
342
+ return {
343
+ next() {
344
+ if (done) {
345
+ this.return();
346
+ } // eslint-disable-next-line no-constant-condition
327
347
 
328
348
 
329
- while (true) {
330
- va = ia.next();
349
+ while (true) {
350
+ va = ia.next();
331
351
 
332
- if (va.done) {
333
- return this.return();
334
- }
352
+ if (va.done) {
353
+ return this.return();
354
+ }
335
355
 
336
- const mb = f(i++, va.value);
356
+ const mb = f(i++, va.value);
337
357
 
338
- if (tsplus_module_2.isJust(mb)) {
339
- return {
340
- done,
341
- value: mb.value
342
- };
358
+ if (tsplus_module_2.isJust(mb)) {
359
+ return {
360
+ done,
361
+ value: mb.value
362
+ };
363
+ }
343
364
  }
344
- }
345
- },
365
+ },
346
366
 
347
- return(value) {
348
- if (!done) {
349
- done = true;
367
+ return(value) {
368
+ if (!done) {
369
+ done = true;
350
370
 
351
- if (typeof ia.return === "function") {
352
- ia.return();
371
+ if (typeof ia.return === "function") {
372
+ ia.return();
373
+ }
353
374
  }
354
- }
355
375
 
356
- return {
357
- done,
358
- value
359
- };
360
- }
376
+ return {
377
+ done,
378
+ value
379
+ };
380
+ }
361
381
 
362
- };
363
- });
382
+ };
383
+ });
384
+ };
364
385
  }
365
386
 
366
- function filterWithIndex_1(self, p) {
367
- return tsplus_module_1.mkIterable(() => {
368
- let done = false;
369
- let i = 0;
370
- const ia = self[Symbol.iterator]();
371
- let va;
372
- return {
373
- next() {
374
- if (done) {
375
- return this.return();
376
- } // eslint-disable-next-line no-constant-condition
387
+ function filterWithIndex_1(p) {
388
+ return self => {
389
+ return tsplus_module_1.makeIterable(() => {
390
+ let done = false;
391
+ let i = 0;
392
+ const ia = self[Symbol.iterator]();
393
+ let va;
394
+ return {
395
+ next() {
396
+ if (done) {
397
+ return this.return();
398
+ } // eslint-disable-next-line no-constant-condition
377
399
 
378
400
 
379
- while (true) {
380
- va = ia.next();
381
- if (va.done) return this.return();
382
- if (p(i++, va.value)) return {
383
- done,
384
- value: va.value
385
- };
386
- }
387
- },
401
+ while (true) {
402
+ va = ia.next();
403
+ if (va.done) return this.return();
404
+ if (p(i++, va.value)) return {
405
+ done,
406
+ value: va.value
407
+ };
408
+ }
409
+ },
388
410
 
389
- return(value) {
390
- if (!done) {
391
- done = true;
411
+ return(value) {
412
+ if (!done) {
413
+ done = true;
392
414
 
393
- if (typeof ia.return === "function") {
394
- ia.return();
415
+ if (typeof ia.return === "function") {
416
+ ia.return();
417
+ }
395
418
  }
396
- }
397
419
 
398
- return {
399
- done,
400
- value
401
- };
402
- }
420
+ return {
421
+ done,
422
+ value
423
+ };
424
+ }
403
425
 
404
- };
405
- });
426
+ };
427
+ });
428
+ };
406
429
  }
407
430
 
408
- function find_(ia, predicate) {
409
- for (const value of ia) {
410
- if (predicate(value)) {
411
- return tsplus_module_3.just(value);
431
+ function find(predicate) {
432
+ return ia => {
433
+ for (const value of ia) {
434
+ if (predicate(value)) {
435
+ return tsplus_module_3.just(value);
436
+ }
412
437
  }
413
- }
414
438
 
415
- return tsplus_module_3.nothing();
439
+ return tsplus_module_3.nothing();
440
+ };
416
441
  }
417
442
  /**
418
- * @tsplus fluent fncts.Iterable findIndex
443
+ * @tsplus pipeable fncts.Iterable findIndex
419
444
  */
420
445
 
421
446
 
422
- function findIndex(self, p) {
423
- let i = 0;
447
+ function findIndex(p) {
448
+ return self => {
449
+ let i = 0;
424
450
 
425
- for (const value of self) {
426
- if (p(value)) {
427
- return i;
428
- }
451
+ for (const value of self) {
452
+ if (p(value)) {
453
+ return i;
454
+ }
429
455
 
430
- i++;
431
- }
456
+ i++;
457
+ }
432
458
 
433
- return -1;
459
+ return -1;
460
+ };
434
461
  }
435
462
  /**
436
- * @tsplus fluent fncts.Iterable foldLeftWithIndex
463
+ * @tsplus pipeable fncts.Iterable foldLeftWithIndex
437
464
  */
438
465
 
439
466
 
440
- function foldLeftWithIndex_1(fa, b, f) {
441
- let res = b;
442
- let i = -1;
467
+ function foldLeftWithIndex_1(b, f) {
468
+ return fa => {
469
+ let res = b;
470
+ let i = -1;
443
471
 
444
- for (const value of fa) {
445
- i += 1;
446
- res = f(i, res, value);
447
- }
472
+ for (const value of fa) {
473
+ i += 1;
474
+ res = f(i, res, value);
475
+ }
448
476
 
449
- return res;
477
+ return res;
478
+ };
450
479
  }
451
480
  /**
452
- * @tsplus fluent fncts.Iterable foldLeft
481
+ * @tsplus pipeable fncts.Iterable foldLeft
453
482
  */
454
483
 
455
484
 
456
- function foldLeft_1(self, b, f) {
457
- return foldLeftWithIndex_1(self, b, (_, b, a) => f(b, a));
485
+ function foldLeft_1(b, f) {
486
+ return self => {
487
+ return foldLeftWithIndex_1(b, (_, b, a) => f(b, a))(self);
488
+ };
458
489
  }
459
490
  /**
460
- * @tsplus fluent fncts.Iterable foldMap
491
+ * @tsplus pipeable fncts.Iterable foldMap
461
492
  */
462
493
 
463
494
 
464
- function foldMap_(self, f,
495
+ function foldMap(f,
465
496
  /** @tsplus auto */
466
497
  M) {
467
- return foldMapWithIndex_1(self, (_, a) => f(a), M);
498
+ return self => {
499
+ return foldMapWithIndex_1((_, a) => f(a), M)(self);
500
+ };
468
501
  }
469
502
  /**
470
- * @tsplus fluent fncts.Iterable foldMapWithIndex
503
+ * @tsplus pipeable fncts.Iterable foldMapWithIndex
471
504
  */
472
505
 
473
506
 
474
- function foldMapWithIndex_1(self, f,
507
+ function foldMapWithIndex_1(f,
475
508
  /** @tsplus auto */
476
509
  M) {
477
- let res = M.nat;
478
- let n = -1;
510
+ return self => {
511
+ let res = M.nat;
512
+ let n = -1;
479
513
 
480
- for (const value of self) {
481
- n += 1;
482
- res = M.combine(res, f(n, value));
483
- }
514
+ for (const value of self) {
515
+ n += 1;
516
+ res = M.combine(res, f(n, value));
517
+ }
484
518
 
485
- return res;
519
+ return res;
520
+ };
486
521
  }
487
522
  /**
488
- * @tsplus fluent fncts.Iterable foldRightWithIndex
523
+ * @tsplus pipeable fncts.Iterable foldRightWithIndex
489
524
  */
490
525
 
491
526
 
492
- function foldRightWithIndex_1(self, b, f) {
493
- let i = 0;
494
- const iterator = self[Symbol.iterator]();
495
- const go = tsplus_module_4.defer(() => {
496
- const {
497
- value: current,
498
- done
499
- } = iterator.next();
500
-
501
- if (done) {
502
- return b;
503
- } else {
504
- return f(i++, current, go);
505
- }
506
- });
507
- return go;
527
+ function foldRightWithIndex_1(b, f) {
528
+ return self => {
529
+ let i = 0;
530
+ const iterator = self[Symbol.iterator]();
531
+ const go = tsplus_module_4.defer(() => {
532
+ const {
533
+ value: current,
534
+ done
535
+ } = iterator.next();
536
+
537
+ if (done) {
538
+ return b;
539
+ } else {
540
+ return f(i++, current, go);
541
+ }
542
+ });
543
+ return go;
544
+ };
508
545
  }
509
546
  /**
510
- * @tsplus fluent fncts.Iterable foldRight
547
+ * @tsplus pipeable fncts.Iterable foldRight
511
548
  */
512
549
 
513
550
 
514
- function foldRight_(self, b, f) {
515
- return foldRightWithIndex_1(self, b, (_, a, b) => f(a, b));
551
+ function foldRight(b, f) {
552
+ return self => {
553
+ return foldRightWithIndex_1(b, (_, a, b) => f(a, b))(self);
554
+ };
516
555
  }
517
556
  /**
518
- * @tsplus fluent fncts.Iterable map
557
+ * @tsplus pipeable fncts.Iterable map
519
558
  */
520
559
 
521
560
 
522
- function map_1(self, f) {
523
- return mapWithIndex_1(self, (_, a) => f(a));
561
+ function map_1(f) {
562
+ return self => {
563
+ return mapWithIndex_1((_, a) => f(a))(self);
564
+ };
524
565
  }
525
566
  /**
526
- * @tsplus fluent fncts.Iterable mapWithIndex
567
+ * @tsplus pipeable fncts.Iterable mapWithIndex
527
568
  */
528
569
 
529
570
 
530
- function mapWithIndex_1(self, f) {
531
- return tsplus_module_1.mkIterable(() => {
532
- const ia = self[Symbol.iterator]();
533
- let i = 0;
534
- let done = false;
535
- let va;
536
- return {
537
- next() {
538
- if (done) {
539
- return this.return();
540
- }
571
+ function mapWithIndex_1(f) {
572
+ return self => {
573
+ return tsplus_module_1.makeIterable(() => {
574
+ const ia = self[Symbol.iterator]();
575
+ let i = 0;
576
+ let done = false;
577
+ let va;
578
+ return {
579
+ next() {
580
+ if (done) {
581
+ return this.return();
582
+ }
541
583
 
542
- va = ia.next();
584
+ va = ia.next();
543
585
 
544
- if (va.done) {
545
- return this.return();
546
- }
586
+ if (va.done) {
587
+ return this.return();
588
+ }
547
589
 
548
- return {
549
- done,
550
- value: f(i++, va.value)
551
- };
552
- },
590
+ return {
591
+ done,
592
+ value: f(i++, va.value)
593
+ };
594
+ },
553
595
 
554
- return(value) {
555
- if (!done) {
556
- done = true;
596
+ return(value) {
597
+ if (!done) {
598
+ done = true;
557
599
 
558
- if (typeof ia.return === "function") {
559
- ia.return();
600
+ if (typeof ia.return === "function") {
601
+ ia.return();
602
+ }
560
603
  }
561
- }
562
604
 
563
- return {
564
- done,
565
- value
566
- };
567
- }
605
+ return {
606
+ done,
607
+ value
608
+ };
609
+ }
568
610
 
569
- };
570
- });
611
+ };
612
+ });
613
+ };
571
614
  }
572
615
 
573
616
  function handlePartitionMap(f, i, a, h) {
@@ -632,20 +675,24 @@ function partitionMapWithIndexIterator(fa, f, h) {
632
675
  };
633
676
  }
634
677
  /**
635
- * @tsplus fluent fncts.Iterable partitionMap
678
+ * @tsplus pipeable fncts.Iterable partitionMap
636
679
  */
637
680
 
638
681
 
639
- function partitionMap_(self, f) {
640
- return partitionMapWithIndex_1(self, (_, a) => f(a));
682
+ function partitionMap(f) {
683
+ return self => {
684
+ return partitionMapWithIndex_1((_, a) => f(a))(self);
685
+ };
641
686
  }
642
687
  /**
643
- * @tsplus fluent fncts.Iterable partitionMapWithIndex
688
+ * @tsplus pipeable fncts.Iterable partitionMapWithIndex
644
689
  */
645
690
 
646
691
 
647
- function partitionMapWithIndex_1(fa, f) {
648
- return (0, _function.tuple)(tsplus_module_1.mkIterable(() => partitionMapWithIndexIterator(fa, f, "Left")), tsplus_module_1.mkIterable(() => partitionMapWithIndexIterator(fa, f, "Right")));
692
+ function partitionMapWithIndex_1(f) {
693
+ return fa => {
694
+ return (0, _function.tuple)(tsplus_module_1.makeIterable(() => partitionMapWithIndexIterator(fa, f, "Left")), tsplus_module_1.makeIterable(() => partitionMapWithIndexIterator(fa, f, "Right")));
695
+ };
649
696
  }
650
697
 
651
698
  function handlePartition(predicate, i, a, h) {
@@ -705,12 +752,16 @@ function partitionWithIndexIterator(fa, predicate, h) {
705
752
  };
706
753
  }
707
754
 
708
- function partition_(self, p) {
709
- return partitionWithIndex_1(self, (_, a) => p(a));
755
+ function partition(p) {
756
+ return self => {
757
+ return partitionWithIndex_1((_, a) => p(a))(self);
758
+ };
710
759
  }
711
760
 
712
- function partitionWithIndex_1(self, p) {
713
- return (0, _function.tuple)(tsplus_module_1.mkIterable(() => partitionWithIndexIterator(self, p, false)), tsplus_module_1.mkIterable(() => partitionWithIndexIterator(self, p, true)));
761
+ function partitionWithIndex_1(p) {
762
+ return self => {
763
+ return (0, _function.tuple)(tsplus_module_1.makeIterable(() => partitionWithIndexIterator(self, p, false)), tsplus_module_1.makeIterable(() => partitionWithIndexIterator(self, p, true)));
764
+ };
714
765
  }
715
766
  /**
716
767
  * @tsplus getter fncts.Iterable size
@@ -732,100 +783,102 @@ function size(self) {
732
783
 
733
784
 
734
785
  function sum(self) {
735
- return foldLeft_1(self, 0, (b, a) => b + a);
786
+ return foldLeft_1(0, (b, a) => b + a)(self);
736
787
  }
737
788
  /**
738
- * @tsplus fluent fncts.Iterable take
789
+ * @tsplus pipeable fncts.Iterable take
739
790
  */
740
791
 
741
792
 
742
- function take(self, n) {
743
- return tsplus_module_1.mkIterable(() => {
744
- let done = false;
745
- let i = 0;
746
- let value;
747
- const iterator = self[Symbol.iterator]();
748
- return {
749
- next() {
750
- if (done || i >= n) {
751
- return this.return();
752
- }
793
+ function take(n) {
794
+ return self => {
795
+ return tsplus_module_1.makeIterable(() => {
796
+ let done = false;
797
+ let i = 0;
798
+ let value;
799
+ const iterator = self[Symbol.iterator]();
800
+ return {
801
+ next() {
802
+ if (done || i >= n) {
803
+ return this.return();
804
+ }
753
805
 
754
- value = iterator.next();
755
- i++;
806
+ value = iterator.next();
807
+ i++;
756
808
 
757
- if (value.done) {
758
- this.return();
759
- }
809
+ if (value.done) {
810
+ this.return();
811
+ }
760
812
 
761
- return value;
762
- },
813
+ return value;
814
+ },
763
815
 
764
- return(value) {
765
- if (!done) {
766
- done = true;
816
+ return(value) {
817
+ if (!done) {
818
+ done = true;
767
819
 
768
- if (typeof iterator.return === "function") {
769
- iterator.return();
820
+ if (typeof iterator.return === "function") {
821
+ iterator.return();
822
+ }
770
823
  }
771
- }
772
824
 
773
- return {
774
- done: true,
775
- value
776
- };
777
- }
825
+ return {
826
+ done: true,
827
+ value
828
+ };
829
+ }
778
830
 
779
- };
780
- });
831
+ };
832
+ });
833
+ };
781
834
  }
782
835
  /**
783
- * @tsplus fluent fncts.Iterable zipWith
836
+ * @tsplus pipeable fncts.Iterable zipWith
784
837
  */
785
838
 
786
839
 
787
- function zipWith_(self, fb, f) {
788
- return tsplus_module_1.mkIterable(() => {
789
- let done = false;
790
- const ia = self[Symbol.iterator]();
791
- const ib = fb[Symbol.iterator]();
792
- return {
793
- next() {
794
- if (done) {
795
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
796
- return this.return();
797
- }
840
+ function zipWith(fb, f) {
841
+ return self => {
842
+ return tsplus_module_1.makeIterable(() => {
843
+ let done = false;
844
+ const ia = self[Symbol.iterator]();
845
+ const ib = fb[Symbol.iterator]();
846
+ return {
847
+ next() {
848
+ if (done) {
849
+ return this.return();
850
+ }
798
851
 
799
- const va = ia.next();
800
- const vb = ib.next();
801
- return va.done || vb.done ? // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
802
- this.return() : {
803
- done: false,
804
- value: f(va.value, vb.value)
805
- };
806
- },
852
+ const va = ia.next();
853
+ const vb = ib.next();
854
+ return va.done || vb.done ? this.return() : {
855
+ done: false,
856
+ value: f(va.value, vb.value)
857
+ };
858
+ },
807
859
 
808
- return(value) {
809
- if (!done) {
810
- done = true;
860
+ return(value) {
861
+ if (!done) {
862
+ done = true;
811
863
 
812
- if (typeof ia.return === "function") {
813
- ia.return();
814
- }
864
+ if (typeof ia.return === "function") {
865
+ ia.return();
866
+ }
815
867
 
816
- if (typeof ib.return === "function") {
817
- ib.return();
868
+ if (typeof ib.return === "function") {
869
+ ib.return();
870
+ }
818
871
  }
819
- }
820
872
 
821
- return {
822
- done: true,
823
- value
824
- };
825
- }
873
+ return {
874
+ done: true,
875
+ value
876
+ };
877
+ }
826
878
 
827
- };
828
- });
879
+ };
880
+ });
881
+ };
829
882
  }
830
883
  /**
831
884
  * @tsplus getter fncts.Iterable zipWithIndex
@@ -833,7 +886,7 @@ function zipWith_(self, fb, f) {
833
886
 
834
887
 
835
888
  function zipWithIndex(self) {
836
- return tsplus_module_1.mkIterable(() => {
889
+ return tsplus_module_1.makeIterable(() => {
837
890
  let n = 0;
838
891
  let done = false;
839
892
  const iterator = self[Symbol.iterator]();