@fncts/base 0.0.40 → 0.0.41

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 (645) hide show
  1. package/_cjs/collection/AsyncIterable/api.cjs +384 -0
  2. package/_cjs/collection/AsyncIterable/api.cjs.map +1 -0
  3. package/_cjs/collection/AsyncIterable/definition.cjs +2 -0
  4. package/_cjs/collection/AsyncIterable/definition.cjs.map +1 -0
  5. package/_cjs/collection/{compat/Array.cjs → AsyncIterable.cjs} +3 -3
  6. package/_cjs/collection/AsyncIterable.cjs.map +1 -0
  7. package/_cjs/collection/Iterable/api/traverseConc.cjs +1 -2
  8. package/_cjs/collection/Iterable/api/traverseConc.cjs.map +1 -1
  9. package/_cjs/collection/Iterable/api.cjs +180 -137
  10. package/_cjs/collection/Iterable/api.cjs.map +1 -1
  11. package/_cjs/collection/Iterable/constructors.cjs.map +1 -1
  12. package/_cjs/collection/compat/ArrayLike/api.cjs +1 -2
  13. package/_cjs/collection/compat/ArrayLike/api.cjs.map +1 -1
  14. package/_cjs/collection/immutable/Conc/api/makeBy.cjs +1 -2
  15. package/_cjs/collection/immutable/Conc/api/makeBy.cjs.map +1 -1
  16. package/_cjs/collection/immutable/Conc/api/replicate.cjs +1 -2
  17. package/_cjs/collection/immutable/Conc/api/replicate.cjs.map +1 -1
  18. package/_cjs/collection/immutable/Conc/api.cjs +1 -2
  19. package/_cjs/collection/immutable/Conc/api.cjs.map +1 -1
  20. package/_cjs/collection/immutable/Conc/constructors.cjs +3 -4
  21. package/_cjs/collection/immutable/Conc/constructors.cjs.map +1 -1
  22. package/_cjs/collection/immutable/Conc/definition.cjs +3 -3
  23. package/_cjs/collection/immutable/Conc/definition.cjs.map +1 -1
  24. package/_cjs/collection/immutable/Dictionary/api.cjs +1 -2
  25. package/_cjs/collection/immutable/Dictionary/api.cjs.map +1 -1
  26. package/_cjs/collection/immutable/Dictionary/definition.cjs +1 -2
  27. package/_cjs/collection/immutable/Dictionary/definition.cjs.map +1 -1
  28. package/_cjs/collection/immutable/HashMap/api.cjs +1 -2
  29. package/_cjs/collection/immutable/HashMap/api.cjs.map +1 -1
  30. package/_cjs/collection/immutable/HashMap/definition.cjs +1 -2
  31. package/_cjs/collection/immutable/HashMap/definition.cjs.map +1 -1
  32. package/_cjs/collection/immutable/HashMap/internal.cjs +1 -2
  33. package/_cjs/collection/immutable/HashMap/internal.cjs.map +1 -1
  34. package/_cjs/collection/immutable/HashSet/api.cjs +1 -2
  35. package/_cjs/collection/immutable/HashSet/api.cjs.map +1 -1
  36. package/_cjs/collection/immutable/HashSet/definition.cjs +1 -2
  37. package/_cjs/collection/immutable/HashSet/definition.cjs.map +1 -1
  38. package/_cjs/collection/immutable/List/api/foldLeft.cjs +1 -2
  39. package/_cjs/collection/immutable/List/api/foldLeft.cjs.map +1 -1
  40. package/_cjs/collection/immutable/List/api/unsafeTail.cjs +1 -2
  41. package/_cjs/collection/immutable/List/api/unsafeTail.cjs.map +1 -1
  42. package/_cjs/collection/immutable/List/api.cjs +3 -4
  43. package/_cjs/collection/immutable/List/api.cjs.map +1 -1
  44. package/_cjs/collection/immutable/List/constructors.cjs +1 -2
  45. package/_cjs/collection/immutable/List/constructors.cjs.map +1 -1
  46. package/_cjs/collection/immutable/List/definition.cjs +1 -2
  47. package/_cjs/collection/immutable/List/definition.cjs.map +1 -1
  48. package/_cjs/collection/immutable/Queue/api.cjs +1 -2
  49. package/_cjs/collection/immutable/Queue/api.cjs.map +1 -1
  50. package/_cjs/collection/immutable/Queue/constructors.cjs +1 -2
  51. package/_cjs/collection/immutable/Queue/constructors.cjs.map +1 -1
  52. package/_cjs/collection/immutable/Queue/definition.cjs +1 -2
  53. package/_cjs/collection/immutable/Queue/definition.cjs.map +1 -1
  54. package/_cjs/collection/immutable/Queue/guards.cjs +1 -2
  55. package/_cjs/collection/immutable/Queue/guards.cjs.map +1 -1
  56. package/_cjs/collection/immutable/ReadonlyArray/api/chunksOf.cjs +18 -0
  57. package/_cjs/collection/immutable/ReadonlyArray/api/chunksOf.cjs.map +1 -0
  58. package/_cjs/collection/immutable/ReadonlyArray/api/splitAt.cjs +15 -0
  59. package/_cjs/collection/immutable/ReadonlyArray/api/splitAt.cjs.map +1 -0
  60. package/_cjs/collection/immutable/ReadonlyArray/api/splitWhere.cjs +26 -0
  61. package/_cjs/collection/immutable/ReadonlyArray/api/splitWhere.cjs.map +1 -0
  62. package/_cjs/collection/immutable/{ImmutableArray → ReadonlyArray}/api.cjs +562 -538
  63. package/_cjs/collection/immutable/ReadonlyArray/api.cjs.map +1 -0
  64. package/_cjs/collection/immutable/ReadonlyArray/constructors.cjs +55 -0
  65. package/_cjs/collection/immutable/ReadonlyArray/constructors.cjs.map +1 -0
  66. package/_cjs/collection/immutable/ReadonlyArray/definition.cjs.map +1 -0
  67. package/_cjs/collection/immutable/{ImmutableArray → ReadonlyArray}/instances.cjs +5 -7
  68. package/_cjs/collection/immutable/ReadonlyArray/instances.cjs.map +1 -0
  69. package/_cjs/collection/immutable/{ImmutableArray.cjs → ReadonlyArray.cjs} +8 -19
  70. package/_cjs/collection/immutable/ReadonlyArray.cjs.map +1 -0
  71. package/_cjs/collection/immutable/ReadonlyNonEmptyArray/api.cjs +472 -0
  72. package/_cjs/collection/immutable/ReadonlyNonEmptyArray/api.cjs.map +1 -0
  73. package/_cjs/collection/immutable/ReadonlyNonEmptyArray/constructors.cjs +79 -0
  74. package/_cjs/collection/immutable/ReadonlyNonEmptyArray/constructors.cjs.map +1 -0
  75. package/_cjs/collection/immutable/ReadonlyNonEmptyArray/definition.cjs +2 -0
  76. package/_cjs/collection/immutable/ReadonlyNonEmptyArray/definition.cjs.map +1 -0
  77. package/_cjs/collection/immutable/ReadonlyNonEmptyArray/destructors.cjs +49 -0
  78. package/_cjs/collection/immutable/ReadonlyNonEmptyArray/destructors.cjs.map +1 -0
  79. package/_cjs/collection/immutable/{ImmutableNonEmptyArray → ReadonlyNonEmptyArray}/instances.cjs +3 -4
  80. package/_cjs/collection/immutable/ReadonlyNonEmptyArray/instances.cjs.map +1 -0
  81. package/_cjs/collection/immutable/{ImmutableNonEmptyArray.cjs → ReadonlyNonEmptyArray.cjs} +6 -6
  82. package/_cjs/collection/immutable/ReadonlyNonEmptyArray.cjs.map +1 -0
  83. package/_cjs/collection/immutable/RoseTree/api.cjs +1 -2
  84. package/_cjs/collection/immutable/RoseTree/api.cjs.map +1 -1
  85. package/_cjs/collection/immutable/RoseTree/definition.cjs +1 -2
  86. package/_cjs/collection/immutable/RoseTree/definition.cjs.map +1 -1
  87. package/_cjs/collection/immutable/SortedMap/api.cjs +1 -2
  88. package/_cjs/collection/immutable/SortedMap/api.cjs.map +1 -1
  89. package/_cjs/collection/immutable/SortedMap/iterator.cjs +1 -2
  90. package/_cjs/collection/immutable/SortedMap/iterator.cjs.map +1 -1
  91. package/_cjs/collection/immutable/Vector/api.cjs +229 -230
  92. package/_cjs/collection/immutable/Vector/api.cjs.map +1 -1
  93. package/_cjs/collection/immutable/Vector/definition.cjs +1 -2
  94. package/_cjs/collection/immutable/Vector/definition.cjs.map +1 -1
  95. package/_cjs/collection/mutable/ArrayDeque.cjs +1 -2
  96. package/_cjs/collection/mutable/ArrayDeque.cjs.map +1 -1
  97. package/_cjs/collection/mutable/HashMap.cjs +1 -2
  98. package/_cjs/collection/mutable/HashMap.cjs.map +1 -1
  99. package/_cjs/collection/mutable/HashSet.cjs +1 -2
  100. package/_cjs/collection/mutable/HashSet.cjs.map +1 -1
  101. package/_cjs/collection/mutable/ListBuffer.cjs +1 -2
  102. package/_cjs/collection/mutable/ListBuffer.cjs.map +1 -1
  103. package/_cjs/collection/weak/IterableWeakMap.cjs +1 -2
  104. package/_cjs/collection/weak/IterableWeakMap.cjs.map +1 -1
  105. package/_cjs/control/Eval/api.cjs +89 -41
  106. package/_cjs/control/Eval/api.cjs.map +1 -1
  107. package/_cjs/control/Eval/constructors.cjs +5 -1
  108. package/_cjs/control/Eval/constructors.cjs.map +1 -1
  109. package/_cjs/control/Eval/instance.cjs +1 -2
  110. package/_cjs/control/Eval/instance.cjs.map +1 -1
  111. package/_cjs/control/Eval/run.cjs +1 -2
  112. package/_cjs/control/Eval/run.cjs.map +1 -1
  113. package/_cjs/control/Pure/api.cjs +1 -2
  114. package/_cjs/control/Pure/api.cjs.map +1 -1
  115. package/_cjs/control/Pure/definition.cjs +1 -2
  116. package/_cjs/control/Pure/definition.cjs.map +1 -1
  117. package/_cjs/control/Pure/instances.cjs +1 -2
  118. package/_cjs/control/Pure/instances.cjs.map +1 -1
  119. package/_cjs/control/Pure/runtime.cjs +15 -10
  120. package/_cjs/control/Pure/runtime.cjs.map +1 -1
  121. package/_cjs/data/CaseClass.cjs +11 -14
  122. package/_cjs/data/CaseClass.cjs.map +1 -1
  123. package/_cjs/data/Cause/api/fold.cjs +33 -34
  124. package/_cjs/data/Cause/api/fold.cjs.map +1 -1
  125. package/_cjs/data/Cause/api/isEmpty.cjs +1 -2
  126. package/_cjs/data/Cause/api/isEmpty.cjs.map +1 -1
  127. package/_cjs/data/Cause/api/linearize.cjs +1 -2
  128. package/_cjs/data/Cause/api/linearize.cjs.map +1 -1
  129. package/_cjs/data/Cause/api/prettyPrint.cjs +1 -2
  130. package/_cjs/data/Cause/api/prettyPrint.cjs.map +1 -1
  131. package/_cjs/data/Cause/api/unified.cjs +1 -2
  132. package/_cjs/data/Cause/api/unified.cjs.map +1 -1
  133. package/_cjs/data/Cause/api.cjs +1 -2
  134. package/_cjs/data/Cause/api.cjs.map +1 -1
  135. package/_cjs/data/Cause/definition.cjs +1 -2
  136. package/_cjs/data/Cause/definition.cjs.map +1 -1
  137. package/_cjs/data/Const/api.cjs +7 -7
  138. package/_cjs/data/Const/api.cjs.map +1 -1
  139. package/_cjs/data/Const/instances.cjs +12 -13
  140. package/_cjs/data/Const/instances.cjs.map +1 -1
  141. package/_cjs/data/Data.cjs +1 -2
  142. package/_cjs/data/Data.cjs.map +1 -1
  143. package/_cjs/data/Datum/api.cjs +110 -113
  144. package/_cjs/data/Datum/api.cjs.map +1 -1
  145. package/_cjs/data/Datum/definition.cjs +1 -2
  146. package/_cjs/data/Datum/definition.cjs.map +1 -1
  147. package/_cjs/data/Datum/instances.cjs +1 -2
  148. package/_cjs/data/Datum/instances.cjs.map +1 -1
  149. package/_cjs/data/Datum.cjs +39 -0
  150. package/_cjs/data/Datum.cjs.map +1 -0
  151. package/_cjs/data/DatumEither/api.cjs +56 -57
  152. package/_cjs/data/DatumEither/api.cjs.map +1 -1
  153. package/_cjs/data/Duration/api.cjs +1 -2
  154. package/_cjs/data/Duration/api.cjs.map +1 -1
  155. package/_cjs/data/Duration/definition.cjs +1 -2
  156. package/_cjs/data/Duration/definition.cjs.map +1 -1
  157. package/_cjs/data/Either/api/align.cjs +1 -2
  158. package/_cjs/data/Either/api/align.cjs.map +1 -1
  159. package/_cjs/data/Either/api/alignWith.cjs +1 -2
  160. package/_cjs/data/Either/api/alignWith.cjs.map +1 -1
  161. package/_cjs/data/Either/api.cjs +53 -55
  162. package/_cjs/data/Either/api.cjs.map +1 -1
  163. package/_cjs/data/Either/constructors.cjs +21 -22
  164. package/_cjs/data/Either/constructors.cjs.map +1 -1
  165. package/_cjs/data/Either/definition.cjs +1 -2
  166. package/_cjs/data/Either/definition.cjs.map +1 -1
  167. package/_cjs/data/Either/instances.cjs +1 -2
  168. package/_cjs/data/Either/instances.cjs.map +1 -1
  169. package/_cjs/data/EitherT/api.cjs +28 -29
  170. package/_cjs/data/EitherT/api.cjs.map +1 -1
  171. package/_cjs/data/Environment/api.cjs +1 -2
  172. package/_cjs/data/Environment/api.cjs.map +1 -1
  173. package/_cjs/data/Environment/definition.cjs +1 -2
  174. package/_cjs/data/Environment/definition.cjs.map +1 -1
  175. package/_cjs/data/EnvironmentPatch.cjs +2 -3
  176. package/_cjs/data/EnvironmentPatch.cjs.map +1 -1
  177. package/_cjs/data/Eq/api.cjs +189 -5
  178. package/_cjs/data/Eq/api.cjs.map +1 -1
  179. package/_cjs/data/Eq/derivations.cjs +10 -21
  180. package/_cjs/data/Eq/derivations.cjs.map +1 -1
  181. package/_cjs/data/Equatable/api.cjs +1 -2
  182. package/_cjs/data/Equatable/api.cjs.map +1 -1
  183. package/_cjs/data/Equatable/definition.cjs +1 -2
  184. package/_cjs/data/Equatable/definition.cjs.map +1 -1
  185. package/_cjs/data/Exit/api.cjs +90 -80
  186. package/_cjs/data/Exit/api.cjs.map +1 -1
  187. package/_cjs/data/Exit/constructors.cjs +1 -2
  188. package/_cjs/data/Exit/constructors.cjs.map +1 -1
  189. package/_cjs/data/Exit/definition.cjs +1 -2
  190. package/_cjs/data/Exit/definition.cjs.map +1 -1
  191. package/_cjs/data/FiberId/api.cjs +1 -2
  192. package/_cjs/data/FiberId/api.cjs.map +1 -1
  193. package/_cjs/data/FiberId/definition.cjs +1 -2
  194. package/_cjs/data/FiberId/definition.cjs.map +1 -1
  195. package/_cjs/data/Guard/api.cjs +13 -17
  196. package/_cjs/data/Guard/api.cjs.map +1 -1
  197. package/_cjs/data/HashEq.cjs +1 -2
  198. package/_cjs/data/HashEq.cjs.map +1 -1
  199. package/_cjs/data/Hashable/definition.cjs +1 -2
  200. package/_cjs/data/Hashable/definition.cjs.map +1 -1
  201. package/_cjs/data/Hashable/hash.cjs +1 -2
  202. package/_cjs/data/Hashable/hash.cjs.map +1 -1
  203. package/_cjs/data/Identity/api.cjs +1 -2
  204. package/_cjs/data/Identity/api.cjs.map +1 -1
  205. package/_cjs/data/Identity/definition.cjs +1 -2
  206. package/_cjs/data/Identity/definition.cjs.map +1 -1
  207. package/_cjs/data/Identity/instances.cjs +1 -2
  208. package/_cjs/data/Identity/instances.cjs.map +1 -1
  209. package/_cjs/data/Interval.cjs +1 -2
  210. package/_cjs/data/Interval.cjs.map +1 -1
  211. package/_cjs/data/Intervals.cjs +1 -2
  212. package/_cjs/data/Intervals.cjs.map +1 -1
  213. package/_cjs/data/Maybe/api.cjs +73 -60
  214. package/_cjs/data/Maybe/api.cjs.map +1 -1
  215. package/_cjs/data/Maybe/constructors.cjs +37 -38
  216. package/_cjs/data/Maybe/constructors.cjs.map +1 -1
  217. package/_cjs/data/Maybe/definition.cjs +1 -2
  218. package/_cjs/data/Maybe/definition.cjs.map +1 -1
  219. package/_cjs/data/Maybe/instances.cjs +1 -2
  220. package/_cjs/data/Maybe/instances.cjs.map +1 -1
  221. package/_cjs/data/Newtype.cjs +1 -2
  222. package/_cjs/data/Newtype.cjs.map +1 -1
  223. package/_cjs/data/Ord/api.cjs +1 -2
  224. package/_cjs/data/Ord/api.cjs.map +1 -1
  225. package/_cjs/data/Ord/definition.cjs +1 -2
  226. package/_cjs/data/Ord/definition.cjs.map +1 -1
  227. package/_cjs/data/Ord/instances.cjs +1 -2
  228. package/_cjs/data/Ord/instances.cjs.map +1 -1
  229. package/_cjs/data/Showable/definition.cjs +1 -2
  230. package/_cjs/data/Showable/definition.cjs.map +1 -1
  231. package/_cjs/data/Showable/show.cjs +1 -2
  232. package/_cjs/data/Showable/show.cjs.map +1 -1
  233. package/_cjs/data/Showable/styles.cjs +1 -2
  234. package/_cjs/data/Showable/styles.cjs.map +1 -1
  235. package/_cjs/data/Showable/util.cjs +1 -2
  236. package/_cjs/data/Showable/util.cjs.map +1 -1
  237. package/_cjs/data/Struct/api.cjs +5 -7
  238. package/_cjs/data/Struct/api.cjs.map +1 -1
  239. package/_cjs/data/Struct/definition.cjs +1 -2
  240. package/_cjs/data/Struct/definition.cjs.map +1 -1
  241. package/_cjs/data/Tag/constructors.cjs +1 -2
  242. package/_cjs/data/Tag/constructors.cjs.map +1 -1
  243. package/_cjs/data/Tag/definition.cjs +1 -2
  244. package/_cjs/data/Tag/definition.cjs.map +1 -1
  245. package/_cjs/data/These/api.cjs +86 -87
  246. package/_cjs/data/These/api.cjs.map +1 -1
  247. package/_cjs/data/These/constructors.cjs +1 -2
  248. package/_cjs/data/These/constructors.cjs.map +1 -1
  249. package/_cjs/data/These/definition.cjs +1 -2
  250. package/_cjs/data/These/definition.cjs.map +1 -1
  251. package/_cjs/data/These/destructors.cjs +1 -2
  252. package/_cjs/data/These/destructors.cjs.map +1 -1
  253. package/_cjs/data/These/instances.cjs +1 -2
  254. package/_cjs/data/These/instances.cjs.map +1 -1
  255. package/_cjs/data/Trace/api.cjs +1 -2
  256. package/_cjs/data/Trace/api.cjs.map +1 -1
  257. package/_cjs/data/Trace/constructors.cjs +1 -2
  258. package/_cjs/data/Trace/constructors.cjs.map +1 -1
  259. package/_cjs/data/Zipped.cjs +1 -2
  260. package/_cjs/data/Zipped.cjs.map +1 -1
  261. package/_cjs/data/bigint/instances.cjs +1 -2
  262. package/_cjs/data/bigint/instances.cjs.map +1 -1
  263. package/_cjs/data/boolean/instances.cjs +1 -2
  264. package/_cjs/data/boolean/instances.cjs.map +1 -1
  265. package/_cjs/data/exceptions/IOError.cjs +1 -2
  266. package/_cjs/data/exceptions/IOError.cjs.map +1 -1
  267. package/_cjs/data/exceptions/InterruptedException.cjs +1 -2
  268. package/_cjs/data/exceptions/InterruptedException.cjs.map +1 -1
  269. package/_cjs/data/number/instances.cjs +1 -2
  270. package/_cjs/data/number/instances.cjs.map +1 -1
  271. package/_cjs/data/object/instances.cjs +1 -2
  272. package/_cjs/data/object/instances.cjs.map +1 -1
  273. package/_cjs/data/string/api.cjs +1 -2
  274. package/_cjs/data/string/api.cjs.map +1 -1
  275. package/_cjs/data/string/instances.cjs +1 -2
  276. package/_cjs/data/string/instances.cjs.map +1 -1
  277. package/_cjs/internal/Stack.cjs +7 -2
  278. package/_cjs/internal/Stack.cjs.map +1 -1
  279. package/_cjs/optics/At/api.cjs +1 -2
  280. package/_cjs/optics/At/api.cjs.map +1 -1
  281. package/_cjs/optics/At/definition.cjs +1 -2
  282. package/_cjs/optics/At/definition.cjs.map +1 -1
  283. package/_cjs/optics/Index/api.cjs +3 -4
  284. package/_cjs/optics/Index/api.cjs.map +1 -1
  285. package/_cjs/optics/Iso/api.cjs +1 -2
  286. package/_cjs/optics/Iso/api.cjs.map +1 -1
  287. package/_cjs/optics/Iso/definition.cjs +1 -2
  288. package/_cjs/optics/Iso/definition.cjs.map +1 -1
  289. package/_cjs/optics/Lens/api.cjs +2 -3
  290. package/_cjs/optics/Lens/api.cjs.map +1 -1
  291. package/_cjs/optics/Lens/definition.cjs +1 -2
  292. package/_cjs/optics/Lens/definition.cjs.map +1 -1
  293. package/_cjs/optics/Optional/api/compose.cjs +1 -2
  294. package/_cjs/optics/Optional/api/compose.cjs.map +1 -1
  295. package/_cjs/optics/Optional/api/focus.cjs +1 -2
  296. package/_cjs/optics/Optional/api/focus.cjs.map +1 -1
  297. package/_cjs/optics/Optional/api.cjs +1 -2
  298. package/_cjs/optics/Optional/api.cjs.map +1 -1
  299. package/_cjs/optics/Optional/definition.cjs +1 -2
  300. package/_cjs/optics/Optional/definition.cjs.map +1 -1
  301. package/_cjs/optics/Prism/api/compose.cjs +1 -2
  302. package/_cjs/optics/Prism/api/compose.cjs.map +1 -1
  303. package/_cjs/optics/Prism/api/focus.cjs +1 -2
  304. package/_cjs/optics/Prism/api/focus.cjs.map +1 -1
  305. package/_cjs/optics/Prism/api/fromNullable.cjs +1 -2
  306. package/_cjs/optics/Prism/api/fromNullable.cjs.map +1 -1
  307. package/_cjs/optics/Prism/api/just.cjs +1 -2
  308. package/_cjs/optics/Prism/api/just.cjs.map +1 -1
  309. package/_cjs/optics/Prism/definition.cjs +1 -2
  310. package/_cjs/optics/Prism/definition.cjs.map +1 -1
  311. package/_cjs/optics/Traversal/api/compose.cjs +1 -2
  312. package/_cjs/optics/Traversal/api/compose.cjs.map +1 -1
  313. package/_cjs/optics/Traversal/api/focus.cjs +1 -2
  314. package/_cjs/optics/Traversal/api/focus.cjs.map +1 -1
  315. package/_cjs/optics/Traversal/api/fromTraversable.cjs +1 -2
  316. package/_cjs/optics/Traversal/api/fromTraversable.cjs.map +1 -1
  317. package/_cjs/optics/Traversal/definition.cjs +1 -2
  318. package/_cjs/optics/Traversal/definition.cjs.map +1 -1
  319. package/_cjs/typeclass/ApplicativeExcept.cjs +1 -2
  320. package/_cjs/typeclass/ApplicativeExcept.cjs.map +1 -1
  321. package/_cjs/typeclass/Apply.cjs +1 -2
  322. package/_cjs/typeclass/Apply.cjs.map +1 -1
  323. package/_cjs/typeclass/Chain.cjs +1 -2
  324. package/_cjs/typeclass/Chain.cjs.map +1 -1
  325. package/_cjs/typeclass/MonadExcept.cjs +1 -2
  326. package/_cjs/typeclass/MonadExcept.cjs.map +1 -1
  327. package/_cjs/typeclass/Monoid.cjs +1 -2
  328. package/_cjs/typeclass/Monoid.cjs.map +1 -1
  329. package/_cjs/typeclass/Semialign.cjs +1 -2
  330. package/_cjs/typeclass/Semialign.cjs.map +1 -1
  331. package/_cjs/typeclass/Semigroup/api.cjs +1 -2
  332. package/_cjs/typeclass/Semigroup/api.cjs.map +1 -1
  333. package/_cjs/typeclass/Semigroup/derivations.cjs +1 -2
  334. package/_cjs/typeclass/Semigroup/derivations.cjs.map +1 -1
  335. package/_cjs/typeclass/Witherable.cjs +1 -2
  336. package/_cjs/typeclass/Witherable.cjs.map +1 -1
  337. package/_cjs/typeclass/WitherableWithIndex.cjs +1 -2
  338. package/_cjs/typeclass/WitherableWithIndex.cjs.map +1 -1
  339. package/_cjs/util/AnsiFormat.cjs +1 -2
  340. package/_cjs/util/AnsiFormat.cjs.map +1 -1
  341. package/_cjs/util/assert.cjs +1 -1
  342. package/_cjs/util/assert.cjs.map +1 -1
  343. package/_cjs/util/pattern.cjs.map +1 -1
  344. package/_cjs/util/rand/generator/RandomGenerator.cjs.map +1 -1
  345. package/_mjs/collection/AsyncIterable/api.mjs +366 -0
  346. package/_mjs/collection/AsyncIterable/api.mjs.map +1 -0
  347. package/_mjs/collection/AsyncIterable/definition.mjs +2 -0
  348. package/_mjs/collection/AsyncIterable/definition.mjs.map +1 -0
  349. package/_mjs/collection/AsyncIterable.mjs +4 -0
  350. package/_mjs/collection/AsyncIterable.mjs.map +1 -0
  351. package/_mjs/collection/Iterable/api.mjs +175 -134
  352. package/_mjs/collection/Iterable/api.mjs.map +1 -1
  353. package/_mjs/collection/Iterable/constructors.mjs.map +1 -1
  354. package/_mjs/collection/immutable/Conc/constructors.mjs +2 -2
  355. package/_mjs/collection/immutable/Conc/constructors.mjs.map +1 -1
  356. package/_mjs/collection/immutable/Conc/definition.mjs +1 -1
  357. package/_mjs/collection/immutable/Conc/definition.mjs.map +1 -1
  358. package/_mjs/collection/immutable/List/api.mjs +2 -2
  359. package/_mjs/collection/immutable/List/api.mjs.map +1 -1
  360. package/_mjs/collection/immutable/{ImmutableArray → ReadonlyArray}/api/chunksOf.mjs +3 -3
  361. package/_mjs/collection/immutable/ReadonlyArray/api/chunksOf.mjs.map +1 -0
  362. package/_mjs/collection/immutable/ReadonlyArray/api/splitAt.mjs +9 -0
  363. package/_mjs/collection/immutable/ReadonlyArray/api/splitAt.mjs.map +1 -0
  364. package/_mjs/collection/immutable/ReadonlyArray/api/splitWhere.mjs +19 -0
  365. package/_mjs/collection/immutable/ReadonlyArray/api/splitWhere.mjs.map +1 -0
  366. package/_mjs/collection/immutable/ReadonlyArray/api.mjs +1302 -0
  367. package/_mjs/collection/immutable/ReadonlyArray/api.mjs.map +1 -0
  368. package/_mjs/collection/immutable/ReadonlyArray/constructors.mjs +44 -0
  369. package/_mjs/collection/immutable/ReadonlyArray/constructors.mjs.map +1 -0
  370. package/_mjs/collection/immutable/ReadonlyArray/definition.mjs.map +1 -0
  371. package/_mjs/collection/immutable/{ImmutableArray → ReadonlyArray}/instances.mjs +4 -5
  372. package/_mjs/collection/immutable/ReadonlyArray/instances.mjs.map +1 -0
  373. package/_mjs/collection/immutable/ReadonlyArray.mjs +11 -0
  374. package/_mjs/collection/immutable/ReadonlyArray.mjs.map +1 -0
  375. package/_mjs/collection/immutable/ReadonlyNonEmptyArray/api.mjs +433 -0
  376. package/_mjs/collection/immutable/ReadonlyNonEmptyArray/api.mjs.map +1 -0
  377. package/_mjs/collection/immutable/{ImmutableNonEmptyArray → ReadonlyNonEmptyArray}/constructors.mjs +16 -15
  378. package/_mjs/collection/immutable/ReadonlyNonEmptyArray/constructors.mjs.map +1 -0
  379. package/_mjs/collection/immutable/ReadonlyNonEmptyArray/definition.mjs +2 -0
  380. package/_mjs/collection/immutable/ReadonlyNonEmptyArray/definition.mjs.map +1 -0
  381. package/_mjs/collection/immutable/ReadonlyNonEmptyArray/destructors.mjs +41 -0
  382. package/_mjs/collection/immutable/ReadonlyNonEmptyArray/destructors.mjs.map +1 -0
  383. package/_mjs/collection/immutable/{ImmutableNonEmptyArray → ReadonlyNonEmptyArray}/instances.mjs +2 -2
  384. package/_mjs/collection/immutable/ReadonlyNonEmptyArray/instances.mjs.map +1 -0
  385. package/_mjs/collection/immutable/ReadonlyNonEmptyArray.mjs +7 -0
  386. package/_mjs/collection/immutable/ReadonlyNonEmptyArray.mjs.map +1 -0
  387. package/_mjs/collection/immutable/Vector/api.mjs +224 -224
  388. package/_mjs/collection/immutable/Vector/api.mjs.map +1 -1
  389. package/_mjs/control/Eval/api.mjs +83 -15
  390. package/_mjs/control/Eval/api.mjs.map +1 -1
  391. package/_mjs/control/Eval/constructors.mjs +4 -0
  392. package/_mjs/control/Eval/constructors.mjs.map +1 -1
  393. package/_mjs/control/Pure/runtime.mjs +14 -8
  394. package/_mjs/control/Pure/runtime.mjs.map +1 -1
  395. package/_mjs/data/CaseClass.mjs +10 -12
  396. package/_mjs/data/CaseClass.mjs.map +1 -1
  397. package/_mjs/data/Cause/api/fold.mjs +32 -32
  398. package/_mjs/data/Cause/api/fold.mjs.map +1 -1
  399. package/_mjs/data/Const/api.mjs +7 -7
  400. package/_mjs/data/Const/api.mjs.map +1 -1
  401. package/_mjs/data/Const/instances.mjs +11 -11
  402. package/_mjs/data/Const/instances.mjs.map +1 -1
  403. package/_mjs/data/Datum/api.mjs +107 -108
  404. package/_mjs/data/Datum/api.mjs.map +1 -1
  405. package/_mjs/data/Datum.mjs +5 -0
  406. package/_mjs/data/Datum.mjs.map +1 -0
  407. package/_mjs/data/DatumEither/api.mjs +53 -53
  408. package/_mjs/data/DatumEither/api.mjs.map +1 -1
  409. package/_mjs/data/Either/api.mjs +42 -42
  410. package/_mjs/data/Either/api.mjs.map +1 -1
  411. package/_mjs/data/Either/constructors.mjs +20 -20
  412. package/_mjs/data/Either/constructors.mjs.map +1 -1
  413. package/_mjs/data/EitherT/api.mjs +27 -27
  414. package/_mjs/data/EitherT/api.mjs.map +1 -1
  415. package/_mjs/data/Environment/api.mjs.map +1 -1
  416. package/_mjs/data/EnvironmentPatch.mjs +1 -1
  417. package/_mjs/data/Eq/api.mjs +175 -3
  418. package/_mjs/data/Eq/api.mjs.map +1 -1
  419. package/_mjs/data/Eq/derivations.mjs +8 -19
  420. package/_mjs/data/Eq/derivations.mjs.map +1 -1
  421. package/_mjs/data/Exit/api.mjs +88 -78
  422. package/_mjs/data/Exit/api.mjs.map +1 -1
  423. package/_mjs/data/Guard/api.mjs +12 -15
  424. package/_mjs/data/Guard/api.mjs.map +1 -1
  425. package/_mjs/data/Maybe/api.mjs +71 -58
  426. package/_mjs/data/Maybe/api.mjs.map +1 -1
  427. package/_mjs/data/Maybe/constructors.mjs +36 -36
  428. package/_mjs/data/Maybe/constructors.mjs.map +1 -1
  429. package/_mjs/data/Struct/api.mjs +4 -5
  430. package/_mjs/data/Struct/api.mjs.map +1 -1
  431. package/_mjs/data/These/api.mjs +85 -85
  432. package/_mjs/data/These/api.mjs.map +1 -1
  433. package/_mjs/internal/Stack.mjs +7 -2
  434. package/_mjs/internal/Stack.mjs.map +1 -1
  435. package/_mjs/optics/Index/api.mjs +2 -2
  436. package/_mjs/optics/Index/api.mjs.map +1 -1
  437. package/_mjs/optics/Lens/api.mjs +1 -1
  438. package/_mjs/util/assert.mjs +1 -1
  439. package/_mjs/util/assert.mjs.map +1 -1
  440. package/_mjs/util/pattern.mjs.map +1 -1
  441. package/_mjs/util/rand/generator/RandomGenerator.mjs.map +1 -1
  442. package/_src/collection/AsyncIterable/api.ts +369 -0
  443. package/_src/collection/AsyncIterable/definition.ts +7 -0
  444. package/_src/collection/AsyncIterable.ts +4 -0
  445. package/_src/collection/Iterable/api.ts +215 -162
  446. package/_src/collection/Iterable/constructors.ts +0 -2
  447. package/_src/collection/compat/ArrayLike/definition.ts +2 -2
  448. package/_src/collection/compat.ts +0 -1
  449. package/_src/collection/immutable/Conc/constructors.ts +1 -2
  450. package/_src/collection/immutable/Conc/definition.ts +7 -6
  451. package/_src/collection/immutable/List/api.ts +2 -2
  452. package/_src/collection/immutable/ReadonlyArray/api/chunksOf.ts +8 -0
  453. package/_src/collection/immutable/ReadonlyArray/api/splitAt.ts +8 -0
  454. package/_src/collection/immutable/{ImmutableArray → ReadonlyArray}/api/splitWhere.ts +3 -3
  455. package/_src/collection/immutable/ReadonlyArray/api.ts +1536 -0
  456. package/_src/collection/immutable/ReadonlyArray/constructors.ts +47 -0
  457. package/_src/collection/{compat/Array → immutable/ReadonlyArray}/definition.ts +8 -0
  458. package/_src/collection/immutable/{ImmutableArray → ReadonlyArray}/instances.ts +22 -22
  459. package/_src/collection/immutable/ReadonlyArray.ts +12 -0
  460. package/_src/collection/immutable/ReadonlyNonEmptyArray/api.ts +481 -0
  461. package/_src/collection/immutable/ReadonlyNonEmptyArray/constructors.ts +76 -0
  462. package/_src/collection/immutable/ReadonlyNonEmptyArray/definition.ts +22 -0
  463. package/_src/collection/immutable/ReadonlyNonEmptyArray/destructors.ts +41 -0
  464. package/_src/collection/immutable/{ImmutableNonEmptyArray → ReadonlyNonEmptyArray}/instances.ts +13 -13
  465. package/_src/collection/immutable/ReadonlyNonEmptyArray.ts +7 -0
  466. package/_src/collection/immutable/Vector/api.ts +310 -309
  467. package/_src/collection/immutable.ts +11 -11
  468. package/_src/collection.ts +6 -5
  469. package/_src/control/Eval/api.ts +109 -16
  470. package/_src/control/Eval/constructors.ts +5 -0
  471. package/_src/control/Pure/runtime.ts +8 -2
  472. package/_src/data/CaseClass.ts +5 -5
  473. package/_src/data/Cause/api/fold.ts +2 -2
  474. package/_src/data/Const/api.ts +8 -8
  475. package/_src/data/Const/instances.ts +10 -10
  476. package/_src/data/Datum/api.ts +113 -113
  477. package/_src/data/Datum.ts +5 -0
  478. package/_src/data/DatumEither/api.ts +41 -43
  479. package/_src/data/Either/api.ts +47 -47
  480. package/_src/data/Either/constructors.ts +14 -16
  481. package/_src/data/EitherT/api.ts +111 -110
  482. package/_src/data/Environment/api.ts +6 -3
  483. package/_src/data/Eq/api.ts +193 -4
  484. package/_src/data/Eq/derivations.ts +12 -19
  485. package/_src/data/Exit/api.ts +89 -77
  486. package/_src/data/Guard/api.ts +11 -11
  487. package/_src/data/Maybe/api.ts +82 -73
  488. package/_src/data/Maybe/constructors.ts +34 -36
  489. package/_src/data/Struct/api.ts +1 -1
  490. package/_src/data/These/api.ts +93 -92
  491. package/_src/data.ts +1 -0
  492. package/_src/global.ts +7 -12
  493. package/_src/internal/Stack.ts +6 -2
  494. package/_src/optics/Index/api.ts +1 -1
  495. package/_src/util/assert.ts +2 -2
  496. package/_src/util/pattern.ts +8 -90
  497. package/_src/util/rand/generator/RandomGenerator.ts +1 -0
  498. package/collection/AsyncIterable/api.d.ts +71 -0
  499. package/collection/AsyncIterable/definition.d.ts +9 -0
  500. package/collection/AsyncIterable.d.ts +2 -0
  501. package/collection/Iterable/api.d.ts +40 -25
  502. package/collection/compat/ArrayLike/definition.d.ts +2 -2
  503. package/collection/compat.d.ts +0 -1
  504. package/collection/immutable/Conc/definition.d.ts +1 -1
  505. package/collection/immutable/ReadonlyArray/api/chunksOf.d.ts +5 -0
  506. package/collection/immutable/ReadonlyArray/api/splitAt.d.ts +5 -0
  507. package/collection/immutable/ReadonlyArray/api/splitWhere.d.ts +6 -0
  508. package/collection/immutable/ReadonlyArray/api.d.ts +614 -0
  509. package/collection/immutable/ReadonlyArray/constructors.d.ts +30 -0
  510. package/collection/{compat/Array → immutable/ReadonlyArray}/definition.d.ts +8 -0
  511. package/collection/immutable/ReadonlyArray/instances.d.ts +87 -0
  512. package/collection/immutable/ReadonlyArray.d.ts +7 -0
  513. package/collection/immutable/ReadonlyNonEmptyArray/api.d.ts +186 -0
  514. package/collection/immutable/ReadonlyNonEmptyArray/constructors.d.ts +45 -0
  515. package/collection/immutable/ReadonlyNonEmptyArray/definition.d.ts +21 -0
  516. package/collection/immutable/ReadonlyNonEmptyArray/destructors.d.ts +31 -0
  517. package/collection/immutable/ReadonlyNonEmptyArray/instances.d.ts +52 -0
  518. package/collection/immutable/ReadonlyNonEmptyArray.d.ts +5 -0
  519. package/collection/immutable/Vector/api.d.ts +93 -93
  520. package/collection/immutable.d.ts +2 -2
  521. package/collection.d.ts +1 -0
  522. package/control/Eval/api.d.ts +27 -5
  523. package/control/Eval/constructors.d.ts +5 -0
  524. package/data/CaseClass.d.ts +2 -3
  525. package/data/Const/api.d.ts +5 -5
  526. package/data/Const/instances.d.ts +4 -4
  527. package/data/Datum/api.d.ts +64 -64
  528. package/data/Datum.d.ts +3 -0
  529. package/data/DatumEither/api.d.ts +25 -25
  530. package/data/Either/api.d.ts +24 -24
  531. package/data/Either/constructors.d.ts +12 -12
  532. package/data/EitherT/api.d.ts +16 -16
  533. package/data/Environment/api.d.ts +4 -2
  534. package/data/Eq/api.d.ts +89 -2
  535. package/data/Eq/derivations.d.ts +7 -0
  536. package/data/Exit/api.d.ts +43 -37
  537. package/data/Guard/api.d.ts +7 -8
  538. package/data/Maybe/api.d.ts +38 -33
  539. package/data/Maybe/constructors.d.ts +16 -16
  540. package/data/These/api.d.ts +26 -26
  541. package/data.d.ts +1 -0
  542. package/global.d.ts +4 -8
  543. package/internal/Stack.d.ts +2 -0
  544. package/optics/Lens/api.d.ts +1 -1
  545. package/package.json +3 -3
  546. package/util/assert.d.ts +1 -1
  547. package/_cjs/collection/compat/Array/api.cjs +0 -142
  548. package/_cjs/collection/compat/Array/api.cjs.map +0 -1
  549. package/_cjs/collection/compat/Array/definition.cjs.map +0 -1
  550. package/_cjs/collection/compat/Array.cjs.map +0 -1
  551. package/_cjs/collection/immutable/ImmutableArray/api/chunksOf.cjs +0 -19
  552. package/_cjs/collection/immutable/ImmutableArray/api/chunksOf.cjs.map +0 -1
  553. package/_cjs/collection/immutable/ImmutableArray/api/slice.cjs +0 -18
  554. package/_cjs/collection/immutable/ImmutableArray/api/slice.cjs.map +0 -1
  555. package/_cjs/collection/immutable/ImmutableArray/api/splitAt.cjs +0 -18
  556. package/_cjs/collection/immutable/ImmutableArray/api/splitAt.cjs.map +0 -1
  557. package/_cjs/collection/immutable/ImmutableArray/api/splitWhere.cjs +0 -28
  558. package/_cjs/collection/immutable/ImmutableArray/api/splitWhere.cjs.map +0 -1
  559. package/_cjs/collection/immutable/ImmutableArray/api.cjs.map +0 -1
  560. package/_cjs/collection/immutable/ImmutableArray/constructors.cjs +0 -59
  561. package/_cjs/collection/immutable/ImmutableArray/constructors.cjs.map +0 -1
  562. package/_cjs/collection/immutable/ImmutableArray/definition.cjs +0 -44
  563. package/_cjs/collection/immutable/ImmutableArray/definition.cjs.map +0 -1
  564. package/_cjs/collection/immutable/ImmutableArray/instances.cjs.map +0 -1
  565. package/_cjs/collection/immutable/ImmutableArray.cjs.map +0 -1
  566. package/_cjs/collection/immutable/ImmutableNonEmptyArray/api.cjs +0 -474
  567. package/_cjs/collection/immutable/ImmutableNonEmptyArray/api.cjs.map +0 -1
  568. package/_cjs/collection/immutable/ImmutableNonEmptyArray/constructors.cjs +0 -79
  569. package/_cjs/collection/immutable/ImmutableNonEmptyArray/constructors.cjs.map +0 -1
  570. package/_cjs/collection/immutable/ImmutableNonEmptyArray/definition.cjs +0 -36
  571. package/_cjs/collection/immutable/ImmutableNonEmptyArray/definition.cjs.map +0 -1
  572. package/_cjs/collection/immutable/ImmutableNonEmptyArray/destructors.cjs +0 -53
  573. package/_cjs/collection/immutable/ImmutableNonEmptyArray/destructors.cjs.map +0 -1
  574. package/_cjs/collection/immutable/ImmutableNonEmptyArray/instances.cjs.map +0 -1
  575. package/_cjs/collection/immutable/ImmutableNonEmptyArray.cjs.map +0 -1
  576. package/_cjs/control/Eval/api/sequenceArray.cjs +0 -17
  577. package/_cjs/control/Eval/api/sequenceArray.cjs.map +0 -1
  578. package/_mjs/collection/compat/Array/api.mjs +0 -125
  579. package/_mjs/collection/compat/Array/api.mjs.map +0 -1
  580. package/_mjs/collection/compat/Array/definition.mjs.map +0 -1
  581. package/_mjs/collection/compat/Array.mjs +0 -4
  582. package/_mjs/collection/compat/Array.mjs.map +0 -1
  583. package/_mjs/collection/immutable/ImmutableArray/api/chunksOf.mjs.map +0 -1
  584. package/_mjs/collection/immutable/ImmutableArray/api/slice.mjs +0 -10
  585. package/_mjs/collection/immutable/ImmutableArray/api/slice.mjs.map +0 -1
  586. package/_mjs/collection/immutable/ImmutableArray/api/splitAt.mjs +0 -10
  587. package/_mjs/collection/immutable/ImmutableArray/api/splitAt.mjs.map +0 -1
  588. package/_mjs/collection/immutable/ImmutableArray/api/splitWhere.mjs +0 -20
  589. package/_mjs/collection/immutable/ImmutableArray/api/splitWhere.mjs.map +0 -1
  590. package/_mjs/collection/immutable/ImmutableArray/api.mjs +0 -1284
  591. package/_mjs/collection/immutable/ImmutableArray/api.mjs.map +0 -1
  592. package/_mjs/collection/immutable/ImmutableArray/constructors.mjs +0 -46
  593. package/_mjs/collection/immutable/ImmutableArray/constructors.mjs.map +0 -1
  594. package/_mjs/collection/immutable/ImmutableArray/definition.mjs +0 -35
  595. package/_mjs/collection/immutable/ImmutableArray/definition.mjs.map +0 -1
  596. package/_mjs/collection/immutable/ImmutableArray/instances.mjs.map +0 -1
  597. package/_mjs/collection/immutable/ImmutableArray.mjs +0 -12
  598. package/_mjs/collection/immutable/ImmutableArray.mjs.map +0 -1
  599. package/_mjs/collection/immutable/ImmutableNonEmptyArray/api.mjs +0 -437
  600. package/_mjs/collection/immutable/ImmutableNonEmptyArray/api.mjs.map +0 -1
  601. package/_mjs/collection/immutable/ImmutableNonEmptyArray/constructors.mjs.map +0 -1
  602. package/_mjs/collection/immutable/ImmutableNonEmptyArray/definition.mjs +0 -25
  603. package/_mjs/collection/immutable/ImmutableNonEmptyArray/definition.mjs.map +0 -1
  604. package/_mjs/collection/immutable/ImmutableNonEmptyArray/destructors.mjs +0 -43
  605. package/_mjs/collection/immutable/ImmutableNonEmptyArray/destructors.mjs.map +0 -1
  606. package/_mjs/collection/immutable/ImmutableNonEmptyArray/instances.mjs.map +0 -1
  607. package/_mjs/collection/immutable/ImmutableNonEmptyArray.mjs +0 -7
  608. package/_mjs/collection/immutable/ImmutableNonEmptyArray.mjs.map +0 -1
  609. package/_mjs/control/Eval/api/sequenceArray.mjs +0 -9
  610. package/_mjs/control/Eval/api/sequenceArray.mjs.map +0 -1
  611. package/_src/collection/compat/Array/api.ts +0 -134
  612. package/_src/collection/compat/Array.ts +0 -4
  613. package/_src/collection/immutable/ImmutableArray/api/chunksOf.ts +0 -8
  614. package/_src/collection/immutable/ImmutableArray/api/slice.ts +0 -8
  615. package/_src/collection/immutable/ImmutableArray/api/splitAt.ts +0 -8
  616. package/_src/collection/immutable/ImmutableArray/api.ts +0 -1526
  617. package/_src/collection/immutable/ImmutableArray/constructors.ts +0 -47
  618. package/_src/collection/immutable/ImmutableArray/definition.ts +0 -48
  619. package/_src/collection/immutable/ImmutableArray.ts +0 -13
  620. package/_src/collection/immutable/ImmutableNonEmptyArray/api.ts +0 -483
  621. package/_src/collection/immutable/ImmutableNonEmptyArray/constructors.ts +0 -83
  622. package/_src/collection/immutable/ImmutableNonEmptyArray/definition.ts +0 -47
  623. package/_src/collection/immutable/ImmutableNonEmptyArray/destructors.ts +0 -41
  624. package/_src/collection/immutable/ImmutableNonEmptyArray.ts +0 -7
  625. package/_src/control/Eval/api/sequenceArray.ts +0 -6
  626. package/collection/compat/Array/api.d.ts +0 -62
  627. package/collection/compat/Array.d.ts +0 -2
  628. package/collection/immutable/ImmutableArray/api/chunksOf.d.ts +0 -6
  629. package/collection/immutable/ImmutableArray/api/slice.d.ts +0 -6
  630. package/collection/immutable/ImmutableArray/api/splitAt.d.ts +0 -6
  631. package/collection/immutable/ImmutableArray/api/splitWhere.d.ts +0 -7
  632. package/collection/immutable/ImmutableArray/api.d.ts +0 -602
  633. package/collection/immutable/ImmutableArray/constructors.d.ts +0 -32
  634. package/collection/immutable/ImmutableArray/definition.d.ts +0 -34
  635. package/collection/immutable/ImmutableArray/instances.d.ts +0 -87
  636. package/collection/immutable/ImmutableArray.d.ts +0 -8
  637. package/collection/immutable/ImmutableNonEmptyArray/api.d.ts +0 -186
  638. package/collection/immutable/ImmutableNonEmptyArray/constructors.d.ts +0 -46
  639. package/collection/immutable/ImmutableNonEmptyArray/definition.d.ts +0 -40
  640. package/collection/immutable/ImmutableNonEmptyArray/destructors.d.ts +0 -32
  641. package/collection/immutable/ImmutableNonEmptyArray/instances.d.ts +0 -52
  642. package/collection/immutable/ImmutableNonEmptyArray.d.ts +0 -5
  643. package/control/Eval/api/sequenceArray.d.ts +0 -6
  644. /package/_cjs/collection/{compat/Array → immutable/ReadonlyArray}/definition.cjs +0 -0
  645. /package/_mjs/collection/{compat/Array → immutable/ReadonlyArray}/definition.mjs +0 -0
@@ -1,7 +1,7 @@
1
1
  import { Vector } from "@fncts/base/collection/immutable/Vector";
2
+ import { Refinement, RefinementWithIndex } from "@fncts/base/data/Refinement/definition";
3
+ import { Predicate, PredicateWithIndex } from "@fncts/base/data/Predicate/definition";
2
4
  import { Maybe } from "@fncts/base/data/Maybe/definition";
3
- import { RefinementWithIndex, Refinement } from "@fncts/base/data/Refinement/definition";
4
- import { PredicateWithIndex, Predicate } from "@fncts/base/data/Predicate/definition";
5
5
  import { List } from "@fncts/base/collection/immutable/List/definition";
6
6
  import { HKT } from "@fncts/typelevel/HKT";
7
7
  import type { MutableVector, VectorF } from "@fncts/base/collection/immutable/Vector/definition";
@@ -16,21 +16,19 @@ import type * as P from "@fncts/base/typeclass";
16
16
  */
17
17
  export declare function append<A>(a: A): (self: Vector<A>) => Vector<A>;
18
18
  /**
19
- * @tsplus pipeable fncts.Vector filterMapWithIndex
20
- * @tsplus location "@fncts/base/collection/immutable/Vector/api"
21
- */
22
- export declare function filterMapWithIndex<A, B>(f: (i: number, a: A) => Maybe<B>): (self: Vector<A>) => Vector<B>;
23
- /**
24
- * @tsplus pipeable fncts.Vector filterMap
19
+ * Splits the Vector into chunks of the given size.
20
+ * @tsplus pipeable fncts.Vector chunksOf
25
21
  * @tsplus location "@fncts/base/collection/immutable/Vector/api"
26
22
  */
27
- export declare function filterMap<A, B>(f: (a: A) => Maybe<B>): (self: Vector<A>) => Vector<B>;
23
+ export declare function chunksOf(size: number): <A>(self: Vector<A>) => Vector<Vector<A>>;
28
24
  /**
29
- * @tsplus pipeable fncts.Vector filterWithIndex
25
+ * Concatenates two Vectors.
26
+ * @complexity O(log(n))
27
+ * @tsplus pipeable fncts.Vector concat
28
+ * @tsplus pipeable-operator fncts.Vector + 1
30
29
  * @tsplus location "@fncts/base/collection/immutable/Vector/api"
31
30
  */
32
- export declare function filterWithIndex<A, B extends A>(refinement: RefinementWithIndex<number, A, B>): (self: Vector<A>) => Vector<B>;
33
- export declare function filterWithIndex<A>(predicate: PredicateWithIndex<number, A>): (self: Vector<A>) => Vector<A>;
31
+ export declare function concat<B>(that: Vector<B>): <A>(self: Vector<A>) => Vector<A | B>;
34
32
  /**
35
33
  * @tsplus pipeable fncts.Vector filter
36
34
  * @tsplus location "@fncts/base/collection/immutable/Vector/api"
@@ -38,26 +36,28 @@ export declare function filterWithIndex<A>(predicate: PredicateWithIndex<number,
38
36
  export declare function filter<A, B extends A>(refinement: Refinement<A, B>): (self: Vector<A>) => Vector<B>;
39
37
  export declare function filter<A>(predicate: Predicate<A>): (self: Vector<A>) => Vector<A>;
40
38
  /**
41
- * Maps a function over a Vector and concatenates all the resulting
42
- * Vectors together.
43
- * @tsplus pipeable fncts.Vector flatMap
39
+ * @tsplus pipeable fncts.Vector filterMap
44
40
  * @tsplus location "@fncts/base/collection/immutable/Vector/api"
45
41
  */
46
- export declare function flatMap<A, B>(f: (a: A) => Vector<B>): (self: Vector<A>) => Vector<B>;
42
+ export declare function filterMap<A, B>(f: (a: A) => Maybe<B>): (self: Vector<A>) => Vector<B>;
47
43
  /**
48
- * Splits the Vector into chunks of the given size.
49
- * @tsplus pipeable fncts.Vector chunksOf
44
+ * @tsplus pipeable fncts.Vector filterMapWithIndex
50
45
  * @tsplus location "@fncts/base/collection/immutable/Vector/api"
51
46
  */
52
- export declare function chunksOf(size: number): <A>(self: Vector<A>) => Vector<Vector<A>>;
47
+ export declare function filterMapWithIndex<A, B>(f: (i: number, a: A) => Maybe<B>): (self: Vector<A>) => Vector<B>;
53
48
  /**
54
- * Concatenates two Vectors.
55
- * @complexity O(log(n))
56
- * @tsplus pipeable fncts.Vector concat
57
- * @tsplus pipeable-operator fncts.Vector + 1
49
+ * @tsplus pipeable fncts.Vector filterWithIndex
58
50
  * @tsplus location "@fncts/base/collection/immutable/Vector/api"
59
51
  */
60
- export declare function concat<B>(that: Vector<B>): <A>(self: Vector<A>) => Vector<A | B>;
52
+ export declare function filterWithIndex<A, B extends A>(refinement: RefinementWithIndex<number, A, B>): (self: Vector<A>) => Vector<B>;
53
+ export declare function filterWithIndex<A>(predicate: PredicateWithIndex<number, A>): (self: Vector<A>) => Vector<A>;
54
+ /**
55
+ * Maps a function over a Vector and concatenates all the resulting
56
+ * Vectors together.
57
+ * @tsplus pipeable fncts.Vector flatMap
58
+ * @tsplus location "@fncts/base/collection/immutable/Vector/api"
59
+ */
60
+ export declare function flatMap<A, B>(f: (a: A) => Vector<B>): (self: Vector<A>) => Vector<B>;
61
61
  /**
62
62
  * Returns `true` if the Vector contains the specified element.
63
63
  * Otherwise it returns `false`.
@@ -109,22 +109,6 @@ export declare function dropWhile<A>(predicate: Predicate<A>): (self: Vector<A>)
109
109
  * @tsplus location "@fncts/base/collection/immutable/Vector/api"
110
110
  */
111
111
  export declare function elem<A>(a: A, /** @tsplus auto */ E: Eq<A>): (self: Vector<A>) => boolean;
112
- /**
113
- * Returns true if the two Vectors are equivalent.
114
- * @complexity O(n)
115
- * @tsplus pipeable fncts.Vector equals
116
- * @tsplus location "@fncts/base/collection/immutable/Vector/api"
117
- */
118
- export declare function equals<A>(that: Vector<A>): (self: Vector<A>) => boolean;
119
- /**
120
- * Returns `true` if and only if the predicate function returns `true`
121
- * for all elements in the given Vector.
122
- * @complexity O(n)
123
- * @tsplus pipeable fncts.Vector every
124
- * @tsplus location "@fncts/base/collection/immutable/Vector/api"
125
- */
126
- export declare function every<A, B extends A>(refinement: Refinement<A, B>): (self: Vector<A>) => self is Vector<B>;
127
- export declare function every<A>(predicate: Predicate<A>): (self: Vector<A>) => boolean;
128
112
  /**
129
113
  * Creates an empty Vector.
130
114
  * @complexity O(1)
@@ -138,13 +122,21 @@ export declare function empty<A = never>(): Vector<A>;
138
122
  */
139
123
  export declare function emptyPushable<A = never>(): MutableVector<A>;
140
124
  /**
141
- * Returns true if and only if there exists an element in the Vector for
142
- * which the predicate returns true.
125
+ * Returns true if the two Vectors are equivalent.
143
126
  * @complexity O(n)
144
- * @tsplus pipeable fncts.Vector some
127
+ * @tsplus pipeable fncts.Vector equals
145
128
  * @tsplus location "@fncts/base/collection/immutable/Vector/api"
146
129
  */
147
- export declare function some<A>(predicate: Predicate<A>): (self: Vector<A>) => boolean;
130
+ export declare function equals<A>(that: Vector<A>): (self: Vector<A>) => boolean;
131
+ /**
132
+ * Returns `true` if and only if the predicate function returns `true`
133
+ * for all elements in the given Vector.
134
+ * @complexity O(n)
135
+ * @tsplus pipeable fncts.Vector every
136
+ * @tsplus location "@fncts/base/collection/immutable/Vector/api"
137
+ */
138
+ export declare function every<A, B extends A>(refinement: Refinement<A, B>): (self: Vector<A>) => self is Vector<B>;
139
+ export declare function every<A>(predicate: Predicate<A>): (self: Vector<A>) => boolean;
148
140
  /**
149
141
  * Returns the _first_ element for which the predicate returns `true`.
150
142
  * If no such element is found the function returns `undefined`.
@@ -187,34 +179,22 @@ export declare function findLastIndex<A>(predicate: Predicate<A>): (self: Vector
187
179
  * @tsplus location "@fncts/base/collection/immutable/Vector/api"
188
180
  */
189
181
  export declare function flatten<A>(self: Vector<Vector<A>>): Vector<A>;
190
- /**
191
- * Converts an array, an array-like, or an iterable into a Vector.
192
- * @complexity O(n)
193
- * @tsplus static fncts.VectorOps from
194
- * @tsplus location "@fncts/base/collection/immutable/Vector/api"
195
- */
196
- export declare function from<A>(sequence: A[] | ArrayLike<A> | Iterable<A>): Vector<A>;
197
182
  /**
198
183
  * Folds a function over a Vector. Left-associative.
199
184
  * @tsplus pipeable fncts.Vector foldLeft
200
185
  * @tsplus location "@fncts/base/collection/immutable/Vector/api"
201
186
  */
202
187
  export declare function foldLeft<A, B>(initial: B, f: (acc: B, a: A) => B): (self: Vector<A>) => B;
203
- /**
204
- * @tsplus pipeable fncts.Vector foldLeftWithIndex
205
- * @tsplus location "@fncts/base/collection/immutable/Vector/api"
206
- */
207
- export declare function foldLeftWithIndex<A, B>(b: B, f: (i: number, b: B, a: A) => B): (self: Vector<A>) => B;
208
188
  /**
209
189
  * @tsplus pipeable fncts.Vector foldLeftWhile
210
190
  * @tsplus location "@fncts/base/collection/immutable/Vector/api"
211
191
  */
212
192
  export declare function foldLeftWhile<A, B>(b: B, cont: Predicate<B>, f: (i: number, b: B, a: A) => B): (self: Vector<A>) => B;
213
193
  /**
214
- * @tsplus pipeable fncts.Vector foldRightWhile
194
+ * @tsplus pipeable fncts.Vector foldLeftWithIndex
215
195
  * @tsplus location "@fncts/base/collection/immutable/Vector/api"
216
196
  */
217
- export declare function foldRightWhile<A, B>(b: B, cont: Predicate<B>, f: (i: number, a: A, b: B) => B): (self: Vector<A>) => B;
197
+ export declare function foldLeftWithIndex<A, B>(b: B, f: (i: number, b: B, a: A) => B): (self: Vector<A>) => B;
218
198
  /**
219
199
  * @tsplus pipeable fncts.Vector foldMap
220
200
  * @tsplus location "@fncts/base/collection/immutable/Vector/api"
@@ -232,6 +212,11 @@ export declare function foldMapWithIndex<A, M>(f: (i: number, a: A) => M, /** @t
232
212
  * @tsplus location "@fncts/base/collection/immutable/Vector/api"
233
213
  */
234
214
  export declare function foldRight<A, B>(initial: B, f: (value: A, acc: B) => B): (self: Vector<A>) => B;
215
+ /**
216
+ * @tsplus pipeable fncts.Vector foldRightWhile
217
+ * @tsplus location "@fncts/base/collection/immutable/Vector/api"
218
+ */
219
+ export declare function foldRightWhile<A, B>(b: B, cont: Predicate<B>, f: (i: number, a: A, b: B) => B): (self: Vector<A>) => B;
235
220
  /**
236
221
  * Folds a function over a Vector. Right-associative.
237
222
  * @complexity O(n)
@@ -257,6 +242,13 @@ export declare function forEach<A>(f: (a: A) => void): (self: Vector<A>) => void
257
242
  * @tsplus location "@fncts/base/collection/immutable/Vector/api"
258
243
  */
259
244
  export declare function forEachWithIndex<A>(f: (i: number, a: A) => void): (self: Vector<A>) => void;
245
+ /**
246
+ * Converts an array, an array-like, or an iterable into a Vector.
247
+ * @complexity O(n)
248
+ * @tsplus static fncts.VectorOps from
249
+ * @tsplus location "@fncts/base/collection/immutable/Vector/api"
250
+ */
251
+ export declare function from<A>(sequence: A[] | ArrayLike<A> | Iterable<A>): Vector<A>;
260
252
  /**
261
253
  * Gets the nth element of the Vector. If `n` is out of bounds
262
254
  * `undefined` is returned.
@@ -296,13 +288,6 @@ export declare function includes<A>(element: A): (self: Vector<A>) => boolean;
296
288
  * @tsplus location "@fncts/base/collection/immutable/Vector/api"
297
289
  */
298
290
  export declare function indexOf<A>(element: A): (self: Vector<A>) => number;
299
- /**
300
- * Inserts the given element at the given index in the Vector.
301
- * @complexity O(log(n))
302
- * @tsplus pipeable fncts.Vector insertAt
303
- * @tsplus location "@fncts/base/collection/immutable/Vector/api"
304
- */
305
- export declare function insertAt<A>(index: number, element: A): (self: Vector<A>) => Vector<A>;
306
291
  /**
307
292
  * Inserts the given Vector of elements at the given index in the Vector.
308
293
  * @complexity `O(log(n))`
@@ -310,6 +295,13 @@ export declare function insertAt<A>(index: number, element: A): (self: Vector<A>
310
295
  * @tsplus location "@fncts/base/collection/immutable/Vector/api"
311
296
  */
312
297
  export declare function insertAllAt<A>(index: number, elements: Vector<A>): (self: Vector<A>) => Vector<A>;
298
+ /**
299
+ * Inserts the given element at the given index in the Vector.
300
+ * @complexity O(log(n))
301
+ * @tsplus pipeable fncts.Vector insertAt
302
+ * @tsplus location "@fncts/base/collection/immutable/Vector/api"
303
+ */
304
+ export declare function insertAt<A>(index: number, element: A): (self: Vector<A>) => Vector<A>;
313
305
  /**
314
306
  * Inserts a separator between each element in a Vector.
315
307
  * @tsplus pipeable fncts.Vector intersperse
@@ -355,11 +347,6 @@ export declare function lastIndexOf<A>(element: A): (self: Vector<A>) => number;
355
347
  * @tsplus location "@fncts/base/collection/immutable/Vector/api"
356
348
  */
357
349
  export declare function makeBy<A>(n: number, f: (index: number) => A): Vector<A>;
358
- /**
359
- * @tsplus pipeable fncts.Vector mapAccum
360
- * @tsplus location "@fncts/base/collection/immutable/Vector/api"
361
- */
362
- export declare function mapAccum<A, S, B>(s: S, f: (s: S, a: A) => readonly [B, S]): (self: Vector<A>) => readonly [Vector<B>, S];
363
350
  /**
364
351
  * Applies a function to each element in the given Vector and returns a
365
352
  * new Vector of the values that the function return.
@@ -368,6 +355,11 @@ export declare function mapAccum<A, S, B>(s: S, f: (s: S, a: A) => readonly [B,
368
355
  * @tsplus location "@fncts/base/collection/immutable/Vector/api"
369
356
  */
370
357
  export declare function map<A, B>(f: (a: A) => B): (self: Vector<A>) => Vector<B>;
358
+ /**
359
+ * @tsplus pipeable fncts.Vector mapAccum
360
+ * @tsplus location "@fncts/base/collection/immutable/Vector/api"
361
+ */
362
+ export declare function mapAccum<A, S, B>(s: S, f: (s: S, a: A) => readonly [B, S]): (self: Vector<A>) => readonly [Vector<B>, S];
371
363
  /**
372
364
  * Applies a function to each element in the given Vector and returns a
373
365
  * new Vector of the values that the function return.
@@ -376,11 +368,6 @@ export declare function map<A, B>(f: (a: A) => B): (self: Vector<A>) => Vector<B
376
368
  * @tsplus location "@fncts/base/collection/immutable/Vector/api"
377
369
  */
378
370
  export declare function mapWithIndex<A, B>(f: (i: number, a: A) => B): (self: Vector<A>) => Vector<B>;
379
- /**
380
- * @tsplus getter fncts.Vector mutableClone
381
- * @tsplus location "@fncts/base/collection/immutable/Vector/api"
382
- */
383
- export declare function mutableClone<A>(self: Vector<A>): MutableVector<A>;
384
371
  /**
385
372
  * Returns a Vector that has the entry specified by the index replaced with
386
373
  * the value returned by applying the function to the value.
@@ -392,6 +379,11 @@ export declare function mutableClone<A>(self: Vector<A>): MutableVector<A>;
392
379
  * @tsplus location "@fncts/base/collection/immutable/Vector/api"
393
380
  */
394
381
  export declare function modifyAt<A>(i: number, f: (a: A) => A): (self: Vector<A>) => Vector<A>;
382
+ /**
383
+ * @tsplus getter fncts.Vector mutableClone
384
+ * @tsplus location "@fncts/base/collection/immutable/Vector/api"
385
+ */
386
+ export declare function mutableClone<A>(self: Vector<A>): MutableVector<A>;
395
387
  /**
396
388
  * Returns `true` if and only if the predicate function returns
397
389
  * `false` for every element in the given Vector.
@@ -479,6 +471,14 @@ export declare function single<A>(a: A): Vector<A>;
479
471
  * @tsplus location "@fncts/base/collection/immutable/Vector/api"
480
472
  */
481
473
  export declare function slice(from: number, to: number): <A>(self: Vector<A>) => Vector<A>;
474
+ /**
475
+ * Returns true if and only if there exists an element in the Vector for
476
+ * which the predicate returns true.
477
+ * @complexity O(n)
478
+ * @tsplus pipeable fncts.Vector some
479
+ * @tsplus location "@fncts/base/collection/immutable/Vector/api"
480
+ */
481
+ export declare function some<A>(predicate: Predicate<A>): (self: Vector<A>) => boolean;
482
482
  /**
483
483
  * @tsplus pipeable fncts.Vector sort
484
484
  * @tsplus location "@fncts/base/collection/immutable/Vector/api"
@@ -528,15 +528,6 @@ export declare function tail<A>(self: Vector<A>): Vector<A>;
528
528
  * @tsplus location "@fncts/base/collection/immutable/Vector/api"
529
529
  */
530
530
  export declare function take(n: number): <A>(self: Vector<A>) => Vector<A>;
531
- /**
532
- * Takes the first elements in the Vector for which the predicate returns
533
- * `true`.
534
- * @complexity `O(k + log(n))` where `k` is the number of elements satisfying
535
- the predicate.
536
- * @tsplus pipeable fncts.Vector takeWhile
537
- * @tsplus location "@fncts/base/collection/immutable/Vector/api"
538
- */
539
- export declare function takeWhile<A>(predicate: Predicate<A>): (self: Vector<A>) => Vector<A>;
540
531
  /**
541
532
  * Takes the last `n` elements from a Vector and returns them in a new
542
533
  * Vector.
@@ -554,6 +545,15 @@ satisfying the predicate.
554
545
  * @tsplus location "@fncts/base/collection/immutable/Vector/api"
555
546
  */
556
547
  export declare function takeLastWhile<A>(predicate: Predicate<A>): (self: Vector<A>) => Vector<A>;
548
+ /**
549
+ * Takes the first elements in the Vector for which the predicate returns
550
+ * `true`.
551
+ * @complexity `O(k + log(n))` where `k` is the number of elements satisfying
552
+ the predicate.
553
+ * @tsplus pipeable fncts.Vector takeWhile
554
+ * @tsplus location "@fncts/base/collection/immutable/Vector/api"
555
+ */
556
+ export declare function takeWhile<A>(predicate: Predicate<A>): (self: Vector<A>) => Vector<A>;
557
557
  /**
558
558
  * Converts a Vector into an array.
559
559
  * @complexity `O(n)`
@@ -569,17 +569,22 @@ export declare function toArray<A>(self: Vector<A>): ReadonlyArray<A>;
569
569
  */
570
570
  export declare function toList<A>(self: Vector<A>): List<A>;
571
571
  /**
572
- * @tsplus getter fncts.Vector traverseWithIndex
572
+ * @tsplus getter fncts.Vector traverse
573
573
  * @tsplus location "@fncts/base/collection/immutable/Vector/api"
574
574
  */
575
- export declare function _traverseWithIndex<A>(self: Vector<A>): <G extends HKT, GC = HKT.None>(G: P.Applicative<G, GC>) => <K, Q, W, X, I, S, R, E, B>(f: (i: number, a: A) => HKT.Kind<G, GC, K, Q, W, X, I, S, R, E, B>) => HKT.Kind<G, GC, K, Q, W, X, I, S, R, E, Vector<B>>;
575
+ export declare function traverse_<A>(self: Vector<A>): <G extends HKT, GC = HKT.None>(G: P.Applicative<G, GC>) => <K, Q, W, X, I, S, R, E, B>(f: (a: A) => HKT.Kind<G, GC, K, Q, W, X, I, S, R, E, B>) => HKT.Kind<G, GC, K, Q, W, X, I, S, R, E, Vector<B>>;
576
576
  /**
577
- * @tsplus getter fncts.Vector traverse
577
+ * @tsplus getter fncts.Vector traverseWithIndex
578
578
  * @tsplus location "@fncts/base/collection/immutable/Vector/api"
579
579
  */
580
- export declare function _traverse<A>(self: Vector<A>): <G extends HKT, GC = HKT.None>(G: P.Applicative<G, GC>) => <K, Q, W, X, I, S, R, E, B>(f: (a: A) => HKT.Kind<G, GC, K, Q, W, X, I, S, R, E, B>) => HKT.Kind<G, GC, K, Q, W, X, I, S, R, E, Vector<B>>;
580
+ export declare function traverseWithIndex_<A>(self: Vector<A>): <G extends HKT, GC = HKT.None>(G: P.Applicative<G, GC>) => <K, Q, W, X, I, S, R, E, B>(f: (i: number, a: A) => HKT.Kind<G, GC, K, Q, W, X, I, S, R, E, B>) => HKT.Kind<G, GC, K, Q, W, X, I, S, R, E, Vector<B>>;
581
581
  export declare const traverseWithIndex: P.TraversableWithIndex<VectorF>["traverseWithIndex"];
582
582
  export declare const traverse: Traversable<VectorF>["traverse"];
583
+ /**
584
+ * @tsplus static fncts.VectorOps unfold
585
+ * @tsplus location "@fncts/base/collection/immutable/Vector/api"
586
+ */
587
+ export declare function unfold<A, B>(b: B, f: (b: B) => Maybe<readonly [A, B]>): Vector<A>;
583
588
  /**
584
589
  * Returns a new Vector without repeated elements by using the given
585
590
  * Eq instance to determine when elements are equal
@@ -588,11 +593,6 @@ export declare const traverse: Traversable<VectorF>["traverse"];
588
593
  * @tsplus location "@fncts/base/collection/immutable/Vector/api"
589
594
  */
590
595
  export declare function uniq<A>(E: Eq<A>): (self: Vector<A>) => import("@fncts/base/collection/immutable/Vector/definition").Vector<A>;
591
- /**
592
- * @tsplus static fncts.VectorOps unfold
593
- * @tsplus location "@fncts/base/collection/immutable/Vector/api"
594
- */
595
- export declare function unfold<A, B>(b: B, f: (b: B) => Maybe<readonly [A, B]>): Vector<A>;
596
596
  /**
597
597
  * Returns the _first_ element for which the predicate returns `true`.
598
598
  * If no such element is found the function returns `undefined`.
@@ -1,10 +1,10 @@
1
1
  export type {} from "./immutable/Vector.js";
2
2
  export type {} from "./immutable/SortedMap.js";
3
3
  export type {} from "./immutable/RoseTree.js";
4
+ export type {} from "./immutable/ReadonlyNonEmptyArray.js";
5
+ export type {} from "./immutable/ReadonlyArray.js";
4
6
  export type {} from "./immutable/Queue.js";
5
7
  export type {} from "./immutable/List.js";
6
- export type {} from "./immutable/ImmutableNonEmptyArray.js";
7
- export type {} from "./immutable/ImmutableArray.js";
8
8
  export type {} from "./immutable/HashSet.js";
9
9
  export type {} from "./immutable/HashMap.js";
10
10
  export type {} from "./immutable/Dictionary.js";
package/collection.d.ts CHANGED
@@ -3,3 +3,4 @@ export type {} from "./collection/mutable.js";
3
3
  export type {} from "./collection/immutable.js";
4
4
  export type {} from "./collection/compat.js";
5
5
  export type {} from "./collection/Iterable.js";
6
+ export type {} from "./collection/AsyncIterable.js";
@@ -1,6 +1,13 @@
1
1
  import { Eval } from "@fncts/base/control/Eval/definition";
2
+ import { Lazy } from "@fncts/base/data/function/definition";
3
+ import { Conc } from "@fncts/base/collection/immutable/Conc";
2
4
  import { Zipped } from "@fncts/base/data/Zipped";
3
5
  import type { _A } from "@fncts/base/types";
6
+ /**
7
+ * @tsplus pipeable fncts.control.Eval ap
8
+ * @tsplus location "@fncts/base/control/Eval/api"
9
+ */
10
+ export declare function ap<A>(fa: Eval<A>): <B>(self: Eval<(a: A) => B>) => Eval<B>;
4
11
  /**
5
12
  * @tsplus pipeable fncts.control.Eval and
6
13
  * @tsplus location "@fncts/base/control/Eval/api"
@@ -11,6 +18,16 @@ export declare function and(that: Eval<boolean>): (self: Eval<boolean>) => Eval<
11
18
  * @tsplus location "@fncts/base/control/Eval/api"
12
19
  */
13
20
  export declare function flatMap<A, B>(f: (a: A) => Eval<B>): (self: Eval<A>) => Eval<B>;
21
+ /**
22
+ * @tsplus static fncts.control.EvalOps whileLoop
23
+ * @tsplus location "@fncts/base/control/Eval/api"
24
+ */
25
+ export declare function whileLoop<A>(check: Lazy<boolean>, body: Lazy<Eval<A>>, process: (a: A) => void): Eval<void>;
26
+ /**
27
+ * @tsplus static fncts.control.EvalOps forEach
28
+ * @tsplus location "@fncts/base/control/Eval/api"
29
+ */
30
+ export declare function forEach<A, B>(as: Iterable<A>, f: (a: A) => Eval<B>): Eval<Conc<B>>;
14
31
  /**
15
32
  * @tsplus getter fncts.control.Eval flatten
16
33
  * @tsplus location "@fncts/base/control/Eval/api"
@@ -31,16 +48,21 @@ export declare function zipWith<A, B, C>(fb: Eval<B>, f: (a: A, b: B) => C): (se
31
48
  * @tsplus location "@fncts/base/control/Eval/api"
32
49
  */
33
50
  export declare function zip<B>(fb: Eval<B>): <A>(self: Eval<A>) => Eval<Zipped.Make<A, B>>;
51
+ export declare function foreachWithIndex<A, B>(as: Iterable<A>, f: (index: number, a: A) => Eval<B>): Eval<ReadonlyArray<B>>;
34
52
  /**
35
- * @tsplus pipeable fncts.control.Eval ap
53
+ * @tsplus static fncts.control.EvalOps foreach
36
54
  * @tsplus location "@fncts/base/control/Eval/api"
37
55
  */
38
- export declare function ap<A>(fa: Eval<A>): <B>(self: Eval<(a: A) => B>) => Eval<B>;
56
+ export declare function foreach<A, B>(as: Iterable<A>, f: (a: A) => Eval<B>): Eval<ReadonlyArray<B>>;
39
57
  /**
40
- * @tsplus static fncts.control.EvalOps sequenceT
58
+ * @tsplus static fncts.control.EvalOps all
41
59
  * @tsplus location "@fncts/base/control/Eval/api"
42
60
  */
43
- export declare function sequenceT<A extends Array<Eval<any>>>(...computations: A): Eval<{
61
+ export declare function all<A extends ReadonlyArray<Eval<any>>>(...computations: A): Eval<{
62
+ [K in keyof A]: _A<A[K]>;
63
+ }>;
64
+ export declare function all<A extends Iterable<Eval<any>>>(computations: A): [A] extends [Iterable<infer A>] ? Eval<ReadonlyArray<_A<A>>> : never;
65
+ export declare function all<A extends Record<string, Eval<any>>>(computations: A): Eval<{
44
66
  [K in keyof A]: _A<A[K]>;
45
67
  }>;
46
68
  declare class GenEval<A> {
@@ -56,4 +78,4 @@ declare class GenEval<A> {
56
78
  export declare function gen<T extends GenEval<any>, A>(f: (i: {
57
79
  <A>(_: Eval<A>): GenEval<A>;
58
80
  }) => Generator<T, A, any>): Eval<A>;
59
- export * from "./api/sequenceArray.js";
81
+ export {};
@@ -16,6 +16,11 @@ export declare function defer<A>(make: Lazy<Eval<A>>): Eval<A>;
16
16
  * @tsplus location "@fncts/base/control/Eval/constructors"
17
17
  */
18
18
  export declare function always<A>(make: Lazy<A>): Eval<A>;
19
+ /**
20
+ * @tsplus static fncts.control.EvalOps unit
21
+ * @tsplus location "@fncts/base/control/Eval/constructors"
22
+ */
23
+ export declare const unit: Eval<void>;
19
24
  /**
20
25
  * @tsplus static fncts.control.EvalOps later
21
26
  * @tsplus location "@fncts/base/control/Eval/constructors"
@@ -1,4 +1,3 @@
1
- import { ImmutableArray } from "@fncts/base/collection/immutable/ImmutableArray/definition";
2
1
  import { Hashable } from "@fncts/base/data/Hashable";
3
2
  import { Equatable } from "@fncts/base/data/Equatable";
4
3
  import type { Equals } from "@fncts/typelevel/Any";
@@ -6,13 +5,13 @@ import type { True } from "@fncts/typelevel/Boolean";
6
5
  export declare const CaseClassTypeId: unique symbol;
7
6
  export type CaseClassTypeId = typeof CaseClassTypeId;
8
7
  export interface CaseArgs {
9
- readonly [CaseClassTypeId]: ImmutableArray<string>;
8
+ readonly [CaseClassTypeId]: ReadonlyArray<string>;
10
9
  }
11
10
  export interface Copy<T> {
12
11
  copy(args: Equals<T, {}> extends 1 ? void : Partial<T>): this;
13
12
  }
14
13
  export interface CaseConstructor {
15
- [CaseClassTypeId]: ImmutableArray<string>;
14
+ [CaseClassTypeId]: ReadonlyArray<string>;
16
15
  new <T>(args: Equals<T, {}> extends True ? void : T): T & Copy<T> & CaseArgs;
17
16
  }
18
17
  export declare function isCaseClass(u: unknown): u is CaseConstructor;
@@ -1,12 +1,12 @@
1
1
  import { Const } from "./definition.js";
2
- /**
3
- * @tsplus pipeable fncts.Const map
4
- * @tsplus location "@fncts/base/data/Const/api"
5
- */
6
- export declare function map<A, B>(_f: (a: A) => B): <E>(self: Const<E, A>) => Const<E, B>;
7
2
  /**
8
3
  * @tsplus static fncts.ConstOps make
9
4
  * @tsplus static fncts.ConstOps __call
10
5
  * @tsplus location "@fncts/base/data/Const/api"
11
6
  */
12
7
  export declare function makeConst<E, A = never>(e: E): Const<E, A>;
8
+ /**
9
+ * @tsplus pipeable fncts.Const map
10
+ * @tsplus location "@fncts/base/data/Const/api"
11
+ */
12
+ export declare function map<A, B>(_f: (a: A) => B): <E>(self: Const<E, A>) => Const<E, B>;
@@ -2,12 +2,12 @@ import { HKT } from "@fncts/typelevel/HKT";
2
2
  import type * as P from "../../typeclass.js";
3
3
  import type { ConstF } from "@fncts/base/data/Const/definition";
4
4
  /**
5
- * @tsplus static fncts.ConstOps getApply
5
+ * @tsplus static fncts.ConstOps getApplicative
6
6
  * @tsplus location "@fncts/base/data/Const/instances"
7
7
  */
8
- export declare function getApply<E>(S: P.Semigroup<E>): P.Apply<ConstF, import("@fncts/typelevel/HKT.js").HKT.Fix<"E", E>>;
8
+ export declare function getApplicative<E>(M: P.Monoid<E>): P.Applicative<ConstF, HKT.Fix<"E", E>>;
9
9
  /**
10
- * @tsplus static fncts.ConstOps getApplicative
10
+ * @tsplus static fncts.ConstOps getApply
11
11
  * @tsplus location "@fncts/base/data/Const/instances"
12
12
  */
13
- export declare function getApplicative<E>(M: P.Monoid<E>): P.Applicative<ConstF, HKT.Fix<"E", E>>;
13
+ export declare function getApply<E>(S: P.Semigroup<E>): P.Apply<ConstF, import("@fncts/typelevel/HKT.js").HKT.Fix<"E", E>>;