effect 4.0.0-beta.69 → 4.0.0-beta.70

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 (1269) hide show
  1. package/dist/Array.d.ts +454 -0
  2. package/dist/Array.d.ts.map +1 -1
  3. package/dist/Array.js +152 -0
  4. package/dist/Array.js.map +1 -1
  5. package/dist/BigDecimal.d.ts +87 -33
  6. package/dist/BigDecimal.d.ts.map +1 -1
  7. package/dist/BigDecimal.js +37 -11
  8. package/dist/BigDecimal.js.map +1 -1
  9. package/dist/BigInt.d.ts +71 -14
  10. package/dist/BigInt.d.ts.map +1 -1
  11. package/dist/BigInt.js +35 -10
  12. package/dist/BigInt.js.map +1 -1
  13. package/dist/Boolean.d.ts +4 -0
  14. package/dist/Boolean.d.ts.map +1 -1
  15. package/dist/Boolean.js +4 -0
  16. package/dist/Boolean.js.map +1 -1
  17. package/dist/Brand.d.ts +16 -11
  18. package/dist/Brand.d.ts.map +1 -1
  19. package/dist/Brand.js +16 -11
  20. package/dist/Brand.js.map +1 -1
  21. package/dist/Cache.d.ts +13 -1
  22. package/dist/Cache.d.ts.map +1 -1
  23. package/dist/Cache.js +8 -0
  24. package/dist/Cache.js.map +1 -1
  25. package/dist/Cause.d.ts +95 -3
  26. package/dist/Cause.d.ts.map +1 -1
  27. package/dist/Cause.js +56 -2
  28. package/dist/Cause.js.map +1 -1
  29. package/dist/Channel.d.ts +312 -0
  30. package/dist/Channel.d.ts.map +1 -1
  31. package/dist/Channel.js +126 -0
  32. package/dist/Channel.js.map +1 -1
  33. package/dist/ChannelSchema.d.ts +20 -0
  34. package/dist/ChannelSchema.d.ts.map +1 -1
  35. package/dist/ChannelSchema.js +12 -0
  36. package/dist/ChannelSchema.js.map +1 -1
  37. package/dist/Chunk.d.ts +59 -22
  38. package/dist/Chunk.d.ts.map +1 -1
  39. package/dist/Chunk.js +29 -10
  40. package/dist/Chunk.js.map +1 -1
  41. package/dist/Combiner.d.ts +75 -71
  42. package/dist/Combiner.d.ts.map +1 -1
  43. package/dist/Combiner.js +67 -62
  44. package/dist/Combiner.js.map +1 -1
  45. package/dist/Config.d.ts +167 -46
  46. package/dist/Config.d.ts.map +1 -1
  47. package/dist/Config.js +108 -28
  48. package/dist/Config.js.map +1 -1
  49. package/dist/ConfigProvider.d.ts +235 -158
  50. package/dist/ConfigProvider.d.ts.map +1 -1
  51. package/dist/ConfigProvider.js +144 -93
  52. package/dist/ConfigProvider.js.map +1 -1
  53. package/dist/Console.d.ts +21 -79
  54. package/dist/Console.d.ts.map +1 -1
  55. package/dist/Console.js +20 -75
  56. package/dist/Console.js.map +1 -1
  57. package/dist/Context.d.ts +4 -4
  58. package/dist/Context.js +2 -2
  59. package/dist/Cron.d.ts +42 -16
  60. package/dist/Cron.d.ts.map +1 -1
  61. package/dist/Cron.js +33 -13
  62. package/dist/Cron.js.map +1 -1
  63. package/dist/Crypto.d.ts +6 -0
  64. package/dist/Crypto.d.ts.map +1 -1
  65. package/dist/Crypto.js.map +1 -1
  66. package/dist/Data.d.ts +132 -70
  67. package/dist/Data.d.ts.map +1 -1
  68. package/dist/Data.js +44 -29
  69. package/dist/Data.js.map +1 -1
  70. package/dist/DateTime.d.ts +227 -14
  71. package/dist/DateTime.d.ts.map +1 -1
  72. package/dist/DateTime.js +115 -6
  73. package/dist/DateTime.js.map +1 -1
  74. package/dist/Deferred.d.ts +94 -27
  75. package/dist/Deferred.d.ts.map +1 -1
  76. package/dist/Deferred.js +33 -8
  77. package/dist/Deferred.js.map +1 -1
  78. package/dist/Differ.d.ts +2 -0
  79. package/dist/Differ.d.ts.map +1 -1
  80. package/dist/Duration.d.ts +64 -6
  81. package/dist/Duration.d.ts.map +1 -1
  82. package/dist/Duration.js +26 -2
  83. package/dist/Duration.js.map +1 -1
  84. package/dist/Effect.d.ts +907 -603
  85. package/dist/Effect.d.ts.map +1 -1
  86. package/dist/Effect.js +360 -233
  87. package/dist/Effect.js.map +1 -1
  88. package/dist/Effectable.d.ts +3 -1
  89. package/dist/Effectable.d.ts.map +1 -1
  90. package/dist/Effectable.js +3 -1
  91. package/dist/Effectable.js.map +1 -1
  92. package/dist/Encoding.d.ts +16 -0
  93. package/dist/Encoding.d.ts.map +1 -1
  94. package/dist/Encoding.js +16 -0
  95. package/dist/Encoding.js.map +1 -1
  96. package/dist/Equal.d.ts +52 -40
  97. package/dist/Equal.d.ts.map +1 -1
  98. package/dist/Equal.js +32 -26
  99. package/dist/Equal.js.map +1 -1
  100. package/dist/Equivalence.d.ts +190 -153
  101. package/dist/Equivalence.d.ts.map +1 -1
  102. package/dist/Equivalence.js +129 -104
  103. package/dist/Equivalence.js.map +1 -1
  104. package/dist/ErrorReporter.d.ts +35 -14
  105. package/dist/ErrorReporter.d.ts.map +1 -1
  106. package/dist/ErrorReporter.js +18 -6
  107. package/dist/ErrorReporter.js.map +1 -1
  108. package/dist/ExecutionPlan.d.ts +10 -3
  109. package/dist/ExecutionPlan.d.ts.map +1 -1
  110. package/dist/ExecutionPlan.js +4 -3
  111. package/dist/ExecutionPlan.js.map +1 -1
  112. package/dist/Exit.d.ts +212 -6
  113. package/dist/Exit.d.ts.map +1 -1
  114. package/dist/Exit.js +139 -2
  115. package/dist/Exit.js.map +1 -1
  116. package/dist/Fiber.d.ts +8 -0
  117. package/dist/Fiber.d.ts.map +1 -1
  118. package/dist/Fiber.js +4 -0
  119. package/dist/Fiber.js.map +1 -1
  120. package/dist/FiberHandle.d.ts +46 -23
  121. package/dist/FiberHandle.d.ts.map +1 -1
  122. package/dist/FiberHandle.js +27 -11
  123. package/dist/FiberHandle.js.map +1 -1
  124. package/dist/FiberMap.d.ts +43 -4
  125. package/dist/FiberMap.d.ts.map +1 -1
  126. package/dist/FiberMap.js +27 -4
  127. package/dist/FiberMap.js.map +1 -1
  128. package/dist/FiberSet.d.ts +21 -6
  129. package/dist/FiberSet.d.ts.map +1 -1
  130. package/dist/FiberSet.js +17 -6
  131. package/dist/FiberSet.js.map +1 -1
  132. package/dist/FileSystem.d.ts +64 -0
  133. package/dist/FileSystem.d.ts.map +1 -1
  134. package/dist/FileSystem.js +26 -0
  135. package/dist/FileSystem.js.map +1 -1
  136. package/dist/Filter.d.ts +53 -21
  137. package/dist/Filter.d.ts.map +1 -1
  138. package/dist/Filter.js +20 -9
  139. package/dist/Filter.js.map +1 -1
  140. package/dist/Formatter.d.ts +21 -22
  141. package/dist/Formatter.d.ts.map +1 -1
  142. package/dist/Formatter.js +12 -12
  143. package/dist/Formatter.js.map +1 -1
  144. package/dist/Function.d.ts +67 -75
  145. package/dist/Function.d.ts.map +1 -1
  146. package/dist/Function.js +29 -19
  147. package/dist/Function.js.map +1 -1
  148. package/dist/Graph.d.ts +51 -13
  149. package/dist/Graph.d.ts.map +1 -1
  150. package/dist/Graph.js +19 -3
  151. package/dist/Graph.js.map +1 -1
  152. package/dist/HKT.d.ts +22 -21
  153. package/dist/HKT.d.ts.map +1 -1
  154. package/dist/Hash.d.ts +33 -10
  155. package/dist/Hash.d.ts.map +1 -1
  156. package/dist/Hash.js +27 -10
  157. package/dist/Hash.js.map +1 -1
  158. package/dist/HashMap.d.ts +50 -9
  159. package/dist/HashMap.d.ts.map +1 -1
  160. package/dist/HashMap.js +17 -3
  161. package/dist/HashMap.js.map +1 -1
  162. package/dist/HashRing.d.ts +4 -0
  163. package/dist/HashRing.d.ts.map +1 -1
  164. package/dist/HashRing.js +2 -0
  165. package/dist/HashRing.js.map +1 -1
  166. package/dist/HashSet.d.ts +2 -0
  167. package/dist/HashSet.d.ts.map +1 -1
  168. package/dist/HashSet.js.map +1 -1
  169. package/dist/Inspectable.d.ts +15 -2
  170. package/dist/Inspectable.d.ts.map +1 -1
  171. package/dist/Inspectable.js +11 -2
  172. package/dist/Inspectable.js.map +1 -1
  173. package/dist/Iterable.d.ts +104 -22
  174. package/dist/Iterable.d.ts.map +1 -1
  175. package/dist/Iterable.js +46 -12
  176. package/dist/Iterable.js.map +1 -1
  177. package/dist/JsonPatch.d.ts +61 -80
  178. package/dist/JsonPatch.d.ts.map +1 -1
  179. package/dist/JsonPatch.js +35 -42
  180. package/dist/JsonPatch.js.map +1 -1
  181. package/dist/JsonPointer.d.ts +16 -20
  182. package/dist/JsonPointer.d.ts.map +1 -1
  183. package/dist/JsonPointer.js +16 -20
  184. package/dist/JsonPointer.js.map +1 -1
  185. package/dist/JsonSchema.d.ts +123 -73
  186. package/dist/JsonSchema.d.ts.map +1 -1
  187. package/dist/JsonSchema.js +95 -53
  188. package/dist/JsonSchema.js.map +1 -1
  189. package/dist/Latch.d.ts +28 -2
  190. package/dist/Latch.d.ts.map +1 -1
  191. package/dist/Latch.js +22 -2
  192. package/dist/Latch.js.map +1 -1
  193. package/dist/Layer.d.ts +781 -335
  194. package/dist/Layer.d.ts.map +1 -1
  195. package/dist/Layer.js +324 -129
  196. package/dist/Layer.js.map +1 -1
  197. package/dist/LogLevel.d.ts +86 -13
  198. package/dist/LogLevel.d.ts.map +1 -1
  199. package/dist/LogLevel.js +30 -4
  200. package/dist/LogLevel.js.map +1 -1
  201. package/dist/Logger.d.ts +63 -51
  202. package/dist/Logger.d.ts.map +1 -1
  203. package/dist/Logger.js +61 -51
  204. package/dist/Logger.js.map +1 -1
  205. package/dist/ManagedRuntime.d.ts +12 -0
  206. package/dist/ManagedRuntime.d.ts.map +1 -1
  207. package/dist/ManagedRuntime.js +1 -0
  208. package/dist/ManagedRuntime.js.map +1 -1
  209. package/dist/Match.d.ts +83 -1
  210. package/dist/Match.d.ts.map +1 -1
  211. package/dist/Match.js +31 -1
  212. package/dist/Match.js.map +1 -1
  213. package/dist/Metric.d.ts +89 -12
  214. package/dist/Metric.d.ts.map +1 -1
  215. package/dist/Metric.js +53 -8
  216. package/dist/Metric.js.map +1 -1
  217. package/dist/MutableHashMap.d.ts +14 -0
  218. package/dist/MutableHashMap.d.ts.map +1 -1
  219. package/dist/MutableHashMap.js +4 -0
  220. package/dist/MutableHashMap.js.map +1 -1
  221. package/dist/MutableHashSet.d.ts +2 -0
  222. package/dist/MutableHashSet.d.ts.map +1 -1
  223. package/dist/MutableHashSet.js.map +1 -1
  224. package/dist/MutableList.d.ts +24 -6
  225. package/dist/MutableList.d.ts.map +1 -1
  226. package/dist/MutableList.js +22 -6
  227. package/dist/MutableList.js.map +1 -1
  228. package/dist/MutableRef.d.ts +2 -0
  229. package/dist/MutableRef.d.ts.map +1 -1
  230. package/dist/MutableRef.js.map +1 -1
  231. package/dist/Newtype.d.ts +69 -30
  232. package/dist/Newtype.d.ts.map +1 -1
  233. package/dist/Newtype.js +52 -22
  234. package/dist/Newtype.js.map +1 -1
  235. package/dist/NonEmptyIterable.d.ts +6 -0
  236. package/dist/NonEmptyIterable.d.ts.map +1 -1
  237. package/dist/NonEmptyIterable.js +2 -0
  238. package/dist/NonEmptyIterable.js.map +1 -1
  239. package/dist/Number.d.ts +16 -30
  240. package/dist/Number.d.ts.map +1 -1
  241. package/dist/Number.js +6 -12
  242. package/dist/Number.js.map +1 -1
  243. package/dist/Optic.d.ts +90 -40
  244. package/dist/Optic.d.ts.map +1 -1
  245. package/dist/Optic.js +48 -24
  246. package/dist/Optic.js.map +1 -1
  247. package/dist/Option.d.ts +121 -111
  248. package/dist/Option.d.ts.map +1 -1
  249. package/dist/Option.js +56 -54
  250. package/dist/Option.js.map +1 -1
  251. package/dist/Order.d.ts +169 -167
  252. package/dist/Order.d.ts.map +1 -1
  253. package/dist/Order.js +135 -135
  254. package/dist/Order.js.map +1 -1
  255. package/dist/Ordering.d.ts +4 -0
  256. package/dist/Ordering.d.ts.map +1 -1
  257. package/dist/Ordering.js +2 -0
  258. package/dist/Ordering.js.map +1 -1
  259. package/dist/PartitionedSemaphore.d.ts +7 -5
  260. package/dist/PartitionedSemaphore.d.ts.map +1 -1
  261. package/dist/PartitionedSemaphore.js +5 -5
  262. package/dist/PartitionedSemaphore.js.map +1 -1
  263. package/dist/Path.d.ts +8 -0
  264. package/dist/Path.d.ts.map +1 -1
  265. package/dist/Path.js +4 -0
  266. package/dist/Path.js.map +1 -1
  267. package/dist/Pipeable.d.ts +10 -0
  268. package/dist/Pipeable.d.ts.map +1 -1
  269. package/dist/Pipeable.js +8 -0
  270. package/dist/Pipeable.js.map +1 -1
  271. package/dist/PlatformError.d.ts +12 -0
  272. package/dist/PlatformError.d.ts.map +1 -1
  273. package/dist/PlatformError.js +10 -0
  274. package/dist/PlatformError.js.map +1 -1
  275. package/dist/Pool.d.ts +30 -16
  276. package/dist/Pool.d.ts.map +1 -1
  277. package/dist/Pool.js +30 -16
  278. package/dist/Pool.js.map +1 -1
  279. package/dist/Predicate.d.ts +520 -352
  280. package/dist/Predicate.d.ts.map +1 -1
  281. package/dist/Predicate.js +271 -184
  282. package/dist/Predicate.js.map +1 -1
  283. package/dist/PrimaryKey.d.ts +4 -0
  284. package/dist/PrimaryKey.d.ts.map +1 -1
  285. package/dist/PrimaryKey.js +2 -0
  286. package/dist/PrimaryKey.js.map +1 -1
  287. package/dist/PubSub.d.ts +22 -4
  288. package/dist/PubSub.d.ts.map +1 -1
  289. package/dist/PubSub.js +17 -3
  290. package/dist/PubSub.js.map +1 -1
  291. package/dist/Pull.d.ts +16 -0
  292. package/dist/Pull.d.ts.map +1 -1
  293. package/dist/Pull.js +10 -0
  294. package/dist/Pull.js.map +1 -1
  295. package/dist/Queue.d.ts +44 -0
  296. package/dist/Queue.d.ts.map +1 -1
  297. package/dist/Queue.js +28 -0
  298. package/dist/Queue.js.map +1 -1
  299. package/dist/Random.d.ts +25 -6
  300. package/dist/Random.d.ts.map +1 -1
  301. package/dist/Random.js +11 -2
  302. package/dist/Random.js.map +1 -1
  303. package/dist/RcMap.d.ts +10 -6
  304. package/dist/RcMap.d.ts.map +1 -1
  305. package/dist/RcMap.js +2 -2
  306. package/dist/RcMap.js.map +1 -1
  307. package/dist/RcRef.d.ts +3 -1
  308. package/dist/RcRef.d.ts.map +1 -1
  309. package/dist/RcRef.js.map +1 -1
  310. package/dist/Record.d.ts +24 -3
  311. package/dist/Record.d.ts.map +1 -1
  312. package/dist/Record.js +12 -3
  313. package/dist/Record.js.map +1 -1
  314. package/dist/Redactable.d.ts +54 -41
  315. package/dist/Redactable.d.ts.map +1 -1
  316. package/dist/Redactable.js +42 -32
  317. package/dist/Redactable.js.map +1 -1
  318. package/dist/Redacted.d.ts +10 -0
  319. package/dist/Redacted.d.ts.map +1 -1
  320. package/dist/Redacted.js +6 -0
  321. package/dist/Redacted.js.map +1 -1
  322. package/dist/Reducer.d.ts +20 -11
  323. package/dist/Reducer.d.ts.map +1 -1
  324. package/dist/Reducer.js +10 -6
  325. package/dist/Reducer.js.map +1 -1
  326. package/dist/Ref.d.ts +45 -24
  327. package/dist/Ref.d.ts.map +1 -1
  328. package/dist/Ref.js +41 -21
  329. package/dist/Ref.js.map +1 -1
  330. package/dist/References.d.ts +18 -1
  331. package/dist/References.d.ts.map +1 -1
  332. package/dist/References.js +17 -1
  333. package/dist/References.js.map +1 -1
  334. package/dist/Request.d.ts +3 -3
  335. package/dist/Request.js +2 -2
  336. package/dist/RequestResolver.d.ts +7 -17
  337. package/dist/RequestResolver.d.ts.map +1 -1
  338. package/dist/RequestResolver.js +3 -5
  339. package/dist/RequestResolver.js.map +1 -1
  340. package/dist/Resource.d.ts +2 -0
  341. package/dist/Resource.d.ts.map +1 -1
  342. package/dist/Resource.js +2 -0
  343. package/dist/Resource.js.map +1 -1
  344. package/dist/Result.d.ts +188 -6
  345. package/dist/Result.d.ts.map +1 -1
  346. package/dist/Result.js +84 -2
  347. package/dist/Result.js.map +1 -1
  348. package/dist/Runtime.d.ts +14 -11
  349. package/dist/Runtime.d.ts.map +1 -1
  350. package/dist/Runtime.js +11 -9
  351. package/dist/Runtime.js.map +1 -1
  352. package/dist/Schedule.d.ts +27 -3
  353. package/dist/Schedule.d.ts.map +1 -1
  354. package/dist/Schedule.js +21 -2
  355. package/dist/Schedule.js.map +1 -1
  356. package/dist/Scheduler.d.ts +22 -19
  357. package/dist/Scheduler.d.ts.map +1 -1
  358. package/dist/Scheduler.js +14 -12
  359. package/dist/Scheduler.js.map +1 -1
  360. package/dist/Schema.d.ts +547 -130
  361. package/dist/Schema.d.ts.map +1 -1
  362. package/dist/Schema.js +409 -121
  363. package/dist/Schema.js.map +1 -1
  364. package/dist/SchemaAST.d.ts +123 -65
  365. package/dist/SchemaAST.d.ts.map +1 -1
  366. package/dist/SchemaAST.js +90 -39
  367. package/dist/SchemaAST.js.map +1 -1
  368. package/dist/SchemaGetter.d.ts +269 -234
  369. package/dist/SchemaGetter.d.ts.map +1 -1
  370. package/dist/SchemaGetter.js +245 -215
  371. package/dist/SchemaGetter.js.map +1 -1
  372. package/dist/SchemaIssue.d.ts +48 -46
  373. package/dist/SchemaIssue.d.ts.map +1 -1
  374. package/dist/SchemaIssue.js +34 -34
  375. package/dist/SchemaIssue.js.map +1 -1
  376. package/dist/SchemaParser.d.ts +58 -0
  377. package/dist/SchemaParser.d.ts.map +1 -1
  378. package/dist/SchemaParser.js +58 -0
  379. package/dist/SchemaParser.js.map +1 -1
  380. package/dist/SchemaRepresentation.d.ts +198 -96
  381. package/dist/SchemaRepresentation.d.ts.map +1 -1
  382. package/dist/SchemaRepresentation.js +107 -45
  383. package/dist/SchemaRepresentation.js.map +1 -1
  384. package/dist/SchemaTransformation.d.ts +272 -203
  385. package/dist/SchemaTransformation.d.ts.map +1 -1
  386. package/dist/SchemaTransformation.js +249 -187
  387. package/dist/SchemaTransformation.js.map +1 -1
  388. package/dist/SchemaUtils.d.ts +2 -0
  389. package/dist/SchemaUtils.d.ts.map +1 -1
  390. package/dist/SchemaUtils.js +2 -0
  391. package/dist/SchemaUtils.js.map +1 -1
  392. package/dist/Scope.d.ts +18 -0
  393. package/dist/Scope.d.ts.map +1 -1
  394. package/dist/Scope.js +12 -0
  395. package/dist/Scope.js.map +1 -1
  396. package/dist/ScopedCache.d.ts +44 -0
  397. package/dist/ScopedCache.d.ts.map +1 -1
  398. package/dist/ScopedCache.js +18 -0
  399. package/dist/ScopedCache.js.map +1 -1
  400. package/dist/ScopedRef.d.ts +9 -3
  401. package/dist/ScopedRef.d.ts.map +1 -1
  402. package/dist/ScopedRef.js +3 -1
  403. package/dist/ScopedRef.js.map +1 -1
  404. package/dist/Semaphore.d.ts +6 -0
  405. package/dist/Semaphore.d.ts.map +1 -1
  406. package/dist/Semaphore.js +4 -0
  407. package/dist/Semaphore.js.map +1 -1
  408. package/dist/Sink.d.ts +108 -0
  409. package/dist/Sink.d.ts.map +1 -1
  410. package/dist/Sink.js +54 -0
  411. package/dist/Sink.js.map +1 -1
  412. package/dist/Stdio.d.ts +7 -3
  413. package/dist/Stdio.d.ts.map +1 -1
  414. package/dist/Stdio.js +2 -0
  415. package/dist/Stdio.js.map +1 -1
  416. package/dist/Stream.d.ts +416 -16
  417. package/dist/Stream.d.ts.map +1 -1
  418. package/dist/Stream.js +164 -8
  419. package/dist/Stream.js.map +1 -1
  420. package/dist/String.d.ts +14 -0
  421. package/dist/String.d.ts.map +1 -1
  422. package/dist/String.js +6 -0
  423. package/dist/String.js.map +1 -1
  424. package/dist/Struct.d.ts +371 -191
  425. package/dist/Struct.d.ts.map +1 -1
  426. package/dist/Struct.js +144 -77
  427. package/dist/Struct.js.map +1 -1
  428. package/dist/SubscriptionRef.d.ts +7 -1
  429. package/dist/SubscriptionRef.d.ts.map +1 -1
  430. package/dist/SubscriptionRef.js +5 -1
  431. package/dist/SubscriptionRef.js.map +1 -1
  432. package/dist/SynchronizedRef.d.ts +2 -0
  433. package/dist/SynchronizedRef.d.ts.map +1 -1
  434. package/dist/SynchronizedRef.js +2 -0
  435. package/dist/SynchronizedRef.js.map +1 -1
  436. package/dist/Tracer.d.ts +17 -27
  437. package/dist/Tracer.d.ts.map +1 -1
  438. package/dist/Tracer.js +8 -12
  439. package/dist/Tracer.js.map +1 -1
  440. package/dist/Trie.d.ts +23 -9
  441. package/dist/Trie.d.ts.map +1 -1
  442. package/dist/Trie.js +13 -3
  443. package/dist/Trie.js.map +1 -1
  444. package/dist/Tuple.d.ts +287 -144
  445. package/dist/Tuple.d.ts.map +1 -1
  446. package/dist/Tuple.js +135 -66
  447. package/dist/Tuple.js.map +1 -1
  448. package/dist/TxChunk.d.ts +182 -93
  449. package/dist/TxChunk.d.ts.map +1 -1
  450. package/dist/TxChunk.js +68 -35
  451. package/dist/TxChunk.js.map +1 -1
  452. package/dist/TxDeferred.d.ts +3 -4
  453. package/dist/TxDeferred.d.ts.map +1 -1
  454. package/dist/TxDeferred.js.map +1 -1
  455. package/dist/TxHashMap.d.ts +163 -86
  456. package/dist/TxHashMap.d.ts.map +1 -1
  457. package/dist/TxHashMap.js +57 -30
  458. package/dist/TxHashMap.js.map +1 -1
  459. package/dist/TxHashSet.d.ts +24 -27
  460. package/dist/TxHashSet.d.ts.map +1 -1
  461. package/dist/TxHashSet.js +9 -6
  462. package/dist/TxHashSet.js.map +1 -1
  463. package/dist/TxPriorityQueue.d.ts +2 -0
  464. package/dist/TxPriorityQueue.d.ts.map +1 -1
  465. package/dist/TxPriorityQueue.js.map +1 -1
  466. package/dist/TxPubSub.d.ts +36 -35
  467. package/dist/TxPubSub.d.ts.map +1 -1
  468. package/dist/TxPubSub.js +22 -21
  469. package/dist/TxPubSub.js.map +1 -1
  470. package/dist/TxQueue.d.ts +77 -114
  471. package/dist/TxQueue.d.ts.map +1 -1
  472. package/dist/TxQueue.js +45 -62
  473. package/dist/TxQueue.js.map +1 -1
  474. package/dist/TxRef.d.ts +4 -0
  475. package/dist/TxRef.d.ts.map +1 -1
  476. package/dist/TxRef.js +2 -0
  477. package/dist/TxRef.js.map +1 -1
  478. package/dist/TxSemaphore.d.ts +66 -27
  479. package/dist/TxSemaphore.d.ts.map +1 -1
  480. package/dist/TxSemaphore.js +38 -15
  481. package/dist/TxSemaphore.js.map +1 -1
  482. package/dist/Types.d.ts +202 -75
  483. package/dist/Types.d.ts.map +1 -1
  484. package/dist/UndefinedOr.d.ts +31 -29
  485. package/dist/UndefinedOr.d.ts.map +1 -1
  486. package/dist/UndefinedOr.js +27 -21
  487. package/dist/UndefinedOr.js.map +1 -1
  488. package/dist/Unify.d.ts +28 -0
  489. package/dist/Unify.d.ts.map +1 -1
  490. package/dist/Unify.js +2 -0
  491. package/dist/Unify.js.map +1 -1
  492. package/dist/Utils.d.ts +29 -35
  493. package/dist/Utils.d.ts.map +1 -1
  494. package/dist/Utils.js +11 -13
  495. package/dist/Utils.js.map +1 -1
  496. package/dist/index.d.ts +18 -7
  497. package/dist/index.d.ts.map +1 -1
  498. package/dist/index.js +18 -7
  499. package/dist/index.js.map +1 -1
  500. package/dist/testing/TestClock.d.ts +17 -17
  501. package/dist/testing/TestClock.js +1 -1
  502. package/dist/testing/TestClock.js.map +1 -1
  503. package/dist/testing/TestConsole.d.ts +2 -0
  504. package/dist/testing/TestConsole.d.ts.map +1 -1
  505. package/dist/testing/TestConsole.js.map +1 -1
  506. package/dist/testing/TestSchema.d.ts +43 -55
  507. package/dist/testing/TestSchema.d.ts.map +1 -1
  508. package/dist/testing/TestSchema.js +43 -55
  509. package/dist/testing/TestSchema.js.map +1 -1
  510. package/dist/unstable/ai/AiError.d.ts +62 -11
  511. package/dist/unstable/ai/AiError.d.ts.map +1 -1
  512. package/dist/unstable/ai/AiError.js +58 -11
  513. package/dist/unstable/ai/AiError.js.map +1 -1
  514. package/dist/unstable/ai/AnthropicStructuredOutput.d.ts +4 -4
  515. package/dist/unstable/ai/AnthropicStructuredOutput.js +4 -4
  516. package/dist/unstable/ai/Chat.d.ts +29 -1
  517. package/dist/unstable/ai/Chat.d.ts.map +1 -1
  518. package/dist/unstable/ai/Chat.js +15 -1
  519. package/dist/unstable/ai/Chat.js.map +1 -1
  520. package/dist/unstable/ai/IdGenerator.d.ts +10 -0
  521. package/dist/unstable/ai/IdGenerator.d.ts.map +1 -1
  522. package/dist/unstable/ai/IdGenerator.js +8 -0
  523. package/dist/unstable/ai/IdGenerator.js.map +1 -1
  524. package/dist/unstable/ai/LanguageModel.d.ts +32 -46
  525. package/dist/unstable/ai/LanguageModel.d.ts.map +1 -1
  526. package/dist/unstable/ai/LanguageModel.js +5 -14
  527. package/dist/unstable/ai/LanguageModel.js.map +1 -1
  528. package/dist/unstable/ai/McpSchema.d.ts +84 -32
  529. package/dist/unstable/ai/McpSchema.d.ts.map +1 -1
  530. package/dist/unstable/ai/McpSchema.js +73 -28
  531. package/dist/unstable/ai/McpSchema.js.map +1 -1
  532. package/dist/unstable/ai/McpServer.d.ts +8 -0
  533. package/dist/unstable/ai/McpServer.d.ts.map +1 -1
  534. package/dist/unstable/ai/McpServer.js +6 -0
  535. package/dist/unstable/ai/McpServer.js.map +1 -1
  536. package/dist/unstable/ai/Model.d.ts +9 -5
  537. package/dist/unstable/ai/Model.d.ts.map +1 -1
  538. package/dist/unstable/ai/Model.js +4 -0
  539. package/dist/unstable/ai/Model.js.map +1 -1
  540. package/dist/unstable/ai/OpenAiStructuredOutput.d.ts +3 -2
  541. package/dist/unstable/ai/OpenAiStructuredOutput.d.ts.map +1 -1
  542. package/dist/unstable/ai/OpenAiStructuredOutput.js +3 -2
  543. package/dist/unstable/ai/OpenAiStructuredOutput.js.map +1 -1
  544. package/dist/unstable/ai/Prompt.d.ts +62 -35
  545. package/dist/unstable/ai/Prompt.d.ts.map +1 -1
  546. package/dist/unstable/ai/Prompt.js +16 -15
  547. package/dist/unstable/ai/Prompt.js.map +1 -1
  548. package/dist/unstable/ai/Response.d.ts +40 -21
  549. package/dist/unstable/ai/Response.d.ts.map +1 -1
  550. package/dist/unstable/ai/Response.js +10 -0
  551. package/dist/unstable/ai/Response.js.map +1 -1
  552. package/dist/unstable/ai/ResponseIdTracker.d.ts +8 -0
  553. package/dist/unstable/ai/ResponseIdTracker.d.ts.map +1 -1
  554. package/dist/unstable/ai/ResponseIdTracker.js +4 -0
  555. package/dist/unstable/ai/ResponseIdTracker.js.map +1 -1
  556. package/dist/unstable/ai/Telemetry.d.ts +30 -5
  557. package/dist/unstable/ai/Telemetry.d.ts.map +1 -1
  558. package/dist/unstable/ai/Telemetry.js +7 -1
  559. package/dist/unstable/ai/Telemetry.js.map +1 -1
  560. package/dist/unstable/ai/Tokenizer.d.ts +6 -0
  561. package/dist/unstable/ai/Tokenizer.d.ts.map +1 -1
  562. package/dist/unstable/ai/Tokenizer.js +4 -0
  563. package/dist/unstable/ai/Tokenizer.js.map +1 -1
  564. package/dist/unstable/ai/Tool.d.ts +68 -0
  565. package/dist/unstable/ai/Tool.d.ts.map +1 -1
  566. package/dist/unstable/ai/Tool.js +36 -0
  567. package/dist/unstable/ai/Tool.js.map +1 -1
  568. package/dist/unstable/ai/Toolkit.d.ts +12 -0
  569. package/dist/unstable/ai/Toolkit.d.ts.map +1 -1
  570. package/dist/unstable/ai/Toolkit.js +6 -0
  571. package/dist/unstable/ai/Toolkit.js.map +1 -1
  572. package/dist/unstable/cli/Argument.d.ts +14 -4
  573. package/dist/unstable/cli/Argument.d.ts.map +1 -1
  574. package/dist/unstable/cli/Argument.js +4 -0
  575. package/dist/unstable/cli/Argument.js.map +1 -1
  576. package/dist/unstable/cli/CliError.d.ts +6 -0
  577. package/dist/unstable/cli/CliError.d.ts.map +1 -1
  578. package/dist/unstable/cli/CliError.js +4 -0
  579. package/dist/unstable/cli/CliError.js.map +1 -1
  580. package/dist/unstable/cli/Command.d.ts +123 -12
  581. package/dist/unstable/cli/Command.d.ts.map +1 -1
  582. package/dist/unstable/cli/Command.js +57 -4
  583. package/dist/unstable/cli/Command.js.map +1 -1
  584. package/dist/unstable/cli/Flag.d.ts +31 -14
  585. package/dist/unstable/cli/Flag.d.ts.map +1 -1
  586. package/dist/unstable/cli/Flag.js +23 -10
  587. package/dist/unstable/cli/Flag.js.map +1 -1
  588. package/dist/unstable/cli/Param.d.ts +10 -0
  589. package/dist/unstable/cli/Param.d.ts.map +1 -1
  590. package/dist/unstable/cli/Param.js +46 -5
  591. package/dist/unstable/cli/Param.js.map +1 -1
  592. package/dist/unstable/cli/Primitive.d.ts +10 -0
  593. package/dist/unstable/cli/Primitive.d.ts.map +1 -1
  594. package/dist/unstable/cli/Primitive.js +10 -0
  595. package/dist/unstable/cli/Primitive.js.map +1 -1
  596. package/dist/unstable/cli/Prompt.d.ts +47 -40
  597. package/dist/unstable/cli/Prompt.d.ts.map +1 -1
  598. package/dist/unstable/cli/Prompt.js +25 -20
  599. package/dist/unstable/cli/Prompt.js.map +1 -1
  600. package/dist/unstable/cli/internal/command.d.ts +1 -0
  601. package/dist/unstable/cli/internal/command.d.ts.map +1 -1
  602. package/dist/unstable/cli/internal/command.js +10 -2
  603. package/dist/unstable/cli/internal/command.js.map +1 -1
  604. package/dist/unstable/cli/internal/completions/descriptor.js +3 -0
  605. package/dist/unstable/cli/internal/completions/descriptor.js.map +1 -1
  606. package/dist/unstable/cli/internal/parser.js +8 -1
  607. package/dist/unstable/cli/internal/parser.js.map +1 -1
  608. package/dist/unstable/cluster/ClusterCron.d.ts +10 -1
  609. package/dist/unstable/cluster/ClusterCron.d.ts.map +1 -1
  610. package/dist/unstable/cluster/ClusterCron.js +2 -0
  611. package/dist/unstable/cluster/ClusterCron.js.map +1 -1
  612. package/dist/unstable/cluster/ClusterSchema.d.ts +8 -0
  613. package/dist/unstable/cluster/ClusterSchema.d.ts.map +1 -1
  614. package/dist/unstable/cluster/ClusterSchema.js +8 -0
  615. package/dist/unstable/cluster/ClusterSchema.js.map +1 -1
  616. package/dist/unstable/cluster/ClusterWorkflowEngine.d.ts +4 -0
  617. package/dist/unstable/cluster/ClusterWorkflowEngine.d.ts.map +1 -1
  618. package/dist/unstable/cluster/ClusterWorkflowEngine.js +4 -0
  619. package/dist/unstable/cluster/ClusterWorkflowEngine.js.map +1 -1
  620. package/dist/unstable/cluster/DeliverAt.d.ts +3 -4
  621. package/dist/unstable/cluster/DeliverAt.d.ts.map +1 -1
  622. package/dist/unstable/cluster/DeliverAt.js.map +1 -1
  623. package/dist/unstable/cluster/Entity.d.ts +24 -0
  624. package/dist/unstable/cluster/Entity.d.ts.map +1 -1
  625. package/dist/unstable/cluster/Entity.js +12 -0
  626. package/dist/unstable/cluster/Entity.js.map +1 -1
  627. package/dist/unstable/cluster/EntityProxy.d.ts +10 -4
  628. package/dist/unstable/cluster/EntityProxy.d.ts.map +1 -1
  629. package/dist/unstable/cluster/EntityProxy.js.map +1 -1
  630. package/dist/unstable/cluster/EntityProxyServer.d.ts +6 -0
  631. package/dist/unstable/cluster/EntityProxyServer.d.ts.map +1 -1
  632. package/dist/unstable/cluster/EntityProxyServer.js +4 -0
  633. package/dist/unstable/cluster/EntityProxyServer.js.map +1 -1
  634. package/dist/unstable/cluster/EntityResource.d.ts +10 -0
  635. package/dist/unstable/cluster/EntityResource.d.ts.map +1 -1
  636. package/dist/unstable/cluster/EntityResource.js +8 -0
  637. package/dist/unstable/cluster/EntityResource.js.map +1 -1
  638. package/dist/unstable/cluster/Envelope.d.ts +16 -0
  639. package/dist/unstable/cluster/Envelope.d.ts.map +1 -1
  640. package/dist/unstable/cluster/Envelope.js +10 -0
  641. package/dist/unstable/cluster/Envelope.js.map +1 -1
  642. package/dist/unstable/cluster/HttpRunner.d.ts +16 -0
  643. package/dist/unstable/cluster/HttpRunner.d.ts.map +1 -1
  644. package/dist/unstable/cluster/HttpRunner.js +16 -0
  645. package/dist/unstable/cluster/HttpRunner.js.map +1 -1
  646. package/dist/unstable/cluster/K8sHttpClient.d.ts +8 -0
  647. package/dist/unstable/cluster/K8sHttpClient.d.ts.map +1 -1
  648. package/dist/unstable/cluster/K8sHttpClient.js +8 -0
  649. package/dist/unstable/cluster/K8sHttpClient.js.map +1 -1
  650. package/dist/unstable/cluster/Message.d.ts +24 -0
  651. package/dist/unstable/cluster/Message.d.ts.map +1 -1
  652. package/dist/unstable/cluster/Message.js +18 -0
  653. package/dist/unstable/cluster/Message.js.map +1 -1
  654. package/dist/unstable/cluster/MessageStorage.d.ts +64 -20
  655. package/dist/unstable/cluster/MessageStorage.d.ts.map +1 -1
  656. package/dist/unstable/cluster/MessageStorage.js +8 -0
  657. package/dist/unstable/cluster/MessageStorage.js.map +1 -1
  658. package/dist/unstable/cluster/Reply.d.ts +6 -6
  659. package/dist/unstable/cluster/Reply.d.ts.map +1 -1
  660. package/dist/unstable/cluster/Reply.js +4 -3
  661. package/dist/unstable/cluster/Reply.js.map +1 -1
  662. package/dist/unstable/cluster/Runner.d.ts +2 -0
  663. package/dist/unstable/cluster/Runner.d.ts.map +1 -1
  664. package/dist/unstable/cluster/Runner.js +2 -0
  665. package/dist/unstable/cluster/Runner.js.map +1 -1
  666. package/dist/unstable/cluster/RunnerHealth.d.ts +13 -2
  667. package/dist/unstable/cluster/RunnerHealth.d.ts.map +1 -1
  668. package/dist/unstable/cluster/RunnerHealth.js +13 -2
  669. package/dist/unstable/cluster/RunnerHealth.js.map +1 -1
  670. package/dist/unstable/cluster/RunnerServer.d.ts +8 -8
  671. package/dist/unstable/cluster/RunnerServer.d.ts.map +1 -1
  672. package/dist/unstable/cluster/RunnerServer.js +8 -8
  673. package/dist/unstable/cluster/RunnerServer.js.map +1 -1
  674. package/dist/unstable/cluster/RunnerStorage.d.ts +2 -0
  675. package/dist/unstable/cluster/RunnerStorage.d.ts.map +1 -1
  676. package/dist/unstable/cluster/RunnerStorage.js +2 -0
  677. package/dist/unstable/cluster/RunnerStorage.js.map +1 -1
  678. package/dist/unstable/cluster/ShardId.d.ts +4 -0
  679. package/dist/unstable/cluster/ShardId.d.ts.map +1 -1
  680. package/dist/unstable/cluster/ShardId.js +4 -0
  681. package/dist/unstable/cluster/ShardId.js.map +1 -1
  682. package/dist/unstable/cluster/Snowflake.d.ts +2 -0
  683. package/dist/unstable/cluster/Snowflake.d.ts.map +1 -1
  684. package/dist/unstable/cluster/Snowflake.js +2 -0
  685. package/dist/unstable/cluster/Snowflake.js.map +1 -1
  686. package/dist/unstable/cluster/TestRunner.d.ts +3 -2
  687. package/dist/unstable/cluster/TestRunner.d.ts.map +1 -1
  688. package/dist/unstable/cluster/TestRunner.js +3 -2
  689. package/dist/unstable/cluster/TestRunner.js.map +1 -1
  690. package/dist/unstable/devtools/DevToolsSchema.d.ts +34 -2
  691. package/dist/unstable/devtools/DevToolsSchema.d.ts.map +1 -1
  692. package/dist/unstable/devtools/DevToolsSchema.js +14 -0
  693. package/dist/unstable/devtools/DevToolsSchema.js.map +1 -1
  694. package/dist/unstable/devtools/DevToolsServer.d.ts +4 -0
  695. package/dist/unstable/devtools/DevToolsServer.d.ts.map +1 -1
  696. package/dist/unstable/devtools/DevToolsServer.js +2 -0
  697. package/dist/unstable/devtools/DevToolsServer.js.map +1 -1
  698. package/dist/unstable/encoding/Msgpack.d.ts +24 -0
  699. package/dist/unstable/encoding/Msgpack.d.ts.map +1 -1
  700. package/dist/unstable/encoding/Msgpack.js +18 -0
  701. package/dist/unstable/encoding/Msgpack.js.map +1 -1
  702. package/dist/unstable/encoding/Ndjson.d.ts +46 -2
  703. package/dist/unstable/encoding/Ndjson.d.ts.map +1 -1
  704. package/dist/unstable/encoding/Ndjson.js +30 -2
  705. package/dist/unstable/encoding/Ndjson.js.map +1 -1
  706. package/dist/unstable/encoding/Sse.d.ts +24 -17
  707. package/dist/unstable/encoding/Sse.d.ts.map +1 -1
  708. package/dist/unstable/encoding/Sse.js +20 -11
  709. package/dist/unstable/encoding/Sse.js.map +1 -1
  710. package/dist/unstable/eventlog/Event.d.ts +16 -0
  711. package/dist/unstable/eventlog/Event.d.ts.map +1 -1
  712. package/dist/unstable/eventlog/Event.js.map +1 -1
  713. package/dist/unstable/eventlog/EventGroup.d.ts +4 -0
  714. package/dist/unstable/eventlog/EventGroup.d.ts.map +1 -1
  715. package/dist/unstable/eventlog/EventGroup.js +2 -0
  716. package/dist/unstable/eventlog/EventGroup.js.map +1 -1
  717. package/dist/unstable/eventlog/EventJournal.d.ts +20 -0
  718. package/dist/unstable/eventlog/EventJournal.d.ts.map +1 -1
  719. package/dist/unstable/eventlog/EventJournal.js +18 -0
  720. package/dist/unstable/eventlog/EventJournal.js.map +1 -1
  721. package/dist/unstable/eventlog/EventLog.d.ts +22 -0
  722. package/dist/unstable/eventlog/EventLog.d.ts.map +1 -1
  723. package/dist/unstable/eventlog/EventLog.js +18 -0
  724. package/dist/unstable/eventlog/EventLog.js.map +1 -1
  725. package/dist/unstable/eventlog/EventLogMessage.d.ts +10 -0
  726. package/dist/unstable/eventlog/EventLogMessage.d.ts.map +1 -1
  727. package/dist/unstable/eventlog/EventLogMessage.js +10 -0
  728. package/dist/unstable/eventlog/EventLogMessage.js.map +1 -1
  729. package/dist/unstable/eventlog/EventLogRemote.d.ts +4 -0
  730. package/dist/unstable/eventlog/EventLogRemote.d.ts.map +1 -1
  731. package/dist/unstable/eventlog/EventLogRemote.js +4 -0
  732. package/dist/unstable/eventlog/EventLogRemote.js.map +1 -1
  733. package/dist/unstable/eventlog/EventLogServer.d.ts +4 -0
  734. package/dist/unstable/eventlog/EventLogServer.d.ts.map +1 -1
  735. package/dist/unstable/eventlog/EventLogServer.js +4 -0
  736. package/dist/unstable/eventlog/EventLogServer.js.map +1 -1
  737. package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts +6 -0
  738. package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts.map +1 -1
  739. package/dist/unstable/eventlog/EventLogServerEncrypted.js +6 -0
  740. package/dist/unstable/eventlog/EventLogServerEncrypted.js.map +1 -1
  741. package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts +8 -0
  742. package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts.map +1 -1
  743. package/dist/unstable/eventlog/EventLogServerUnencrypted.js +8 -0
  744. package/dist/unstable/eventlog/EventLogServerUnencrypted.js.map +1 -1
  745. package/dist/unstable/eventlog/EventLogSessionAuth.d.ts +11 -1
  746. package/dist/unstable/eventlog/EventLogSessionAuth.d.ts.map +1 -1
  747. package/dist/unstable/eventlog/EventLogSessionAuth.js +11 -1
  748. package/dist/unstable/eventlog/EventLogSessionAuth.js.map +1 -1
  749. package/dist/unstable/eventlog/SqlEventJournal.d.ts +2 -0
  750. package/dist/unstable/eventlog/SqlEventJournal.d.ts.map +1 -1
  751. package/dist/unstable/eventlog/SqlEventJournal.js +2 -0
  752. package/dist/unstable/eventlog/SqlEventJournal.js.map +1 -1
  753. package/dist/unstable/eventlog/SqlEventLogServerEncrypted.d.ts +2 -0
  754. package/dist/unstable/eventlog/SqlEventLogServerEncrypted.d.ts.map +1 -1
  755. package/dist/unstable/eventlog/SqlEventLogServerEncrypted.js +2 -0
  756. package/dist/unstable/eventlog/SqlEventLogServerEncrypted.js.map +1 -1
  757. package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.d.ts +2 -0
  758. package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.d.ts.map +1 -1
  759. package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js +2 -0
  760. package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js.map +1 -1
  761. package/dist/unstable/http/Cookies.d.ts +34 -0
  762. package/dist/unstable/http/Cookies.d.ts.map +1 -1
  763. package/dist/unstable/http/Cookies.js +18 -0
  764. package/dist/unstable/http/Cookies.js.map +1 -1
  765. package/dist/unstable/http/Etag.d.ts +4 -0
  766. package/dist/unstable/http/Etag.d.ts.map +1 -1
  767. package/dist/unstable/http/Etag.js.map +1 -1
  768. package/dist/unstable/http/FetchHttpClient.d.ts +4 -0
  769. package/dist/unstable/http/FetchHttpClient.d.ts.map +1 -1
  770. package/dist/unstable/http/FetchHttpClient.js +4 -0
  771. package/dist/unstable/http/FetchHttpClient.js.map +1 -1
  772. package/dist/unstable/http/Headers.d.ts +60 -0
  773. package/dist/unstable/http/Headers.d.ts.map +1 -1
  774. package/dist/unstable/http/Headers.js +24 -0
  775. package/dist/unstable/http/Headers.js.map +1 -1
  776. package/dist/unstable/http/HttpBody.d.ts +32 -0
  777. package/dist/unstable/http/HttpBody.d.ts.map +1 -1
  778. package/dist/unstable/http/HttpBody.js +22 -0
  779. package/dist/unstable/http/HttpBody.js.map +1 -1
  780. package/dist/unstable/http/HttpClient.d.ts +44 -0
  781. package/dist/unstable/http/HttpClient.d.ts.map +1 -1
  782. package/dist/unstable/http/HttpClient.js +14 -0
  783. package/dist/unstable/http/HttpClient.js.map +1 -1
  784. package/dist/unstable/http/HttpClientRequest.d.ts +2 -0
  785. package/dist/unstable/http/HttpClientRequest.d.ts.map +1 -1
  786. package/dist/unstable/http/HttpClientRequest.js +2 -0
  787. package/dist/unstable/http/HttpClientRequest.js.map +1 -1
  788. package/dist/unstable/http/HttpClientResponse.d.ts +6 -0
  789. package/dist/unstable/http/HttpClientResponse.d.ts.map +1 -1
  790. package/dist/unstable/http/HttpClientResponse.js +6 -0
  791. package/dist/unstable/http/HttpClientResponse.js.map +1 -1
  792. package/dist/unstable/http/HttpEffect.d.ts +4 -0
  793. package/dist/unstable/http/HttpEffect.d.ts.map +1 -1
  794. package/dist/unstable/http/HttpEffect.js +4 -0
  795. package/dist/unstable/http/HttpEffect.js.map +1 -1
  796. package/dist/unstable/http/HttpPlatform.d.ts +2 -0
  797. package/dist/unstable/http/HttpPlatform.d.ts.map +1 -1
  798. package/dist/unstable/http/HttpPlatform.js +2 -0
  799. package/dist/unstable/http/HttpPlatform.js.map +1 -1
  800. package/dist/unstable/http/HttpRouter.d.ts +54 -16
  801. package/dist/unstable/http/HttpRouter.d.ts.map +1 -1
  802. package/dist/unstable/http/HttpRouter.js +26 -1
  803. package/dist/unstable/http/HttpRouter.js.map +1 -1
  804. package/dist/unstable/http/HttpServer.d.ts +35 -1
  805. package/dist/unstable/http/HttpServer.d.ts.map +1 -1
  806. package/dist/unstable/http/HttpServer.js +17 -1
  807. package/dist/unstable/http/HttpServer.js.map +1 -1
  808. package/dist/unstable/http/HttpServerError.d.ts +17 -3
  809. package/dist/unstable/http/HttpServerError.d.ts.map +1 -1
  810. package/dist/unstable/http/HttpServerError.js +16 -0
  811. package/dist/unstable/http/HttpServerError.js.map +1 -1
  812. package/dist/unstable/http/HttpServerRequest.d.ts +30 -0
  813. package/dist/unstable/http/HttpServerRequest.d.ts.map +1 -1
  814. package/dist/unstable/http/HttpServerRequest.js +28 -0
  815. package/dist/unstable/http/HttpServerRequest.js.map +1 -1
  816. package/dist/unstable/http/HttpServerRespondable.d.ts +8 -0
  817. package/dist/unstable/http/HttpServerRespondable.d.ts.map +1 -1
  818. package/dist/unstable/http/HttpServerRespondable.js +6 -0
  819. package/dist/unstable/http/HttpServerRespondable.js.map +1 -1
  820. package/dist/unstable/http/HttpServerResponse.d.ts +96 -0
  821. package/dist/unstable/http/HttpServerResponse.d.ts.map +1 -1
  822. package/dist/unstable/http/HttpServerResponse.js +50 -0
  823. package/dist/unstable/http/HttpServerResponse.js.map +1 -1
  824. package/dist/unstable/http/HttpTraceContext.d.ts +12 -0
  825. package/dist/unstable/http/HttpTraceContext.d.ts.map +1 -1
  826. package/dist/unstable/http/HttpTraceContext.js +10 -0
  827. package/dist/unstable/http/HttpTraceContext.js.map +1 -1
  828. package/dist/unstable/http/Multipart.d.ts +49 -2
  829. package/dist/unstable/http/Multipart.d.ts.map +1 -1
  830. package/dist/unstable/http/Multipart.js +35 -2
  831. package/dist/unstable/http/Multipart.js.map +1 -1
  832. package/dist/unstable/http/Template.d.ts +14 -0
  833. package/dist/unstable/http/Template.d.ts.map +1 -1
  834. package/dist/unstable/http/Template.js +4 -0
  835. package/dist/unstable/http/Template.js.map +1 -1
  836. package/dist/unstable/http/UrlParams.d.ts +64 -0
  837. package/dist/unstable/http/UrlParams.d.ts.map +1 -1
  838. package/dist/unstable/http/UrlParams.js +28 -0
  839. package/dist/unstable/http/UrlParams.js.map +1 -1
  840. package/dist/unstable/httpapi/HttpApi.d.ts +10 -4
  841. package/dist/unstable/httpapi/HttpApi.d.ts.map +1 -1
  842. package/dist/unstable/httpapi/HttpApi.js +4 -0
  843. package/dist/unstable/httpapi/HttpApi.js.map +1 -1
  844. package/dist/unstable/httpapi/HttpApiBuilder.d.ts +9 -4
  845. package/dist/unstable/httpapi/HttpApiBuilder.d.ts.map +1 -1
  846. package/dist/unstable/httpapi/HttpApiBuilder.js +5 -4
  847. package/dist/unstable/httpapi/HttpApiBuilder.js.map +1 -1
  848. package/dist/unstable/httpapi/HttpApiEndpoint.d.ts +2 -0
  849. package/dist/unstable/httpapi/HttpApiEndpoint.d.ts.map +1 -1
  850. package/dist/unstable/httpapi/HttpApiEndpoint.js +2 -0
  851. package/dist/unstable/httpapi/HttpApiEndpoint.js.map +1 -1
  852. package/dist/unstable/httpapi/HttpApiGroup.d.ts +23 -14
  853. package/dist/unstable/httpapi/HttpApiGroup.d.ts.map +1 -1
  854. package/dist/unstable/httpapi/HttpApiGroup.js +6 -3
  855. package/dist/unstable/httpapi/HttpApiGroup.js.map +1 -1
  856. package/dist/unstable/httpapi/HttpApiMiddleware.d.ts +14 -0
  857. package/dist/unstable/httpapi/HttpApiMiddleware.d.ts.map +1 -1
  858. package/dist/unstable/httpapi/HttpApiMiddleware.js +6 -0
  859. package/dist/unstable/httpapi/HttpApiMiddleware.js.map +1 -1
  860. package/dist/unstable/httpapi/HttpApiScalar.d.ts +38 -15
  861. package/dist/unstable/httpapi/HttpApiScalar.d.ts.map +1 -1
  862. package/dist/unstable/httpapi/HttpApiScalar.js +4 -0
  863. package/dist/unstable/httpapi/HttpApiScalar.js.map +1 -1
  864. package/dist/unstable/httpapi/HttpApiSchema.d.ts +14 -3
  865. package/dist/unstable/httpapi/HttpApiSchema.d.ts.map +1 -1
  866. package/dist/unstable/httpapi/HttpApiSchema.js +10 -0
  867. package/dist/unstable/httpapi/HttpApiSchema.js.map +1 -1
  868. package/dist/unstable/httpapi/HttpApiSecurity.d.ts +17 -11
  869. package/dist/unstable/httpapi/HttpApiSecurity.d.ts.map +1 -1
  870. package/dist/unstable/httpapi/HttpApiSecurity.js +17 -11
  871. package/dist/unstable/httpapi/HttpApiSecurity.js.map +1 -1
  872. package/dist/unstable/httpapi/HttpApiSwagger.d.ts +2 -4
  873. package/dist/unstable/httpapi/HttpApiSwagger.d.ts.map +1 -1
  874. package/dist/unstable/httpapi/HttpApiSwagger.js +2 -4
  875. package/dist/unstable/httpapi/HttpApiSwagger.js.map +1 -1
  876. package/dist/unstable/httpapi/HttpApiTest.d.ts +2 -0
  877. package/dist/unstable/httpapi/HttpApiTest.d.ts.map +1 -1
  878. package/dist/unstable/httpapi/HttpApiTest.js +2 -0
  879. package/dist/unstable/httpapi/HttpApiTest.js.map +1 -1
  880. package/dist/unstable/httpapi/OpenApi.d.ts +2 -0
  881. package/dist/unstable/httpapi/OpenApi.d.ts.map +1 -1
  882. package/dist/unstable/httpapi/OpenApi.js +2 -0
  883. package/dist/unstable/httpapi/OpenApi.js.map +1 -1
  884. package/dist/unstable/observability/Otlp.d.ts +2 -0
  885. package/dist/unstable/observability/Otlp.d.ts.map +1 -1
  886. package/dist/unstable/observability/Otlp.js +2 -0
  887. package/dist/unstable/observability/Otlp.js.map +1 -1
  888. package/dist/unstable/observability/OtlpExporter.d.ts +2 -0
  889. package/dist/unstable/observability/OtlpExporter.d.ts.map +1 -1
  890. package/dist/unstable/observability/OtlpExporter.js +2 -0
  891. package/dist/unstable/observability/OtlpExporter.js.map +1 -1
  892. package/dist/unstable/observability/OtlpLogger.d.ts +4 -0
  893. package/dist/unstable/observability/OtlpLogger.d.ts.map +1 -1
  894. package/dist/unstable/observability/OtlpLogger.js +4 -0
  895. package/dist/unstable/observability/OtlpLogger.js.map +1 -1
  896. package/dist/unstable/observability/OtlpMetrics.d.ts +8 -9
  897. package/dist/unstable/observability/OtlpMetrics.d.ts.map +1 -1
  898. package/dist/unstable/observability/OtlpMetrics.js +3 -3
  899. package/dist/unstable/observability/OtlpMetrics.js.map +1 -1
  900. package/dist/unstable/observability/OtlpResource.d.ts +8 -0
  901. package/dist/unstable/observability/OtlpResource.d.ts.map +1 -1
  902. package/dist/unstable/observability/OtlpResource.js +8 -0
  903. package/dist/unstable/observability/OtlpResource.js.map +1 -1
  904. package/dist/unstable/observability/OtlpTracer.d.ts +3 -2
  905. package/dist/unstable/observability/OtlpTracer.d.ts.map +1 -1
  906. package/dist/unstable/observability/OtlpTracer.js +3 -2
  907. package/dist/unstable/observability/OtlpTracer.js.map +1 -1
  908. package/dist/unstable/observability/PrometheusMetrics.d.ts +6 -2
  909. package/dist/unstable/observability/PrometheusMetrics.d.ts.map +1 -1
  910. package/dist/unstable/observability/PrometheusMetrics.js +6 -2
  911. package/dist/unstable/observability/PrometheusMetrics.js.map +1 -1
  912. package/dist/unstable/persistence/KeyValueStore.d.ts +10 -0
  913. package/dist/unstable/persistence/KeyValueStore.d.ts.map +1 -1
  914. package/dist/unstable/persistence/KeyValueStore.js +8 -0
  915. package/dist/unstable/persistence/KeyValueStore.js.map +1 -1
  916. package/dist/unstable/persistence/Persistable.d.ts +2 -0
  917. package/dist/unstable/persistence/Persistable.d.ts.map +1 -1
  918. package/dist/unstable/persistence/Persistable.js +2 -0
  919. package/dist/unstable/persistence/Persistable.js.map +1 -1
  920. package/dist/unstable/persistence/PersistedCache.d.ts +2 -0
  921. package/dist/unstable/persistence/PersistedCache.d.ts.map +1 -1
  922. package/dist/unstable/persistence/PersistedCache.js +2 -0
  923. package/dist/unstable/persistence/PersistedCache.js.map +1 -1
  924. package/dist/unstable/persistence/PersistedQueue.d.ts +21 -6
  925. package/dist/unstable/persistence/PersistedQueue.d.ts.map +1 -1
  926. package/dist/unstable/persistence/PersistedQueue.js +10 -0
  927. package/dist/unstable/persistence/PersistedQueue.js.map +1 -1
  928. package/dist/unstable/persistence/Persistence.d.ts +14 -0
  929. package/dist/unstable/persistence/Persistence.d.ts.map +1 -1
  930. package/dist/unstable/persistence/Persistence.js +14 -0
  931. package/dist/unstable/persistence/Persistence.js.map +1 -1
  932. package/dist/unstable/persistence/RateLimiter.d.ts +6 -3
  933. package/dist/unstable/persistence/RateLimiter.d.ts.map +1 -1
  934. package/dist/unstable/persistence/RateLimiter.js +4 -0
  935. package/dist/unstable/persistence/RateLimiter.js.map +1 -1
  936. package/dist/unstable/persistence/Redis.d.ts +6 -0
  937. package/dist/unstable/persistence/Redis.d.ts.map +1 -1
  938. package/dist/unstable/persistence/Redis.js +4 -0
  939. package/dist/unstable/persistence/Redis.js.map +1 -1
  940. package/dist/unstable/process/ChildProcess.d.ts +70 -19
  941. package/dist/unstable/process/ChildProcess.d.ts.map +1 -1
  942. package/dist/unstable/process/ChildProcess.js +10 -0
  943. package/dist/unstable/process/ChildProcess.js.map +1 -1
  944. package/dist/unstable/process/ChildProcessSpawner.d.ts +20 -4
  945. package/dist/unstable/process/ChildProcessSpawner.d.ts.map +1 -1
  946. package/dist/unstable/process/ChildProcessSpawner.js.map +1 -1
  947. package/dist/unstable/reactivity/Atom.d.ts +105 -14
  948. package/dist/unstable/reactivity/Atom.d.ts.map +1 -1
  949. package/dist/unstable/reactivity/Atom.js +53 -8
  950. package/dist/unstable/reactivity/Atom.js.map +1 -1
  951. package/dist/unstable/reactivity/AtomHttpApi.d.ts +4 -0
  952. package/dist/unstable/reactivity/AtomHttpApi.d.ts.map +1 -1
  953. package/dist/unstable/reactivity/AtomHttpApi.js +2 -0
  954. package/dist/unstable/reactivity/AtomHttpApi.js.map +1 -1
  955. package/dist/unstable/reactivity/AtomRef.d.ts +8 -0
  956. package/dist/unstable/reactivity/AtomRef.d.ts.map +1 -1
  957. package/dist/unstable/reactivity/AtomRef.js +2 -0
  958. package/dist/unstable/reactivity/AtomRef.js.map +1 -1
  959. package/dist/unstable/reactivity/AtomRegistry.d.ts +32 -0
  960. package/dist/unstable/reactivity/AtomRegistry.d.ts.map +1 -1
  961. package/dist/unstable/reactivity/AtomRegistry.js +12 -0
  962. package/dist/unstable/reactivity/AtomRegistry.js.map +1 -1
  963. package/dist/unstable/reactivity/AtomRpc.d.ts +8 -6
  964. package/dist/unstable/reactivity/AtomRpc.d.ts.map +1 -1
  965. package/dist/unstable/reactivity/AtomRpc.js +4 -3
  966. package/dist/unstable/reactivity/AtomRpc.js.map +1 -1
  967. package/dist/unstable/reactivity/Hydration.d.ts +6 -0
  968. package/dist/unstable/reactivity/Hydration.d.ts.map +1 -1
  969. package/dist/unstable/reactivity/Hydration.js +4 -0
  970. package/dist/unstable/reactivity/Hydration.js.map +1 -1
  971. package/dist/unstable/reactivity/Reactivity.d.ts +27 -3
  972. package/dist/unstable/reactivity/Reactivity.d.ts.map +1 -1
  973. package/dist/unstable/reactivity/Reactivity.js +15 -3
  974. package/dist/unstable/reactivity/Reactivity.js.map +1 -1
  975. package/dist/unstable/rpc/Rpc.d.ts +38 -2
  976. package/dist/unstable/rpc/Rpc.d.ts.map +1 -1
  977. package/dist/unstable/rpc/Rpc.js +12 -2
  978. package/dist/unstable/rpc/Rpc.js.map +1 -1
  979. package/dist/unstable/rpc/RpcSerialization.d.ts +6 -0
  980. package/dist/unstable/rpc/RpcSerialization.d.ts.map +1 -1
  981. package/dist/unstable/rpc/RpcSerialization.js +6 -0
  982. package/dist/unstable/rpc/RpcSerialization.js.map +1 -1
  983. package/dist/unstable/rpc/RpcServer.d.ts +5 -3
  984. package/dist/unstable/rpc/RpcServer.d.ts.map +1 -1
  985. package/dist/unstable/rpc/RpcServer.js +5 -3
  986. package/dist/unstable/rpc/RpcServer.js.map +1 -1
  987. package/dist/unstable/schema/Model.d.ts +43 -12
  988. package/dist/unstable/schema/Model.d.ts.map +1 -1
  989. package/dist/unstable/schema/Model.js +41 -12
  990. package/dist/unstable/schema/Model.js.map +1 -1
  991. package/dist/unstable/sql/SqlClient.d.ts.map +1 -1
  992. package/dist/unstable/sql/SqlResolver.d.ts +6 -4
  993. package/dist/unstable/sql/SqlResolver.d.ts.map +1 -1
  994. package/dist/unstable/sql/SqlResolver.js +6 -4
  995. package/dist/unstable/sql/SqlResolver.js.map +1 -1
  996. package/dist/unstable/sql/Statement.d.ts +8 -4
  997. package/dist/unstable/sql/Statement.d.ts.map +1 -1
  998. package/dist/unstable/sql/Statement.js.map +1 -1
  999. package/dist/unstable/workflow/DurableClock.d.ts +1 -1
  1000. package/dist/unstable/workflow/DurableDeferred.d.ts +3 -0
  1001. package/dist/unstable/workflow/DurableDeferred.d.ts.map +1 -1
  1002. package/dist/unstable/workflow/DurableDeferred.js +3 -0
  1003. package/dist/unstable/workflow/DurableDeferred.js.map +1 -1
  1004. package/dist/unstable/workflow/Workflow.d.ts +42 -34
  1005. package/dist/unstable/workflow/Workflow.d.ts.map +1 -1
  1006. package/dist/unstable/workflow/Workflow.js +18 -19
  1007. package/dist/unstable/workflow/Workflow.js.map +1 -1
  1008. package/package.json +1 -1
  1009. package/src/Array.ts +454 -0
  1010. package/src/BigDecimal.ts +87 -33
  1011. package/src/BigInt.ts +71 -14
  1012. package/src/Boolean.ts +4 -0
  1013. package/src/Brand.ts +16 -11
  1014. package/src/Cache.ts +17 -1
  1015. package/src/Cause.ts +95 -3
  1016. package/src/Channel.ts +326 -0
  1017. package/src/ChannelSchema.ts +24 -0
  1018. package/src/Chunk.ts +59 -22
  1019. package/src/Combiner.ts +75 -71
  1020. package/src/Config.ts +167 -46
  1021. package/src/ConfigProvider.ts +235 -158
  1022. package/src/Console.ts +25 -99
  1023. package/src/Context.ts +4 -4
  1024. package/src/Cron.ts +42 -16
  1025. package/src/Crypto.ts +6 -0
  1026. package/src/Data.ts +132 -70
  1027. package/src/DateTime.ts +227 -14
  1028. package/src/Deferred.ts +94 -27
  1029. package/src/Differ.ts +2 -0
  1030. package/src/Duration.ts +64 -6
  1031. package/src/Effect.ts +909 -605
  1032. package/src/Effectable.ts +3 -1
  1033. package/src/Encoding.ts +16 -0
  1034. package/src/Equal.ts +52 -40
  1035. package/src/Equivalence.ts +190 -153
  1036. package/src/ErrorReporter.ts +35 -14
  1037. package/src/ExecutionPlan.ts +10 -3
  1038. package/src/Exit.ts +212 -6
  1039. package/src/Fiber.ts +8 -0
  1040. package/src/FiberHandle.ts +46 -23
  1041. package/src/FiberMap.ts +43 -4
  1042. package/src/FiberSet.ts +21 -6
  1043. package/src/FileSystem.ts +64 -0
  1044. package/src/Filter.ts +53 -21
  1045. package/src/Formatter.ts +21 -22
  1046. package/src/Function.ts +67 -75
  1047. package/src/Graph.ts +51 -13
  1048. package/src/HKT.ts +22 -21
  1049. package/src/Hash.ts +33 -10
  1050. package/src/HashMap.ts +50 -9
  1051. package/src/HashRing.ts +4 -0
  1052. package/src/HashSet.ts +2 -0
  1053. package/src/Inspectable.ts +15 -2
  1054. package/src/Iterable.ts +104 -22
  1055. package/src/JsonPatch.ts +61 -80
  1056. package/src/JsonPointer.ts +16 -20
  1057. package/src/JsonSchema.ts +123 -73
  1058. package/src/Latch.ts +28 -2
  1059. package/src/Layer.ts +781 -335
  1060. package/src/LogLevel.ts +86 -13
  1061. package/src/Logger.ts +71 -51
  1062. package/src/ManagedRuntime.ts +12 -0
  1063. package/src/Match.ts +83 -1
  1064. package/src/Metric.ts +105 -12
  1065. package/src/MutableHashMap.ts +18 -0
  1066. package/src/MutableHashSet.ts +2 -0
  1067. package/src/MutableList.ts +24 -6
  1068. package/src/MutableRef.ts +2 -0
  1069. package/src/Newtype.ts +69 -30
  1070. package/src/NonEmptyIterable.ts +6 -0
  1071. package/src/Number.ts +16 -30
  1072. package/src/Optic.ts +90 -40
  1073. package/src/Option.ts +121 -111
  1074. package/src/Order.ts +169 -167
  1075. package/src/Ordering.ts +4 -0
  1076. package/src/PartitionedSemaphore.ts +7 -5
  1077. package/src/Path.ts +8 -0
  1078. package/src/Pipeable.ts +10 -0
  1079. package/src/PlatformError.ts +12 -0
  1080. package/src/Pool.ts +30 -16
  1081. package/src/Predicate.ts +520 -352
  1082. package/src/PrimaryKey.ts +4 -0
  1083. package/src/PubSub.ts +23 -5
  1084. package/src/Pull.ts +16 -0
  1085. package/src/Queue.ts +44 -0
  1086. package/src/Random.ts +25 -6
  1087. package/src/RcMap.ts +10 -6
  1088. package/src/RcRef.ts +3 -1
  1089. package/src/Record.ts +24 -3
  1090. package/src/Redactable.ts +54 -41
  1091. package/src/Redacted.ts +10 -0
  1092. package/src/Reducer.ts +20 -11
  1093. package/src/Ref.ts +95 -58
  1094. package/src/References.ts +18 -1
  1095. package/src/Request.ts +3 -3
  1096. package/src/RequestResolver.ts +8 -22
  1097. package/src/Resource.ts +2 -0
  1098. package/src/Result.ts +192 -6
  1099. package/src/Runtime.ts +14 -11
  1100. package/src/Schedule.ts +35 -3
  1101. package/src/Scheduler.ts +22 -19
  1102. package/src/Schema.ts +547 -130
  1103. package/src/SchemaAST.ts +123 -65
  1104. package/src/SchemaGetter.ts +269 -234
  1105. package/src/SchemaIssue.ts +48 -46
  1106. package/src/SchemaParser.ts +58 -0
  1107. package/src/SchemaRepresentation.ts +198 -96
  1108. package/src/SchemaTransformation.ts +272 -203
  1109. package/src/SchemaUtils.ts +2 -0
  1110. package/src/Scope.ts +19 -1
  1111. package/src/ScopedCache.ts +56 -0
  1112. package/src/ScopedRef.ts +9 -3
  1113. package/src/Semaphore.ts +6 -0
  1114. package/src/Sink.ts +108 -0
  1115. package/src/Stdio.ts +7 -3
  1116. package/src/Stream.ts +464 -16
  1117. package/src/String.ts +14 -0
  1118. package/src/Struct.ts +371 -191
  1119. package/src/SubscriptionRef.ts +7 -1
  1120. package/src/SynchronizedRef.ts +2 -0
  1121. package/src/Tracer.ts +17 -27
  1122. package/src/Trie.ts +23 -9
  1123. package/src/Tuple.ts +287 -144
  1124. package/src/TxChunk.ts +182 -93
  1125. package/src/TxDeferred.ts +3 -4
  1126. package/src/TxHashMap.ts +171 -90
  1127. package/src/TxHashSet.ts +36 -35
  1128. package/src/TxPriorityQueue.ts +2 -0
  1129. package/src/TxPubSub.ts +36 -35
  1130. package/src/TxQueue.ts +77 -114
  1131. package/src/TxRef.ts +4 -0
  1132. package/src/TxSemaphore.ts +66 -27
  1133. package/src/Types.ts +202 -75
  1134. package/src/UndefinedOr.ts +31 -29
  1135. package/src/Unify.ts +28 -0
  1136. package/src/Utils.ts +29 -35
  1137. package/src/index.ts +18 -7
  1138. package/src/testing/TestClock.ts +16 -16
  1139. package/src/testing/TestConsole.ts +2 -0
  1140. package/src/testing/TestSchema.ts +43 -55
  1141. package/src/unstable/ai/AiError.ts +62 -11
  1142. package/src/unstable/ai/AnthropicStructuredOutput.ts +4 -4
  1143. package/src/unstable/ai/Chat.ts +29 -1
  1144. package/src/unstable/ai/IdGenerator.ts +10 -0
  1145. package/src/unstable/ai/LanguageModel.ts +32 -46
  1146. package/src/unstable/ai/McpSchema.ts +84 -32
  1147. package/src/unstable/ai/McpServer.ts +8 -0
  1148. package/src/unstable/ai/Model.ts +9 -5
  1149. package/src/unstable/ai/OpenAiStructuredOutput.ts +3 -2
  1150. package/src/unstable/ai/Prompt.ts +62 -35
  1151. package/src/unstable/ai/Response.ts +40 -21
  1152. package/src/unstable/ai/ResponseIdTracker.ts +8 -0
  1153. package/src/unstable/ai/Telemetry.ts +30 -5
  1154. package/src/unstable/ai/Tokenizer.ts +6 -0
  1155. package/src/unstable/ai/Tool.ts +68 -0
  1156. package/src/unstable/ai/Toolkit.ts +12 -0
  1157. package/src/unstable/cli/Argument.ts +14 -4
  1158. package/src/unstable/cli/CliError.ts +6 -0
  1159. package/src/unstable/cli/Command.ts +128 -12
  1160. package/src/unstable/cli/Flag.ts +31 -14
  1161. package/src/unstable/cli/Param.ts +96 -9
  1162. package/src/unstable/cli/Primitive.ts +10 -0
  1163. package/src/unstable/cli/Prompt.ts +47 -40
  1164. package/src/unstable/cli/internal/command.ts +11 -2
  1165. package/src/unstable/cli/internal/completions/descriptor.ts +3 -0
  1166. package/src/unstable/cli/internal/parser.ts +8 -1
  1167. package/src/unstable/cluster/ClusterCron.ts +10 -1
  1168. package/src/unstable/cluster/ClusterSchema.ts +8 -0
  1169. package/src/unstable/cluster/ClusterWorkflowEngine.ts +4 -0
  1170. package/src/unstable/cluster/DeliverAt.ts +3 -4
  1171. package/src/unstable/cluster/Entity.ts +24 -0
  1172. package/src/unstable/cluster/EntityProxy.ts +10 -4
  1173. package/src/unstable/cluster/EntityProxyServer.ts +6 -0
  1174. package/src/unstable/cluster/EntityResource.ts +10 -0
  1175. package/src/unstable/cluster/Envelope.ts +16 -0
  1176. package/src/unstable/cluster/HttpRunner.ts +16 -0
  1177. package/src/unstable/cluster/K8sHttpClient.ts +8 -0
  1178. package/src/unstable/cluster/Message.ts +24 -0
  1179. package/src/unstable/cluster/MessageStorage.ts +44 -10
  1180. package/src/unstable/cluster/Reply.ts +6 -6
  1181. package/src/unstable/cluster/Runner.ts +2 -0
  1182. package/src/unstable/cluster/RunnerHealth.ts +13 -2
  1183. package/src/unstable/cluster/RunnerServer.ts +8 -8
  1184. package/src/unstable/cluster/RunnerStorage.ts +2 -0
  1185. package/src/unstable/cluster/ShardId.ts +4 -0
  1186. package/src/unstable/cluster/Snowflake.ts +2 -0
  1187. package/src/unstable/cluster/TestRunner.ts +3 -2
  1188. package/src/unstable/devtools/DevToolsSchema.ts +34 -2
  1189. package/src/unstable/devtools/DevToolsServer.ts +4 -0
  1190. package/src/unstable/encoding/Msgpack.ts +24 -0
  1191. package/src/unstable/encoding/Ndjson.ts +46 -2
  1192. package/src/unstable/encoding/Sse.ts +24 -17
  1193. package/src/unstable/eventlog/Event.ts +16 -0
  1194. package/src/unstable/eventlog/EventGroup.ts +4 -0
  1195. package/src/unstable/eventlog/EventJournal.ts +20 -0
  1196. package/src/unstable/eventlog/EventLog.ts +22 -0
  1197. package/src/unstable/eventlog/EventLogMessage.ts +10 -0
  1198. package/src/unstable/eventlog/EventLogRemote.ts +4 -0
  1199. package/src/unstable/eventlog/EventLogServer.ts +4 -0
  1200. package/src/unstable/eventlog/EventLogServerEncrypted.ts +6 -0
  1201. package/src/unstable/eventlog/EventLogServerUnencrypted.ts +8 -0
  1202. package/src/unstable/eventlog/EventLogSessionAuth.ts +11 -1
  1203. package/src/unstable/eventlog/SqlEventJournal.ts +2 -0
  1204. package/src/unstable/eventlog/SqlEventLogServerEncrypted.ts +2 -0
  1205. package/src/unstable/eventlog/SqlEventLogServerUnencrypted.ts +2 -0
  1206. package/src/unstable/http/Cookies.ts +34 -0
  1207. package/src/unstable/http/Etag.ts +4 -0
  1208. package/src/unstable/http/FetchHttpClient.ts +4 -0
  1209. package/src/unstable/http/Headers.ts +88 -0
  1210. package/src/unstable/http/HttpBody.ts +32 -0
  1211. package/src/unstable/http/HttpClient.ts +44 -0
  1212. package/src/unstable/http/HttpClientRequest.ts +2 -0
  1213. package/src/unstable/http/HttpClientResponse.ts +6 -0
  1214. package/src/unstable/http/HttpEffect.ts +4 -0
  1215. package/src/unstable/http/HttpPlatform.ts +2 -0
  1216. package/src/unstable/http/HttpRouter.ts +54 -16
  1217. package/src/unstable/http/HttpServer.ts +35 -1
  1218. package/src/unstable/http/HttpServerError.ts +17 -3
  1219. package/src/unstable/http/HttpServerRequest.ts +30 -0
  1220. package/src/unstable/http/HttpServerRespondable.ts +8 -0
  1221. package/src/unstable/http/HttpServerResponse.ts +96 -0
  1222. package/src/unstable/http/HttpTraceContext.ts +12 -0
  1223. package/src/unstable/http/Multipart.ts +49 -2
  1224. package/src/unstable/http/Template.ts +14 -0
  1225. package/src/unstable/http/UrlParams.ts +64 -0
  1226. package/src/unstable/httpapi/HttpApi.ts +10 -4
  1227. package/src/unstable/httpapi/HttpApiBuilder.ts +9 -4
  1228. package/src/unstable/httpapi/HttpApiEndpoint.ts +2 -0
  1229. package/src/unstable/httpapi/HttpApiGroup.ts +23 -14
  1230. package/src/unstable/httpapi/HttpApiMiddleware.ts +14 -0
  1231. package/src/unstable/httpapi/HttpApiScalar.ts +38 -15
  1232. package/src/unstable/httpapi/HttpApiSchema.ts +14 -3
  1233. package/src/unstable/httpapi/HttpApiSecurity.ts +17 -11
  1234. package/src/unstable/httpapi/HttpApiSwagger.ts +2 -4
  1235. package/src/unstable/httpapi/HttpApiTest.ts +2 -0
  1236. package/src/unstable/httpapi/OpenApi.ts +2 -0
  1237. package/src/unstable/observability/Otlp.ts +2 -0
  1238. package/src/unstable/observability/OtlpExporter.ts +2 -0
  1239. package/src/unstable/observability/OtlpLogger.ts +4 -0
  1240. package/src/unstable/observability/OtlpMetrics.ts +8 -9
  1241. package/src/unstable/observability/OtlpResource.ts +8 -0
  1242. package/src/unstable/observability/OtlpTracer.ts +3 -2
  1243. package/src/unstable/observability/PrometheusMetrics.ts +6 -2
  1244. package/src/unstable/persistence/KeyValueStore.ts +10 -0
  1245. package/src/unstable/persistence/Persistable.ts +2 -0
  1246. package/src/unstable/persistence/PersistedCache.ts +2 -0
  1247. package/src/unstable/persistence/PersistedQueue.ts +21 -6
  1248. package/src/unstable/persistence/Persistence.ts +14 -0
  1249. package/src/unstable/persistence/RateLimiter.ts +6 -3
  1250. package/src/unstable/persistence/Redis.ts +6 -0
  1251. package/src/unstable/process/ChildProcess.ts +70 -19
  1252. package/src/unstable/process/ChildProcessSpawner.ts +20 -4
  1253. package/src/unstable/reactivity/Atom.ts +119 -14
  1254. package/src/unstable/reactivity/AtomHttpApi.ts +4 -0
  1255. package/src/unstable/reactivity/AtomRef.ts +8 -0
  1256. package/src/unstable/reactivity/AtomRegistry.ts +34 -0
  1257. package/src/unstable/reactivity/AtomRpc.ts +8 -6
  1258. package/src/unstable/reactivity/Hydration.ts +6 -0
  1259. package/src/unstable/reactivity/Reactivity.ts +27 -3
  1260. package/src/unstable/rpc/Rpc.ts +38 -2
  1261. package/src/unstable/rpc/RpcSerialization.ts +6 -0
  1262. package/src/unstable/rpc/RpcServer.ts +5 -3
  1263. package/src/unstable/schema/Model.ts +43 -12
  1264. package/src/unstable/sql/SqlClient.ts +1 -1
  1265. package/src/unstable/sql/SqlResolver.ts +6 -4
  1266. package/src/unstable/sql/Statement.ts +8 -4
  1267. package/src/unstable/workflow/DurableClock.ts +1 -1
  1268. package/src/unstable/workflow/DurableDeferred.ts +3 -0
  1269. package/src/unstable/workflow/Workflow.ts +42 -34
package/src/Array.ts CHANGED
@@ -103,6 +103,8 @@ import type { NoInfer, TupleOf } from "./Types.ts"
103
103
  /**
104
104
  * Reference to the global `Array` constructor.
105
105
  *
106
+ * **When to use**
107
+ *
106
108
  * Use this when you need the native `Array` constructor while the `Array`
107
109
  * namespace is in scope (e.g. `Array.Array.isArray`, `Array.Array.from`).
108
110
  *
@@ -133,6 +135,8 @@ export interface ReadonlyArrayTypeLambda extends TypeLambda {
133
135
  /**
134
136
  * A readonly array guaranteed to have at least one element.
135
137
  *
138
+ * **When to use**
139
+ *
136
140
  * Use this type when you need to ensure non-emptiness at the type level while
137
141
  * preventing mutation. Many Array module functions accept or return this type.
138
142
  *
@@ -156,6 +160,8 @@ export type NonEmptyReadonlyArray<A> = readonly [A, ...Array<A>]
156
160
  /**
157
161
  * A mutable array guaranteed to have at least one element.
158
162
  *
163
+ * **Details**
164
+ *
159
165
  * This is the mutable counterpart of {@link NonEmptyReadonlyArray}. Most Array
160
166
  * module functions return `NonEmptyArray` when the result is guaranteed
161
167
  * non-empty.
@@ -180,6 +186,8 @@ export type NonEmptyArray<A> = [A, ...Array<A>]
180
186
  /**
181
187
  * Creates a `NonEmptyArray` from one or more elements.
182
188
  *
189
+ * **When to use**
190
+ *
183
191
  * - Use when you have literal values and want a typed non-empty array.
184
192
  * - The element type is inferred as the union of all arguments.
185
193
  * - Always returns a `NonEmptyArray` since at least one argument is required.
@@ -206,6 +214,8 @@ export const make = <Elements extends NonEmptyArray<unknown>>(
206
214
  /**
207
215
  * Creates a new `Array` of the specified length with all slots uninitialized.
208
216
  *
217
+ * **When to use**
218
+ *
209
219
  * - Use when you need a pre-sized array and will fill it imperatively.
210
220
  * - Elements are typed as `A | undefined` since slots are empty.
211
221
  * - Prefer {@link makeBy} when you can compute each element from its index.
@@ -229,6 +239,8 @@ export const allocate = <A = never>(n: number): Array<A | undefined> => new Arra
229
239
  /**
230
240
  * Creates a `NonEmptyArray` of length `n` where element `i` is computed by `f(i)`.
231
241
  *
242
+ * **When to use**
243
+ *
232
244
  * - Use when you need an array whose values depend on the index.
233
245
  * - `n` is normalized to an integer >= 1 — always returns at least one element.
234
246
  * - Dual: `Array.makeBy(5, f)` or `pipe(5, Array.makeBy(f))`.
@@ -252,6 +264,8 @@ export const makeBy: {
252
264
  /**
253
265
  * Creates a `NonEmptyArray` of length `n` where element `i` is computed by `f(i)`.
254
266
  *
267
+ * **When to use**
268
+ *
255
269
  * - Use when you need an array whose values depend on the index.
256
270
  * - `n` is normalized to an integer >= 1 — always returns at least one element.
257
271
  * - Dual: `Array.makeBy(5, f)` or `pipe(5, Array.makeBy(f))`.
@@ -275,6 +289,8 @@ export const makeBy: {
275
289
  /**
276
290
  * Creates a `NonEmptyArray` of length `n` where element `i` is computed by `f(i)`.
277
291
  *
292
+ * **When to use**
293
+ *
278
294
  * - Use when you need an array whose values depend on the index.
279
295
  * - `n` is normalized to an integer >= 1 — always returns at least one element.
280
296
  * - Dual: `Array.makeBy(5, f)` or `pipe(5, Array.makeBy(f))`.
@@ -308,6 +324,8 @@ export const makeBy: {
308
324
  * Creates a `NonEmptyArray` containing a range of integers, inclusive on both
309
325
  * ends.
310
326
  *
327
+ * **When to use**
328
+ *
311
329
  * - Use when you need a sequence of consecutive integers.
312
330
  * - If `start > end`, returns `[start]`.
313
331
  * - Always returns a `NonEmptyArray`.
@@ -332,6 +350,8 @@ export const range = (start: number, end: number): NonEmptyArray<number> =>
332
350
  /**
333
351
  * Creates a `NonEmptyArray` containing a value repeated `n` times.
334
352
  *
353
+ * **When to use**
354
+ *
335
355
  * - Use when you need multiple copies of the same value.
336
356
  * - `n` is normalized to an integer >= 1 — always returns at least one element.
337
357
  * - Dual: `Array.replicate("a", 3)` or `pipe("a", Array.replicate(3))`.
@@ -354,6 +374,8 @@ export const replicate: {
354
374
  /**
355
375
  * Creates a `NonEmptyArray` containing a value repeated `n` times.
356
376
  *
377
+ * **When to use**
378
+ *
357
379
  * - Use when you need multiple copies of the same value.
358
380
  * - `n` is normalized to an integer >= 1 — always returns at least one element.
359
381
  * - Dual: `Array.replicate("a", 3)` or `pipe("a", Array.replicate(3))`.
@@ -376,6 +398,8 @@ export const replicate: {
376
398
  /**
377
399
  * Creates a `NonEmptyArray` containing a value repeated `n` times.
378
400
  *
401
+ * **When to use**
402
+ *
379
403
  * - Use when you need multiple copies of the same value.
380
404
  * - `n` is normalized to an integer >= 1 — always returns at least one element.
381
405
  * - Dual: `Array.replicate("a", 3)` or `pipe("a", Array.replicate(3))`.
@@ -400,6 +424,8 @@ export const replicate: {
400
424
  /**
401
425
  * Converts an `Iterable` to an `Array`.
402
426
  *
427
+ * **Details**
428
+ *
403
429
  * - If the input is already an array, returns it **by reference** (no copy).
404
430
  * - Otherwise, creates a new array from the iterable.
405
431
  * - Use {@link copy} if you need a fresh array even when the input is already
@@ -426,6 +452,8 @@ export const fromIterable = <A>(collection: Iterable<A>): Array<A> =>
426
452
  /**
427
453
  * Normalizes a value that is either a single element or an array into an array.
428
454
  *
455
+ * **Details**
456
+ *
429
457
  * - If the input is already an array, returns it by reference.
430
458
  * - If the input is a single value, wraps it in a one-element array.
431
459
  * - Useful for APIs that accept `A | Array<A>`.
@@ -450,6 +478,8 @@ export const ensure = <A>(self: ReadonlyArray<A> | A): Array<A> => Array.isArray
450
478
  /**
451
479
  * Converts a record into an array of `[key, value]` tuples.
452
480
  *
481
+ * **Details**
482
+ *
453
483
  * - Key order follows `Object.entries` semantics.
454
484
  * - Returns an empty array for an empty record.
455
485
  *
@@ -489,6 +519,8 @@ export const fromOption: <A>(self: Option.Option<A>) => Array<A> = Option.toArra
489
519
  /**
490
520
  * Pattern-matches on an array, handling empty and non-empty cases separately.
491
521
  *
522
+ * **When to use**
523
+ *
492
524
  * - Use when you need to branch on whether an array has elements.
493
525
  * - `onNonEmpty` receives a `NonEmptyReadonlyArray`.
494
526
  * - Dual: data-first or data-last.
@@ -516,6 +548,8 @@ export const match: {
516
548
  /**
517
549
  * Pattern-matches on an array, handling empty and non-empty cases separately.
518
550
  *
551
+ * **When to use**
552
+ *
519
553
  * - Use when you need to branch on whether an array has elements.
520
554
  * - `onNonEmpty` receives a `NonEmptyReadonlyArray`.
521
555
  * - Dual: data-first or data-last.
@@ -548,6 +582,8 @@ export const match: {
548
582
  /**
549
583
  * Pattern-matches on an array, handling empty and non-empty cases separately.
550
584
  *
585
+ * **When to use**
586
+ *
551
587
  * - Use when you need to branch on whether an array has elements.
552
588
  * - `onNonEmpty` receives a `NonEmptyReadonlyArray`.
553
589
  * - Dual: data-first or data-last.
@@ -590,6 +626,8 @@ export const match: {
590
626
  * Pattern-matches on an array from the left, providing the first element and
591
627
  * the remaining elements separately.
592
628
  *
629
+ * **Details**
630
+ *
593
631
  * - `onNonEmpty` receives `(head, tail)` where `tail` is the rest of the array.
594
632
  * - Use when you want to process the first element differently from the rest.
595
633
  *
@@ -617,6 +655,8 @@ export const matchLeft: {
617
655
  * Pattern-matches on an array from the left, providing the first element and
618
656
  * the remaining elements separately.
619
657
  *
658
+ * **Details**
659
+ *
620
660
  * - `onNonEmpty` receives `(head, tail)` where `tail` is the rest of the array.
621
661
  * - Use when you want to process the first element differently from the rest.
622
662
  *
@@ -649,6 +689,8 @@ export const matchLeft: {
649
689
  * Pattern-matches on an array from the left, providing the first element and
650
690
  * the remaining elements separately.
651
691
  *
692
+ * **Details**
693
+ *
652
694
  * - `onNonEmpty` receives `(head, tail)` where `tail` is the rest of the array.
653
695
  * - Use when you want to process the first element differently from the rest.
654
696
  *
@@ -690,6 +732,8 @@ export const matchLeft: {
690
732
  * Pattern-matches on an array from the right, providing all elements except the
691
733
  * last and the last element separately.
692
734
  *
735
+ * **Details**
736
+ *
693
737
  * - `onNonEmpty` receives `(init, last)` where `init` is everything but the last element.
694
738
  * - Use when you want to process the last element differently from the rest.
695
739
  *
@@ -717,6 +761,8 @@ export const matchRight: {
717
761
  * Pattern-matches on an array from the right, providing all elements except the
718
762
  * last and the last element separately.
719
763
  *
764
+ * **Details**
765
+ *
720
766
  * - `onNonEmpty` receives `(init, last)` where `init` is everything but the last element.
721
767
  * - Use when you want to process the last element differently from the rest.
722
768
  *
@@ -749,6 +795,8 @@ export const matchRight: {
749
795
  * Pattern-matches on an array from the right, providing all elements except the
750
796
  * last and the last element separately.
751
797
  *
798
+ * **Details**
799
+ *
752
800
  * - `onNonEmpty` receives `(init, last)` where `init` is everything but the last element.
753
801
  * - Use when you want to process the last element differently from the rest.
754
802
  *
@@ -792,6 +840,8 @@ export const matchRight: {
792
840
  /**
793
841
  * Adds a single element to the front of an iterable, returning a `NonEmptyArray`.
794
842
  *
843
+ * **Details**
844
+ *
795
845
  * - Always returns a non-empty array.
796
846
  * - Does not mutate the input.
797
847
  *
@@ -814,6 +864,8 @@ export const prepend: {
814
864
  /**
815
865
  * Adds a single element to the front of an iterable, returning a `NonEmptyArray`.
816
866
  *
867
+ * **Details**
868
+ *
817
869
  * - Always returns a non-empty array.
818
870
  * - Does not mutate the input.
819
871
  *
@@ -836,6 +888,8 @@ export const prepend: {
836
888
  /**
837
889
  * Adds a single element to the front of an iterable, returning a `NonEmptyArray`.
838
890
  *
891
+ * **Details**
892
+ *
839
893
  * - Always returns a non-empty array.
840
894
  * - Does not mutate the input.
841
895
  *
@@ -860,6 +914,8 @@ export const prepend: {
860
914
  /**
861
915
  * Prepends all elements from a prefix iterable to the front of an array.
862
916
  *
917
+ * **Details**
918
+ *
863
919
  * - If either input is non-empty, the result is a `NonEmptyArray`.
864
920
  * - Does not mutate the input.
865
921
  *
@@ -882,6 +938,8 @@ export const prependAll: {
882
938
  /**
883
939
  * Prepends all elements from a prefix iterable to the front of an array.
884
940
  *
941
+ * **Details**
942
+ *
885
943
  * - If either input is non-empty, the result is a `NonEmptyArray`.
886
944
  * - Does not mutate the input.
887
945
  *
@@ -904,6 +962,8 @@ export const prependAll: {
904
962
  /**
905
963
  * Prepends all elements from a prefix iterable to the front of an array.
906
964
  *
965
+ * **Details**
966
+ *
907
967
  * - If either input is non-empty, the result is a `NonEmptyArray`.
908
968
  * - Does not mutate the input.
909
969
  *
@@ -926,6 +986,8 @@ export const prependAll: {
926
986
  /**
927
987
  * Prepends all elements from a prefix iterable to the front of an array.
928
988
  *
989
+ * **Details**
990
+ *
929
991
  * - If either input is non-empty, the result is a `NonEmptyArray`.
930
992
  * - Does not mutate the input.
931
993
  *
@@ -948,6 +1010,8 @@ export const prependAll: {
948
1010
  /**
949
1011
  * Prepends all elements from a prefix iterable to the front of an array.
950
1012
  *
1013
+ * **Details**
1014
+ *
951
1015
  * - If either input is non-empty, the result is a `NonEmptyArray`.
952
1016
  * - Does not mutate the input.
953
1017
  *
@@ -975,6 +1039,8 @@ export const prependAll: {
975
1039
  /**
976
1040
  * Adds a single element to the end of an iterable, returning a `NonEmptyArray`.
977
1041
  *
1042
+ * **Details**
1043
+ *
978
1044
  * - Always returns a non-empty array.
979
1045
  * - Does not mutate the input.
980
1046
  *
@@ -997,6 +1063,8 @@ export const append: {
997
1063
  /**
998
1064
  * Adds a single element to the end of an iterable, returning a `NonEmptyArray`.
999
1065
  *
1066
+ * **Details**
1067
+ *
1000
1068
  * - Always returns a non-empty array.
1001
1069
  * - Does not mutate the input.
1002
1070
  *
@@ -1019,6 +1087,8 @@ export const append: {
1019
1087
  /**
1020
1088
  * Adds a single element to the end of an iterable, returning a `NonEmptyArray`.
1021
1089
  *
1090
+ * **Details**
1091
+ *
1022
1092
  * - Always returns a non-empty array.
1023
1093
  * - Does not mutate the input.
1024
1094
  *
@@ -1043,6 +1113,8 @@ export const append: {
1043
1113
  /**
1044
1114
  * Concatenates two iterables into a single array.
1045
1115
  *
1116
+ * **Details**
1117
+ *
1046
1118
  * - If either input is non-empty, the result is a `NonEmptyArray`.
1047
1119
  * - Does not mutate the inputs.
1048
1120
  *
@@ -1065,6 +1137,8 @@ export const appendAll: {
1065
1137
  /**
1066
1138
  * Concatenates two iterables into a single array.
1067
1139
  *
1140
+ * **Details**
1141
+ *
1068
1142
  * - If either input is non-empty, the result is a `NonEmptyArray`.
1069
1143
  * - Does not mutate the inputs.
1070
1144
  *
@@ -1087,6 +1161,8 @@ export const appendAll: {
1087
1161
  /**
1088
1162
  * Concatenates two iterables into a single array.
1089
1163
  *
1164
+ * **Details**
1165
+ *
1090
1166
  * - If either input is non-empty, the result is a `NonEmptyArray`.
1091
1167
  * - Does not mutate the inputs.
1092
1168
  *
@@ -1109,6 +1185,8 @@ export const appendAll: {
1109
1185
  /**
1110
1186
  * Concatenates two iterables into a single array.
1111
1187
  *
1188
+ * **Details**
1189
+ *
1112
1190
  * - If either input is non-empty, the result is a `NonEmptyArray`.
1113
1191
  * - Does not mutate the inputs.
1114
1192
  *
@@ -1131,6 +1209,8 @@ export const appendAll: {
1131
1209
  /**
1132
1210
  * Concatenates two iterables into a single array.
1133
1211
  *
1212
+ * **Details**
1213
+ *
1134
1214
  * - If either input is non-empty, the result is a `NonEmptyArray`.
1135
1215
  * - Does not mutate the inputs.
1136
1216
  *
@@ -1158,6 +1238,8 @@ export const appendAll: {
1158
1238
  /**
1159
1239
  * Left-to-right fold that keeps every intermediate accumulator value.
1160
1240
  *
1241
+ * **Details**
1242
+ *
1161
1243
  * - The output length is `input.length + 1` (starts with the initial value).
1162
1244
  * - Always returns a `NonEmptyArray` because the initial value is included.
1163
1245
  * - Use {@link reduce} if you only need the final accumulated value.
@@ -1181,6 +1263,8 @@ export const scan: {
1181
1263
  /**
1182
1264
  * Left-to-right fold that keeps every intermediate accumulator value.
1183
1265
  *
1266
+ * **Details**
1267
+ *
1184
1268
  * - The output length is `input.length + 1` (starts with the initial value).
1185
1269
  * - Always returns a `NonEmptyArray` because the initial value is included.
1186
1270
  * - Use {@link reduce} if you only need the final accumulated value.
@@ -1204,6 +1288,8 @@ export const scan: {
1204
1288
  /**
1205
1289
  * Left-to-right fold that keeps every intermediate accumulator value.
1206
1290
  *
1291
+ * **Details**
1292
+ *
1207
1293
  * - The output length is `input.length + 1` (starts with the initial value).
1208
1294
  * - Always returns a `NonEmptyArray` because the initial value is included.
1209
1295
  * - Use {@link reduce} if you only need the final accumulated value.
@@ -1237,6 +1323,8 @@ export const scan: {
1237
1323
  /**
1238
1324
  * Right-to-left fold that keeps every intermediate accumulator value.
1239
1325
  *
1326
+ * **Details**
1327
+ *
1240
1328
  * - The output length is `input.length + 1` (ends with the initial value).
1241
1329
  * - Always returns a `NonEmptyArray`.
1242
1330
  *
@@ -1259,6 +1347,8 @@ export const scanRight: {
1259
1347
  /**
1260
1348
  * Right-to-left fold that keeps every intermediate accumulator value.
1261
1349
  *
1350
+ * **Details**
1351
+ *
1262
1352
  * - The output length is `input.length + 1` (ends with the initial value).
1263
1353
  * - Always returns a `NonEmptyArray`.
1264
1354
  *
@@ -1281,6 +1371,8 @@ export const scanRight: {
1281
1371
  /**
1282
1372
  * Right-to-left fold that keeps every intermediate accumulator value.
1283
1373
  *
1374
+ * **Details**
1375
+ *
1284
1376
  * - The output length is `input.length + 1` (ends with the initial value).
1285
1377
  * - Always returns a `NonEmptyArray`.
1286
1378
  *
@@ -1313,6 +1405,8 @@ export const scanRight: {
1313
1405
  /**
1314
1406
  * Tests whether a value is an `Array`.
1315
1407
  *
1408
+ * **Details**
1409
+ *
1316
1410
  * - Acts as a type guard narrowing the input to `Array<unknown>`.
1317
1411
  * - Delegates to `globalThis.Array.isArray`.
1318
1412
  *
@@ -1335,6 +1429,8 @@ export const isArray: {
1335
1429
  /**
1336
1430
  * Tests whether a value is an `Array`.
1337
1431
  *
1432
+ * **Details**
1433
+ *
1338
1434
  * - Acts as a type guard narrowing the input to `Array<unknown>`.
1339
1435
  * - Delegates to `globalThis.Array.isArray`.
1340
1436
  *
@@ -1357,6 +1453,8 @@ export const isArray: {
1357
1453
  /**
1358
1454
  * Tests whether a value is an `Array`.
1359
1455
  *
1456
+ * **Details**
1457
+ *
1360
1458
  * - Acts as a type guard narrowing the input to `Array<unknown>`.
1361
1459
  * - Delegates to `globalThis.Array.isArray`.
1362
1460
  *
@@ -1488,6 +1586,8 @@ const clamp = <A>(i: number, as: ReadonlyArray<A>): number => Math.floor(Math.mi
1488
1586
  * Safely reads an element at the given index, returning `Option.some` or
1489
1587
  * `Option.none` if the index is out of bounds.
1490
1588
  *
1589
+ * **Details**
1590
+ *
1491
1591
  * - The index is floored to an integer.
1492
1592
  * - Never throws.
1493
1593
  *
@@ -1512,6 +1612,8 @@ export const get: {
1512
1612
  * Safely reads an element at the given index, returning `Option.some` or
1513
1613
  * `Option.none` if the index is out of bounds.
1514
1614
  *
1615
+ * **Details**
1616
+ *
1515
1617
  * - The index is floored to an integer.
1516
1618
  * - Never throws.
1517
1619
  *
@@ -1536,6 +1638,8 @@ export const get: {
1536
1638
  * Safely reads an element at the given index, returning `Option.some` or
1537
1639
  * `Option.none` if the index is out of bounds.
1538
1640
  *
1641
+ * **Details**
1642
+ *
1539
1643
  * - The index is floored to an integer.
1540
1644
  * - Never throws.
1541
1645
  *
@@ -1564,6 +1668,8 @@ export const get: {
1564
1668
  /**
1565
1669
  * Reads an element at the given index, throwing if the index is out of bounds.
1566
1670
  *
1671
+ * **Details**
1672
+ *
1567
1673
  * - Throws an `Error` with the message `"Index out of bounds: <i>"`.
1568
1674
  * - Prefer {@link get} for safe access.
1569
1675
  *
@@ -1585,6 +1691,8 @@ export const getUnsafe: {
1585
1691
  /**
1586
1692
  * Reads an element at the given index, throwing if the index is out of bounds.
1587
1693
  *
1694
+ * **Details**
1695
+ *
1588
1696
  * - Throws an `Error` with the message `"Index out of bounds: <i>"`.
1589
1697
  * - Prefer {@link get} for safe access.
1590
1698
  *
@@ -1606,6 +1714,8 @@ export const getUnsafe: {
1606
1714
  /**
1607
1715
  * Reads an element at the given index, throwing if the index is out of bounds.
1608
1716
  *
1717
+ * **Details**
1718
+ *
1609
1719
  * - Throws an `Error` with the message `"Index out of bounds: <i>"`.
1610
1720
  * - Prefer {@link get} for safe access.
1611
1721
  *
@@ -1635,6 +1745,8 @@ export const getUnsafe: {
1635
1745
  /**
1636
1746
  * Splits a non-empty array into its first element and the remaining elements.
1637
1747
  *
1748
+ * **Details**
1749
+ *
1638
1750
  * - Returns a tuple `[head, tail]`.
1639
1751
  * - Requires a `NonEmptyReadonlyArray`.
1640
1752
  *
@@ -1662,6 +1774,8 @@ export const unprepend = <A>(
1662
1774
  * Splits a non-empty array into all elements except the last, and the last
1663
1775
  * element.
1664
1776
  *
1777
+ * **Details**
1778
+ *
1665
1779
  * - Returns a tuple `[init, last]`.
1666
1780
  * - Requires a `NonEmptyReadonlyArray`.
1667
1781
  *
@@ -1769,6 +1883,8 @@ export const lastNonEmpty = <A>(self: NonEmptyReadonlyArray<A>): A => self[self.
1769
1883
  /**
1770
1884
  * Returns all elements except the first, wrapped in an `Option`.
1771
1885
  *
1886
+ * **Details**
1887
+ *
1772
1888
  * - Allocates a new array via `slice(1)`.
1773
1889
  * - Returns `Option.none()` for empty inputs.
1774
1890
  *
@@ -1814,6 +1930,8 @@ export const tailNonEmpty = <A>(self: NonEmptyReadonlyArray<A>): Array<A> => sel
1814
1930
  /**
1815
1931
  * Returns all elements except the last, wrapped in an `Option`.
1816
1932
  *
1933
+ * **Details**
1934
+ *
1817
1935
  * - Allocates a new array via `slice(0, -1)`.
1818
1936
  * - Returns `Option.none()` for empty inputs.
1819
1937
  *
@@ -1859,6 +1977,8 @@ export const initNonEmpty = <A>(self: NonEmptyReadonlyArray<A>): Array<A> => sel
1859
1977
  /**
1860
1978
  * Keeps the first `n` elements, creating a new array.
1861
1979
  *
1980
+ * **Details**
1981
+ *
1862
1982
  * - `n` is clamped to `[0, length]`.
1863
1983
  * - Returns an empty array when `n <= 0`.
1864
1984
  *
@@ -1881,6 +2001,8 @@ export const take: {
1881
2001
  /**
1882
2002
  * Keeps the first `n` elements, creating a new array.
1883
2003
  *
2004
+ * **Details**
2005
+ *
1884
2006
  * - `n` is clamped to `[0, length]`.
1885
2007
  * - Returns an empty array when `n <= 0`.
1886
2008
  *
@@ -1903,6 +2025,8 @@ export const take: {
1903
2025
  /**
1904
2026
  * Keeps the first `n` elements, creating a new array.
1905
2027
  *
2028
+ * **Details**
2029
+ *
1906
2030
  * - `n` is clamped to `[0, length]`.
1907
2031
  * - Returns an empty array when `n <= 0`.
1908
2032
  *
@@ -1930,6 +2054,8 @@ export const take: {
1930
2054
  /**
1931
2055
  * Keeps the last `n` elements, creating a new array.
1932
2056
  *
2057
+ * **Details**
2058
+ *
1933
2059
  * - `n` is clamped to `[0, length]`.
1934
2060
  * - Returns an empty array when `n <= 0`.
1935
2061
  *
@@ -1951,6 +2077,8 @@ export const takeRight: {
1951
2077
  /**
1952
2078
  * Keeps the last `n` elements, creating a new array.
1953
2079
  *
2080
+ * **Details**
2081
+ *
1954
2082
  * - `n` is clamped to `[0, length]`.
1955
2083
  * - Returns an empty array when `n <= 0`.
1956
2084
  *
@@ -1972,6 +2100,8 @@ export const takeRight: {
1972
2100
  /**
1973
2101
  * Keeps the last `n` elements, creating a new array.
1974
2102
  *
2103
+ * **Details**
2104
+ *
1975
2105
  * - `n` is clamped to `[0, length]`.
1976
2106
  * - Returns an empty array when `n <= 0`.
1977
2107
  *
@@ -2000,6 +2130,8 @@ export const takeRight: {
2000
2130
  * Takes elements from the start while the predicate holds, stopping at the
2001
2131
  * first element that fails.
2002
2132
  *
2133
+ * **Details**
2134
+ *
2003
2135
  * - Supports refinements for type narrowing.
2004
2136
  * - The predicate receives `(element, index)`.
2005
2137
  *
@@ -2023,6 +2155,8 @@ export const takeWhile: {
2023
2155
  * Takes elements from the start while the predicate holds, stopping at the
2024
2156
  * first element that fails.
2025
2157
  *
2158
+ * **Details**
2159
+ *
2026
2160
  * - Supports refinements for type narrowing.
2027
2161
  * - The predicate receives `(element, index)`.
2028
2162
  *
@@ -2046,6 +2180,8 @@ export const takeWhile: {
2046
2180
  * Takes elements from the start while the predicate holds, stopping at the
2047
2181
  * first element that fails.
2048
2182
  *
2183
+ * **Details**
2184
+ *
2049
2185
  * - Supports refinements for type narrowing.
2050
2186
  * - The predicate receives `(element, index)`.
2051
2187
  *
@@ -2069,6 +2205,8 @@ export const takeWhile: {
2069
2205
  * Takes elements from the start while the predicate holds, stopping at the
2070
2206
  * first element that fails.
2071
2207
  *
2208
+ * **Details**
2209
+ *
2072
2210
  * - Supports refinements for type narrowing.
2073
2211
  * - The predicate receives `(element, index)`.
2074
2212
  *
@@ -2092,6 +2230,8 @@ export const takeWhile: {
2092
2230
  * Takes elements from the start while the predicate holds, stopping at the
2093
2231
  * first element that fails.
2094
2232
  *
2233
+ * **Details**
2234
+ *
2095
2235
  * - Supports refinements for type narrowing.
2096
2236
  * - The predicate receives `(element, index)`.
2097
2237
  *
@@ -2127,6 +2267,8 @@ export const takeWhile: {
2127
2267
  /**
2128
2268
  * Takes elements from the start while a `Filter` succeeds, collecting transformed values.
2129
2269
  *
2270
+ * **Details**
2271
+ *
2130
2272
  * - The filter receives `(element, index)`.
2131
2273
  * - Stops at the first filter failure.
2132
2274
  *
@@ -2137,6 +2279,8 @@ export const takeWhileFilter: {
2137
2279
  /**
2138
2280
  * Takes elements from the start while a `Filter` succeeds, collecting transformed values.
2139
2281
  *
2282
+ * **Details**
2283
+ *
2140
2284
  * - The filter receives `(element, index)`.
2141
2285
  * - Stops at the first filter failure.
2142
2286
  *
@@ -2147,6 +2291,8 @@ export const takeWhileFilter: {
2147
2291
  /**
2148
2292
  * Takes elements from the start while a `Filter` succeeds, collecting transformed values.
2149
2293
  *
2294
+ * **Details**
2295
+ *
2150
2296
  * - The filter receives `(element, index)`.
2151
2297
  * - Stops at the first filter failure.
2152
2298
  *
@@ -2186,6 +2332,8 @@ const spanIndex = <A>(self: Iterable<A>, predicate: (a: A, i: number) => boolean
2186
2332
  * Splits an iterable into two arrays: the longest prefix where the predicate
2187
2333
  * holds, and the remaining elements.
2188
2334
  *
2335
+ * **Details**
2336
+ *
2189
2337
  * - Equivalent to `[takeWhile(pred), dropWhile(pred)]` but more efficient
2190
2338
  * (single pass).
2191
2339
  * - Supports refinements for type narrowing of the prefix.
@@ -2210,6 +2358,8 @@ export const span: {
2210
2358
  * Splits an iterable into two arrays: the longest prefix where the predicate
2211
2359
  * holds, and the remaining elements.
2212
2360
  *
2361
+ * **Details**
2362
+ *
2213
2363
  * - Equivalent to `[takeWhile(pred), dropWhile(pred)]` but more efficient
2214
2364
  * (single pass).
2215
2365
  * - Supports refinements for type narrowing of the prefix.
@@ -2234,6 +2384,8 @@ export const span: {
2234
2384
  * Splits an iterable into two arrays: the longest prefix where the predicate
2235
2385
  * holds, and the remaining elements.
2236
2386
  *
2387
+ * **Details**
2388
+ *
2237
2389
  * - Equivalent to `[takeWhile(pred), dropWhile(pred)]` but more efficient
2238
2390
  * (single pass).
2239
2391
  * - Supports refinements for type narrowing of the prefix.
@@ -2258,6 +2410,8 @@ export const span: {
2258
2410
  * Splits an iterable into two arrays: the longest prefix where the predicate
2259
2411
  * holds, and the remaining elements.
2260
2412
  *
2413
+ * **Details**
2414
+ *
2261
2415
  * - Equivalent to `[takeWhile(pred), dropWhile(pred)]` but more efficient
2262
2416
  * (single pass).
2263
2417
  * - Supports refinements for type narrowing of the prefix.
@@ -2282,6 +2436,8 @@ export const span: {
2282
2436
  * Splits an iterable into two arrays: the longest prefix where the predicate
2283
2437
  * holds, and the remaining elements.
2284
2438
  *
2439
+ * **Details**
2440
+ *
2285
2441
  * - Equivalent to `[takeWhile(pred), dropWhile(pred)]` but more efficient
2286
2442
  * (single pass).
2287
2443
  * - Supports refinements for type narrowing of the prefix.
@@ -2313,6 +2469,8 @@ export const span: {
2313
2469
  /**
2314
2470
  * Removes the first `n` elements, creating a new array.
2315
2471
  *
2472
+ * **Details**
2473
+ *
2316
2474
  * - `n` is clamped to `[0, length]`.
2317
2475
  * - Returns a copy of the full array when `n <= 0`.
2318
2476
  *
@@ -2335,6 +2493,8 @@ export const drop: {
2335
2493
  /**
2336
2494
  * Removes the first `n` elements, creating a new array.
2337
2495
  *
2496
+ * **Details**
2497
+ *
2338
2498
  * - `n` is clamped to `[0, length]`.
2339
2499
  * - Returns a copy of the full array when `n <= 0`.
2340
2500
  *
@@ -2357,6 +2517,8 @@ export const drop: {
2357
2517
  /**
2358
2518
  * Removes the first `n` elements, creating a new array.
2359
2519
  *
2520
+ * **Details**
2521
+ *
2360
2522
  * - `n` is clamped to `[0, length]`.
2361
2523
  * - Returns a copy of the full array when `n <= 0`.
2362
2524
  *
@@ -2384,6 +2546,8 @@ export const drop: {
2384
2546
  /**
2385
2547
  * Removes the last `n` elements, creating a new array.
2386
2548
  *
2549
+ * **Details**
2550
+ *
2387
2551
  * - `n` is clamped to `[0, length]`.
2388
2552
  *
2389
2553
  * **Example** (Dropping from the end)
@@ -2404,6 +2568,8 @@ export const dropRight: {
2404
2568
  /**
2405
2569
  * Removes the last `n` elements, creating a new array.
2406
2570
  *
2571
+ * **Details**
2572
+ *
2407
2573
  * - `n` is clamped to `[0, length]`.
2408
2574
  *
2409
2575
  * **Example** (Dropping from the end)
@@ -2424,6 +2590,8 @@ export const dropRight: {
2424
2590
  /**
2425
2591
  * Removes the last `n` elements, creating a new array.
2426
2592
  *
2593
+ * **Details**
2594
+ *
2427
2595
  * - `n` is clamped to `[0, length]`.
2428
2596
  *
2429
2597
  * **Example** (Dropping from the end)
@@ -2449,6 +2617,8 @@ export const dropRight: {
2449
2617
  /**
2450
2618
  * Drops elements from the start while the predicate holds, returning the rest.
2451
2619
  *
2620
+ * **Details**
2621
+ *
2452
2622
  * - The predicate receives `(element, index)`.
2453
2623
  *
2454
2624
  * **Example** (Dropping while condition holds)
@@ -2469,6 +2639,8 @@ export const dropWhile: {
2469
2639
  /**
2470
2640
  * Drops elements from the start while the predicate holds, returning the rest.
2471
2641
  *
2642
+ * **Details**
2643
+ *
2472
2644
  * - The predicate receives `(element, index)`.
2473
2645
  *
2474
2646
  * **Example** (Dropping while condition holds)
@@ -2489,6 +2661,8 @@ export const dropWhile: {
2489
2661
  /**
2490
2662
  * Drops elements from the start while the predicate holds, returning the rest.
2491
2663
  *
2664
+ * **Details**
2665
+ *
2492
2666
  * - The predicate receives `(element, index)`.
2493
2667
  *
2494
2668
  * **Example** (Dropping while condition holds)
@@ -2521,6 +2695,8 @@ export const dropWhile: {
2521
2695
  /**
2522
2696
  * Drops elements from the start while a `Filter` succeeds.
2523
2697
  *
2698
+ * **Details**
2699
+ *
2524
2700
  * - The filter receives `(element, index)`.
2525
2701
  * - Returns the remaining original elements after the first filter failure.
2526
2702
  *
@@ -2531,6 +2707,8 @@ export const dropWhileFilter: {
2531
2707
  /**
2532
2708
  * Drops elements from the start while a `Filter` succeeds.
2533
2709
  *
2710
+ * **Details**
2711
+ *
2534
2712
  * - The filter receives `(element, index)`.
2535
2713
  * - Returns the remaining original elements after the first filter failure.
2536
2714
  *
@@ -2541,6 +2719,8 @@ export const dropWhileFilter: {
2541
2719
  /**
2542
2720
  * Drops elements from the start while a `Filter` succeeds.
2543
2721
  *
2722
+ * **Details**
2723
+ *
2544
2724
  * - The filter receives `(element, index)`.
2545
2725
  * - Returns the remaining original elements after the first filter failure.
2546
2726
  *
@@ -2702,6 +2882,8 @@ export const findLastIndex: {
2702
2882
  * Returns the first element matching a predicate, refinement, or mapping
2703
2883
  * function, wrapped in `Option`.
2704
2884
  *
2885
+ * **Details**
2886
+ *
2705
2887
  * - Accepts a predicate `(a, i) => boolean`, a refinement, or a function
2706
2888
  * `(a, i) => Option<B>` for simultaneous find-and-transform.
2707
2889
  * - Returns `Option.none()` if no element matches.
@@ -2726,6 +2908,8 @@ export const findFirst: {
2726
2908
  * Returns the first element matching a predicate, refinement, or mapping
2727
2909
  * function, wrapped in `Option`.
2728
2910
  *
2911
+ * **Details**
2912
+ *
2729
2913
  * - Accepts a predicate `(a, i) => boolean`, a refinement, or a function
2730
2914
  * `(a, i) => Option<B>` for simultaneous find-and-transform.
2731
2915
  * - Returns `Option.none()` if no element matches.
@@ -2750,6 +2934,8 @@ export const findFirst: {
2750
2934
  * Returns the first element matching a predicate, refinement, or mapping
2751
2935
  * function, wrapped in `Option`.
2752
2936
  *
2937
+ * **Details**
2938
+ *
2753
2939
  * - Accepts a predicate `(a, i) => boolean`, a refinement, or a function
2754
2940
  * `(a, i) => Option<B>` for simultaneous find-and-transform.
2755
2941
  * - Returns `Option.none()` if no element matches.
@@ -2774,6 +2960,8 @@ export const findFirst: {
2774
2960
  * Returns the first element matching a predicate, refinement, or mapping
2775
2961
  * function, wrapped in `Option`.
2776
2962
  *
2963
+ * **Details**
2964
+ *
2777
2965
  * - Accepts a predicate `(a, i) => boolean`, a refinement, or a function
2778
2966
  * `(a, i) => Option<B>` for simultaneous find-and-transform.
2779
2967
  * - Returns `Option.none()` if no element matches.
@@ -2798,6 +2986,8 @@ export const findFirst: {
2798
2986
  * Returns the first element matching a predicate, refinement, or mapping
2799
2987
  * function, wrapped in `Option`.
2800
2988
  *
2989
+ * **Details**
2990
+ *
2801
2991
  * - Accepts a predicate `(a, i) => boolean`, a refinement, or a function
2802
2992
  * `(a, i) => Option<B>` for simultaneous find-and-transform.
2803
2993
  * - Returns `Option.none()` if no element matches.
@@ -2822,6 +3012,8 @@ export const findFirst: {
2822
3012
  * Returns the first element matching a predicate, refinement, or mapping
2823
3013
  * function, wrapped in `Option`.
2824
3014
  *
3015
+ * **Details**
3016
+ *
2825
3017
  * - Accepts a predicate `(a, i) => boolean`, a refinement, or a function
2826
3018
  * `(a, i) => Option<B>` for simultaneous find-and-transform.
2827
3019
  * - Returns `Option.none()` if no element matches.
@@ -2846,6 +3038,8 @@ export const findFirst: {
2846
3038
  * Returns the first element matching a predicate, refinement, or mapping
2847
3039
  * function, wrapped in `Option`.
2848
3040
  *
3041
+ * **Details**
3042
+ *
2849
3043
  * - Accepts a predicate `(a, i) => boolean`, a refinement, or a function
2850
3044
  * `(a, i) => Option<B>` for simultaneous find-and-transform.
2851
3045
  * - Returns `Option.none()` if no element matches.
@@ -2872,6 +3066,8 @@ export const findFirst: {
2872
3066
  * Returns the first selected value together with its index, wrapped in an
2873
3067
  * `Option`.
2874
3068
  *
3069
+ * **Details**
3070
+ *
2875
3071
  * Accepts a predicate, a refinement, or a function returning `Option`. For an
2876
3072
  * `Option`-returning function, returns `[mappedValue, index]` for the first
2877
3073
  * `Some`, or `Option.none()` if no element is selected.
@@ -2895,6 +3091,8 @@ export const findFirstWithIndex: {
2895
3091
  * Returns the first selected value together with its index, wrapped in an
2896
3092
  * `Option`.
2897
3093
  *
3094
+ * **Details**
3095
+ *
2898
3096
  * Accepts a predicate, a refinement, or a function returning `Option`. For an
2899
3097
  * `Option`-returning function, returns `[mappedValue, index]` for the first
2900
3098
  * `Some`, or `Option.none()` if no element is selected.
@@ -2918,6 +3116,8 @@ export const findFirstWithIndex: {
2918
3116
  * Returns the first selected value together with its index, wrapped in an
2919
3117
  * `Option`.
2920
3118
  *
3119
+ * **Details**
3120
+ *
2921
3121
  * Accepts a predicate, a refinement, or a function returning `Option`. For an
2922
3122
  * `Option`-returning function, returns `[mappedValue, index]` for the first
2923
3123
  * `Some`, or `Option.none()` if no element is selected.
@@ -2941,6 +3141,8 @@ export const findFirstWithIndex: {
2941
3141
  * Returns the first selected value together with its index, wrapped in an
2942
3142
  * `Option`.
2943
3143
  *
3144
+ * **Details**
3145
+ *
2944
3146
  * Accepts a predicate, a refinement, or a function returning `Option`. For an
2945
3147
  * `Option`-returning function, returns `[mappedValue, index]` for the first
2946
3148
  * `Some`, or `Option.none()` if no element is selected.
@@ -2964,6 +3166,8 @@ export const findFirstWithIndex: {
2964
3166
  * Returns the first selected value together with its index, wrapped in an
2965
3167
  * `Option`.
2966
3168
  *
3169
+ * **Details**
3170
+ *
2967
3171
  * Accepts a predicate, a refinement, or a function returning `Option`. For an
2968
3172
  * `Option`-returning function, returns `[mappedValue, index]` for the first
2969
3173
  * `Some`, or `Option.none()` if no element is selected.
@@ -2987,6 +3191,8 @@ export const findFirstWithIndex: {
2987
3191
  * Returns the first selected value together with its index, wrapped in an
2988
3192
  * `Option`.
2989
3193
  *
3194
+ * **Details**
3195
+ *
2990
3196
  * Accepts a predicate, a refinement, or a function returning `Option`. For an
2991
3197
  * `Option`-returning function, returns `[mappedValue, index]` for the first
2992
3198
  * `Some`, or `Option.none()` if no element is selected.
@@ -3010,6 +3216,8 @@ export const findFirstWithIndex: {
3010
3216
  * Returns the first selected value together with its index, wrapped in an
3011
3217
  * `Option`.
3012
3218
  *
3219
+ * **Details**
3220
+ *
3013
3221
  * Accepts a predicate, a refinement, or a function returning `Option`. For an
3014
3222
  * `Option`-returning function, returns `[mappedValue, index]` for the first
3015
3223
  * `Some`, or `Option.none()` if no element is selected.
@@ -3057,6 +3265,8 @@ export const findFirstWithIndex: {
3057
3265
  * Returns the last element matching a predicate, refinement, or mapping
3058
3266
  * function, wrapped in `Option`.
3059
3267
  *
3268
+ * **Details**
3269
+ *
3060
3270
  * - Searches from the end of the array.
3061
3271
  * - Returns `Option.none()` if no element matches.
3062
3272
  *
@@ -3079,6 +3289,8 @@ export const findLast: {
3079
3289
  * Returns the last element matching a predicate, refinement, or mapping
3080
3290
  * function, wrapped in `Option`.
3081
3291
  *
3292
+ * **Details**
3293
+ *
3082
3294
  * - Searches from the end of the array.
3083
3295
  * - Returns `Option.none()` if no element matches.
3084
3296
  *
@@ -3101,6 +3313,8 @@ export const findLast: {
3101
3313
  * Returns the last element matching a predicate, refinement, or mapping
3102
3314
  * function, wrapped in `Option`.
3103
3315
  *
3316
+ * **Details**
3317
+ *
3104
3318
  * - Searches from the end of the array.
3105
3319
  * - Returns `Option.none()` if no element matches.
3106
3320
  *
@@ -3123,6 +3337,8 @@ export const findLast: {
3123
3337
  * Returns the last element matching a predicate, refinement, or mapping
3124
3338
  * function, wrapped in `Option`.
3125
3339
  *
3340
+ * **Details**
3341
+ *
3126
3342
  * - Searches from the end of the array.
3127
3343
  * - Returns `Option.none()` if no element matches.
3128
3344
  *
@@ -3145,6 +3361,8 @@ export const findLast: {
3145
3361
  * Returns the last element matching a predicate, refinement, or mapping
3146
3362
  * function, wrapped in `Option`.
3147
3363
  *
3364
+ * **Details**
3365
+ *
3148
3366
  * - Searches from the end of the array.
3149
3367
  * - Returns `Option.none()` if no element matches.
3150
3368
  *
@@ -3167,6 +3385,8 @@ export const findLast: {
3167
3385
  * Returns the last element matching a predicate, refinement, or mapping
3168
3386
  * function, wrapped in `Option`.
3169
3387
  *
3388
+ * **Details**
3389
+ *
3170
3390
  * - Searches from the end of the array.
3171
3391
  * - Returns `Option.none()` if no element matches.
3172
3392
  *
@@ -3189,6 +3409,8 @@ export const findLast: {
3189
3409
  * Returns the last element matching a predicate, refinement, or mapping
3190
3410
  * function, wrapped in `Option`.
3191
3411
  *
3412
+ * **Details**
3413
+ *
3192
3414
  * - Searches from the end of the array.
3193
3415
  * - Returns `Option.none()` if no element matches.
3194
3416
  *
@@ -3235,6 +3457,8 @@ export const findLast: {
3235
3457
  * Inserts an element at the specified index, returning a new `NonEmptyArray`
3236
3458
  * wrapped in an `Option`.
3237
3459
  *
3460
+ * **Details**
3461
+ *
3238
3462
  * - Valid indices: `0` to `length` (inclusive — inserting at `length` appends).
3239
3463
  * - Does not mutate the input.
3240
3464
  *
@@ -3257,6 +3481,8 @@ export const insertAt: {
3257
3481
  * Inserts an element at the specified index, returning a new `NonEmptyArray`
3258
3482
  * wrapped in an `Option`.
3259
3483
  *
3484
+ * **Details**
3485
+ *
3260
3486
  * - Valid indices: `0` to `length` (inclusive — inserting at `length` appends).
3261
3487
  * - Does not mutate the input.
3262
3488
  *
@@ -3279,6 +3505,8 @@ export const insertAt: {
3279
3505
  * Inserts an element at the specified index, returning a new `NonEmptyArray`
3280
3506
  * wrapped in an `Option`.
3281
3507
  *
3508
+ * **Details**
3509
+ *
3282
3510
  * - Valid indices: `0` to `length` (inclusive — inserting at `length` appends).
3283
3511
  * - Does not mutate the input.
3284
3512
  *
@@ -3310,6 +3538,8 @@ export const insertAt: {
3310
3538
  * Replaces the element at the specified index with a new value, returning the
3311
3539
  * updated array in `Option.some`.
3312
3540
  *
3541
+ * **Details**
3542
+ *
3313
3543
  * - Returns `Option.none()` when the index is out of bounds.
3314
3544
  * - Does not mutate the input.
3315
3545
  *
@@ -3332,6 +3562,8 @@ export const replace: {
3332
3562
  * Replaces the element at the specified index with a new value, returning the
3333
3563
  * updated array in `Option.some`.
3334
3564
  *
3565
+ * **Details**
3566
+ *
3335
3567
  * - Returns `Option.none()` when the index is out of bounds.
3336
3568
  * - Does not mutate the input.
3337
3569
  *
@@ -3356,6 +3588,8 @@ export const replace: {
3356
3588
  * Replaces the element at the specified index with a new value, returning the
3357
3589
  * updated array in `Option.some`.
3358
3590
  *
3591
+ * **Details**
3592
+ *
3359
3593
  * - Returns `Option.none()` when the index is out of bounds.
3360
3594
  * - Does not mutate the input.
3361
3595
  *
@@ -3383,6 +3617,8 @@ export const replace: {
3383
3617
  * Applies a function to the element at the specified index, returning the
3384
3618
  * updated array in `Option.some`.
3385
3619
  *
3620
+ * **Details**
3621
+ *
3386
3622
  * - Returns `Option.none()` when the index is out of bounds.
3387
3623
  * - Does not mutate the input.
3388
3624
  *
@@ -3407,6 +3643,8 @@ export const modify: {
3407
3643
  * Applies a function to the element at the specified index, returning the
3408
3644
  * updated array in `Option.some`.
3409
3645
  *
3646
+ * **Details**
3647
+ *
3410
3648
  * - Returns `Option.none()` when the index is out of bounds.
3411
3649
  * - Does not mutate the input.
3412
3650
  *
@@ -3431,6 +3669,8 @@ export const modify: {
3431
3669
  * Applies a function to the element at the specified index, returning the
3432
3670
  * updated array in `Option.some`.
3433
3671
  *
3672
+ * **Details**
3673
+ *
3434
3674
  * - Returns `Option.none()` when the index is out of bounds.
3435
3675
  * - Does not mutate the input.
3436
3676
  *
@@ -3466,6 +3706,8 @@ export const modify: {
3466
3706
  * Removes the element at the specified index, returning a new array. If the
3467
3707
  * index is out of bounds, returns a copy of the original.
3468
3708
  *
3709
+ * **Details**
3710
+ *
3469
3711
  * - Does not mutate the input.
3470
3712
  *
3471
3713
  * **Example** (Removing an element)
@@ -3488,6 +3730,8 @@ export const remove: {
3488
3730
  * Removes the element at the specified index, returning a new array. If the
3489
3731
  * index is out of bounds, returns a copy of the original.
3490
3732
  *
3733
+ * **Details**
3734
+ *
3491
3735
  * - Does not mutate the input.
3492
3736
  *
3493
3737
  * **Example** (Removing an element)
@@ -3510,6 +3754,8 @@ export const remove: {
3510
3754
  * Removes the element at the specified index, returning a new array. If the
3511
3755
  * index is out of bounds, returns a copy of the original.
3512
3756
  *
3757
+ * **Details**
3758
+ *
3513
3759
  * - Does not mutate the input.
3514
3760
  *
3515
3761
  * **Example** (Removing an element)
@@ -3540,6 +3786,8 @@ export const remove: {
3540
3786
  /**
3541
3787
  * Reverses an iterable into a new array.
3542
3788
  *
3789
+ * **Details**
3790
+ *
3543
3791
  * - Does not mutate the input.
3544
3792
  * - Preserves `NonEmptyArray` in the return type.
3545
3793
  *
@@ -3562,6 +3810,8 @@ export const reverse = <S extends Iterable<any>>(
3562
3810
  /**
3563
3811
  * Sorts an array by the given `Order`, returning a new array.
3564
3812
  *
3813
+ * **Details**
3814
+ *
3565
3815
  * - Does not mutate the input.
3566
3816
  * - Preserves `NonEmptyArray` in the return type.
3567
3817
  * - Use {@link sortWith} to sort by a derived key, or {@link sortBy} for
@@ -3585,6 +3835,8 @@ export const sort: {
3585
3835
  /**
3586
3836
  * Sorts an array by the given `Order`, returning a new array.
3587
3837
  *
3838
+ * **Details**
3839
+ *
3588
3840
  * - Does not mutate the input.
3589
3841
  * - Preserves `NonEmptyArray` in the return type.
3590
3842
  * - Use {@link sortWith} to sort by a derived key, or {@link sortBy} for
@@ -3608,6 +3860,8 @@ export const sort: {
3608
3860
  /**
3609
3861
  * Sorts an array by the given `Order`, returning a new array.
3610
3862
  *
3863
+ * **Details**
3864
+ *
3611
3865
  * - Does not mutate the input.
3612
3866
  * - Preserves `NonEmptyArray` in the return type.
3613
3867
  * - Use {@link sortWith} to sort by a derived key, or {@link sortBy} for
@@ -3631,6 +3885,8 @@ export const sort: {
3631
3885
  /**
3632
3886
  * Sorts an array by the given `Order`, returning a new array.
3633
3887
  *
3888
+ * **Details**
3889
+ *
3634
3890
  * - Does not mutate the input.
3635
3891
  * - Preserves `NonEmptyArray` in the return type.
3636
3892
  * - Use {@link sortWith} to sort by a derived key, or {@link sortBy} for
@@ -3661,6 +3917,8 @@ export const sort: {
3661
3917
  * Sorts an array by a derived key using a mapping function and an `Order` for
3662
3918
  * that key.
3663
3919
  *
3920
+ * **Details**
3921
+ *
3664
3922
  * - Equivalent to `sort(Order.mapInput(order, f))` but more convenient.
3665
3923
  * - Does not mutate the input.
3666
3924
  *
@@ -3684,6 +3942,8 @@ export const sortWith: {
3684
3942
  * Sorts an array by a derived key using a mapping function and an `Order` for
3685
3943
  * that key.
3686
3944
  *
3945
+ * **Details**
3946
+ *
3687
3947
  * - Equivalent to `sort(Order.mapInput(order, f))` but more convenient.
3688
3948
  * - Does not mutate the input.
3689
3949
  *
@@ -3707,6 +3967,8 @@ export const sortWith: {
3707
3967
  * Sorts an array by a derived key using a mapping function and an `Order` for
3708
3968
  * that key.
3709
3969
  *
3970
+ * **Details**
3971
+ *
3710
3972
  * - Equivalent to `sort(Order.mapInput(order, f))` but more convenient.
3711
3973
  * - Does not mutate the input.
3712
3974
  *
@@ -3730,6 +3992,8 @@ export const sortWith: {
3730
3992
  * Sorts an array by a derived key using a mapping function and an `Order` for
3731
3993
  * that key.
3732
3994
  *
3995
+ * **Details**
3996
+ *
3733
3997
  * - Equivalent to `sort(Order.mapInput(order, f))` but more convenient.
3734
3998
  * - Does not mutate the input.
3735
3999
  *
@@ -3759,6 +4023,8 @@ export const sortWith: {
3759
4023
  * Sorts an array by multiple `Order`s applied in sequence: the first order is
3760
4024
  * used first; ties are broken by the second order, and so on.
3761
4025
  *
4026
+ * **Details**
4027
+ *
3762
4028
  * - Data-last only (returns a function).
3763
4029
  * - Preserves `NonEmptyArray` in the return type.
3764
4030
  *
@@ -3809,6 +4075,8 @@ export const sortBy = <S extends Iterable<any>>(
3809
4075
  * Pairs elements from two iterables by position. If the iterables differ in
3810
4076
  * length, the extra elements from the longer one are discarded.
3811
4077
  *
4078
+ * **Details**
4079
+ *
3812
4080
  * - Returns `NonEmptyArray` when both inputs are non-empty.
3813
4081
  *
3814
4082
  * **Example** (Zipping two arrays)
@@ -3830,6 +4098,8 @@ export const zip: {
3830
4098
  * Pairs elements from two iterables by position. If the iterables differ in
3831
4099
  * length, the extra elements from the longer one are discarded.
3832
4100
  *
4101
+ * **Details**
4102
+ *
3833
4103
  * - Returns `NonEmptyArray` when both inputs are non-empty.
3834
4104
  *
3835
4105
  * **Example** (Zipping two arrays)
@@ -3851,6 +4121,8 @@ export const zip: {
3851
4121
  * Pairs elements from two iterables by position. If the iterables differ in
3852
4122
  * length, the extra elements from the longer one are discarded.
3853
4123
  *
4124
+ * **Details**
4125
+ *
3854
4126
  * - Returns `NonEmptyArray` when both inputs are non-empty.
3855
4127
  *
3856
4128
  * **Example** (Zipping two arrays)
@@ -3872,6 +4144,8 @@ export const zip: {
3872
4144
  * Pairs elements from two iterables by position. If the iterables differ in
3873
4145
  * length, the extra elements from the longer one are discarded.
3874
4146
  *
4147
+ * **Details**
4148
+ *
3875
4149
  * - Returns `NonEmptyArray` when both inputs are non-empty.
3876
4150
  *
3877
4151
  * **Example** (Zipping two arrays)
@@ -3893,6 +4167,8 @@ export const zip: {
3893
4167
  * Pairs elements from two iterables by position. If the iterables differ in
3894
4168
  * length, the extra elements from the longer one are discarded.
3895
4169
  *
4170
+ * **Details**
4171
+ *
3896
4172
  * - Returns `NonEmptyArray` when both inputs are non-empty.
3897
4173
  *
3898
4174
  * **Example** (Zipping two arrays)
@@ -4060,6 +4336,8 @@ export const unzip: <S extends Iterable<readonly [any, any]>>(
4060
4336
  /**
4061
4337
  * Places a separator element between every pair of elements.
4062
4338
  *
4339
+ * **Details**
4340
+ *
4063
4341
  * - Preserves `NonEmptyArray` in the return type.
4064
4342
  * - An empty input produces an empty result.
4065
4343
  *
@@ -4080,6 +4358,8 @@ export const intersperse: {
4080
4358
  /**
4081
4359
  * Places a separator element between every pair of elements.
4082
4360
  *
4361
+ * **Details**
4362
+ *
4083
4363
  * - Preserves `NonEmptyArray` in the return type.
4084
4364
  * - An empty input produces an empty result.
4085
4365
  *
@@ -4100,6 +4380,8 @@ export const intersperse: {
4100
4380
  /**
4101
4381
  * Places a separator element between every pair of elements.
4102
4382
  *
4383
+ * **Details**
4384
+ *
4103
4385
  * - Preserves `NonEmptyArray` in the return type.
4104
4386
  * - An empty input produces an empty result.
4105
4387
  *
@@ -4120,6 +4402,8 @@ export const intersperse: {
4120
4402
  /**
4121
4403
  * Places a separator element between every pair of elements.
4122
4404
  *
4405
+ * **Details**
4406
+ *
4123
4407
  * - Preserves `NonEmptyArray` in the return type.
4124
4408
  * - An empty input produces an empty result.
4125
4409
  *
@@ -4403,6 +4687,8 @@ export const setLastNonEmpty: {
4403
4687
  * Rotates an array by `n` steps. Positive `n` rotates right; negative `n`
4404
4688
  * rotates left.
4405
4689
  *
4690
+ * **Details**
4691
+ *
4406
4692
  * - `n` is rounded to the nearest integer before rotating.
4407
4693
  * - Preserves `NonEmptyArray` in the return type.
4408
4694
  * - Returns a copy for empty arrays or when the normalized rotation is `0`.
@@ -4423,6 +4709,8 @@ export const rotate: {
4423
4709
  * Rotates an array by `n` steps. Positive `n` rotates right; negative `n`
4424
4710
  * rotates left.
4425
4711
  *
4712
+ * **Details**
4713
+ *
4426
4714
  * - `n` is rounded to the nearest integer before rotating.
4427
4715
  * - Preserves `NonEmptyArray` in the return type.
4428
4716
  * - Returns a copy for empty arrays or when the normalized rotation is `0`.
@@ -4443,6 +4731,8 @@ export const rotate: {
4443
4731
  * Rotates an array by `n` steps. Positive `n` rotates right; negative `n`
4444
4732
  * rotates left.
4445
4733
  *
4734
+ * **Details**
4735
+ *
4446
4736
  * - `n` is rounded to the nearest integer before rotating.
4447
4737
  * - Preserves `NonEmptyArray` in the return type.
4448
4738
  * - Returns a copy for empty arrays or when the normalized rotation is `0`.
@@ -4463,6 +4753,8 @@ export const rotate: {
4463
4753
  * Rotates an array by `n` steps. Positive `n` rotates right; negative `n`
4464
4754
  * rotates left.
4465
4755
  *
4756
+ * **Details**
4757
+ *
4466
4758
  * - `n` is rounded to the nearest integer before rotating.
4467
4759
  * - Preserves `NonEmptyArray` in the return type.
4468
4760
  * - Returns a copy for empty arrays or when the normalized rotation is `0`.
@@ -4587,6 +4879,8 @@ export const contains: {
4587
4879
  * Repeatedly applies a function that consumes a prefix of the array and
4588
4880
  * produces a value plus the remaining elements, collecting the values.
4589
4881
  *
4882
+ * **Details**
4883
+ *
4590
4884
  * - The function receives a `NonEmptyReadonlyArray` and returns
4591
4885
  * `[value, rest]`.
4592
4886
  * - Continues until the remaining array is empty.
@@ -4615,6 +4909,8 @@ export const chop: {
4615
4909
  * Repeatedly applies a function that consumes a prefix of the array and
4616
4910
  * produces a value plus the remaining elements, collecting the values.
4617
4911
  *
4912
+ * **Details**
4913
+ *
4618
4914
  * - The function receives a `NonEmptyReadonlyArray` and returns
4619
4915
  * `[value, rest]`.
4620
4916
  * - Continues until the remaining array is empty.
@@ -4645,6 +4941,8 @@ export const chop: {
4645
4941
  * Repeatedly applies a function that consumes a prefix of the array and
4646
4942
  * produces a value plus the remaining elements, collecting the values.
4647
4943
  *
4944
+ * **Details**
4945
+ *
4648
4946
  * - The function receives a `NonEmptyReadonlyArray` and returns
4649
4947
  * `[value, rest]`.
4650
4948
  * - Continues until the remaining array is empty.
@@ -4676,6 +4974,8 @@ export const chop: {
4676
4974
  * Repeatedly applies a function that consumes a prefix of the array and
4677
4975
  * produces a value plus the remaining elements, collecting the values.
4678
4976
  *
4977
+ * **Details**
4978
+ *
4679
4979
  * - The function receives a `NonEmptyReadonlyArray` and returns
4680
4980
  * `[value, rest]`.
4681
4981
  * - Continues until the remaining array is empty.
@@ -4725,6 +5025,8 @@ export const chop: {
4725
5025
  /**
4726
5026
  * Splits an iterable into two arrays at the given index.
4727
5027
  *
5028
+ * **Details**
5029
+ *
4728
5030
  * - `n` can be `0` (all elements in the second array).
4729
5031
  * - `n` is floored to an integer.
4730
5032
  *
@@ -4746,6 +5048,8 @@ export const splitAt: {
4746
5048
  /**
4747
5049
  * Splits an iterable into two arrays at the given index.
4748
5050
  *
5051
+ * **Details**
5052
+ *
4749
5053
  * - `n` can be `0` (all elements in the second array).
4750
5054
  * - `n` is floored to an integer.
4751
5055
  *
@@ -4767,6 +5071,8 @@ export const splitAt: {
4767
5071
  /**
4768
5072
  * Splits an iterable into two arrays at the given index.
4769
5073
  *
5074
+ * **Details**
5075
+ *
4770
5076
  * - `n` can be `0` (all elements in the second array).
4771
5077
  * - `n` is floored to an integer.
4772
5078
  *
@@ -4864,6 +5170,8 @@ export const splitAtNonEmpty: {
4864
5170
  /**
4865
5171
  * Splits an iterable into `n` roughly equal-sized chunks.
4866
5172
  *
5173
+ * **Details**
5174
+ *
4867
5175
  * - Uses `chunksOf(ceil(length / n))` internally.
4868
5176
  * - The last chunk may be shorter.
4869
5177
  *
@@ -4884,6 +5192,8 @@ export const split: {
4884
5192
  /**
4885
5193
  * Splits an iterable into `n` roughly equal-sized chunks.
4886
5194
  *
5195
+ * **Details**
5196
+ *
4887
5197
  * - Uses `chunksOf(ceil(length / n))` internally.
4888
5198
  * - The last chunk may be shorter.
4889
5199
  *
@@ -4904,6 +5214,8 @@ export const split: {
4904
5214
  /**
4905
5215
  * Splits an iterable into `n` roughly equal-sized chunks.
4906
5216
  *
5217
+ * **Details**
5218
+ *
4907
5219
  * - Uses `chunksOf(ceil(length / n))` internally.
4908
5220
  * - The last chunk may be shorter.
4909
5221
  *
@@ -4992,6 +5304,8 @@ export const splitWhere: {
4992
5304
  /**
4993
5305
  * Creates a shallow copy of an array.
4994
5306
  *
5307
+ * **Details**
5308
+ *
4995
5309
  * - Preserves `NonEmptyArray` in the return type.
4996
5310
  * - Useful when you need a distinct reference (e.g. before mutating).
4997
5311
  *
@@ -5015,6 +5329,8 @@ export const copy: {
5015
5329
  /**
5016
5330
  * Creates a shallow copy of an array.
5017
5331
  *
5332
+ * **Details**
5333
+ *
5018
5334
  * - Preserves `NonEmptyArray` in the return type.
5019
5335
  * - Useful when you need a distinct reference (e.g. before mutating).
5020
5336
  *
@@ -5038,6 +5354,8 @@ export const copy: {
5038
5354
  /**
5039
5355
  * Creates a shallow copy of an array.
5040
5356
  *
5357
+ * **Details**
5358
+ *
5041
5359
  * - Preserves `NonEmptyArray` in the return type.
5042
5360
  * - Useful when you need a distinct reference (e.g. before mutating).
5043
5361
  *
@@ -5064,6 +5382,8 @@ export const copy: {
5064
5382
  * Pads or truncates an array to exactly `n` elements, filling with `fill`
5065
5383
  * if the array is shorter, or slicing if longer.
5066
5384
  *
5385
+ * **Details**
5386
+ *
5067
5387
  * - Returns an empty array when `n <= 0`.
5068
5388
  *
5069
5389
  * **Example** (Padding an array)
@@ -5085,6 +5405,8 @@ export const pad: {
5085
5405
  * Pads or truncates an array to exactly `n` elements, filling with `fill`
5086
5406
  * if the array is shorter, or slicing if longer.
5087
5407
  *
5408
+ * **Details**
5409
+ *
5088
5410
  * - Returns an empty array when `n <= 0`.
5089
5411
  *
5090
5412
  * **Example** (Padding an array)
@@ -5108,6 +5430,8 @@ export const pad: {
5108
5430
  * Pads or truncates an array to exactly `n` elements, filling with `fill`
5109
5431
  * if the array is shorter, or slicing if longer.
5110
5432
  *
5433
+ * **Details**
5434
+ *
5111
5435
  * - Returns an empty array when `n <= 0`.
5112
5436
  *
5113
5437
  * **Example** (Padding an array)
@@ -5139,6 +5463,8 @@ export const pad: {
5139
5463
  * Splits an iterable into chunks of length `n`. The last chunk may be shorter
5140
5464
  * if `n` does not evenly divide the length.
5141
5465
  *
5466
+ * **Details**
5467
+ *
5142
5468
  * - `chunksOf(n)([])` is `[]`, not `[[]]`.
5143
5469
  * - Each chunk is a `NonEmptyArray`.
5144
5470
  * - Preserves `NonEmptyArray` in the outer return type.
@@ -5162,6 +5488,8 @@ export const chunksOf: {
5162
5488
  * Splits an iterable into chunks of length `n`. The last chunk may be shorter
5163
5489
  * if `n` does not evenly divide the length.
5164
5490
  *
5491
+ * **Details**
5492
+ *
5165
5493
  * - `chunksOf(n)([])` is `[]`, not `[[]]`.
5166
5494
  * - Each chunk is a `NonEmptyArray`.
5167
5495
  * - Preserves `NonEmptyArray` in the outer return type.
@@ -5187,6 +5515,8 @@ export const chunksOf: {
5187
5515
  * Splits an iterable into chunks of length `n`. The last chunk may be shorter
5188
5516
  * if `n` does not evenly divide the length.
5189
5517
  *
5518
+ * **Details**
5519
+ *
5190
5520
  * - `chunksOf(n)([])` is `[]`, not `[[]]`.
5191
5521
  * - Each chunk is a `NonEmptyArray`.
5192
5522
  * - Preserves `NonEmptyArray` in the outer return type.
@@ -5210,6 +5540,8 @@ export const chunksOf: {
5210
5540
  * Splits an iterable into chunks of length `n`. The last chunk may be shorter
5211
5541
  * if `n` does not evenly divide the length.
5212
5542
  *
5543
+ * **Details**
5544
+ *
5213
5545
  * - `chunksOf(n)([])` is `[]`, not `[[]]`.
5214
5546
  * - Each chunk is a `NonEmptyArray`.
5215
5547
  * - Preserves `NonEmptyArray` in the outer return type.
@@ -5240,6 +5572,8 @@ export const chunksOf: {
5240
5572
  /**
5241
5573
  * Creates overlapping sliding windows of size `n`.
5242
5574
  *
5575
+ * **Details**
5576
+ *
5243
5577
  * - Returns an empty array if `n <= 0` or the array has fewer than `n` elements.
5244
5578
  * - Each window is a tuple of exactly `n` elements.
5245
5579
  *
@@ -5261,6 +5595,8 @@ export const window: {
5261
5595
  /**
5262
5596
  * Creates overlapping sliding windows of size `n`.
5263
5597
  *
5598
+ * **Details**
5599
+ *
5264
5600
  * - Returns an empty array if `n <= 0` or the array has fewer than `n` elements.
5265
5601
  * - Each window is a tuple of exactly `n` elements.
5266
5602
  *
@@ -5282,6 +5618,8 @@ export const window: {
5282
5618
  /**
5283
5619
  * Creates overlapping sliding windows of size `n`.
5284
5620
  *
5621
+ * **Details**
5622
+ *
5285
5623
  * - Returns an empty array if `n <= 0` or the array has fewer than `n` elements.
5286
5624
  * - Each window is a tuple of exactly `n` elements.
5287
5625
  *
@@ -5314,6 +5652,8 @@ export const window: {
5314
5652
  /**
5315
5653
  * Groups consecutive equal elements using a custom equivalence function.
5316
5654
  *
5655
+ * **Details**
5656
+ *
5317
5657
  * - Only groups **adjacent** elements — non-adjacent duplicates stay separate.
5318
5658
  * - Requires a `NonEmptyReadonlyArray`.
5319
5659
  *
@@ -5336,6 +5676,8 @@ export const groupWith: {
5336
5676
  /**
5337
5677
  * Groups consecutive equal elements using a custom equivalence function.
5338
5678
  *
5679
+ * **Details**
5680
+ *
5339
5681
  * - Only groups **adjacent** elements — non-adjacent duplicates stay separate.
5340
5682
  * - Requires a `NonEmptyReadonlyArray`.
5341
5683
  *
@@ -5358,6 +5700,8 @@ export const groupWith: {
5358
5700
  /**
5359
5701
  * Groups consecutive equal elements using a custom equivalence function.
5360
5702
  *
5703
+ * **Details**
5704
+ *
5361
5705
  * - Only groups **adjacent** elements — non-adjacent duplicates stay separate.
5362
5706
  * - Requires a `NonEmptyReadonlyArray`.
5363
5707
  *
@@ -5402,6 +5746,8 @@ export const groupWith: {
5402
5746
  /**
5403
5747
  * Groups consecutive equal elements using `Equal.equivalence()`.
5404
5748
  *
5749
+ * **Details**
5750
+ *
5405
5751
  * - Only groups **adjacent** elements.
5406
5752
  *
5407
5753
  * **Example** (Grouping adjacent equal elements)
@@ -5426,6 +5772,8 @@ export const group: <A>(self: NonEmptyReadonlyArray<A>) => NonEmptyArray<NonEmpt
5426
5772
  * Groups elements into a record by a key-returning function. Each key maps
5427
5773
  * to a `NonEmptyArray` of elements that produced that key.
5428
5774
  *
5775
+ * **Details**
5776
+ *
5429
5777
  * - Unlike {@link group}/{@link groupWith}, elements do not need to be
5430
5778
  * adjacent to be grouped together.
5431
5779
  * - Key function must return a `string` or `symbol`.
@@ -5457,6 +5805,8 @@ export const groupBy: {
5457
5805
  * Groups elements into a record by a key-returning function. Each key maps
5458
5806
  * to a `NonEmptyArray` of elements that produced that key.
5459
5807
  *
5808
+ * **Details**
5809
+ *
5460
5810
  * - Unlike {@link group}/{@link groupWith}, elements do not need to be
5461
5811
  * adjacent to be grouped together.
5462
5812
  * - Key function must return a `string` or `symbol`.
@@ -5488,6 +5838,8 @@ export const groupBy: {
5488
5838
  * Groups elements into a record by a key-returning function. Each key maps
5489
5839
  * to a `NonEmptyArray` of elements that produced that key.
5490
5840
  *
5841
+ * **Details**
5842
+ *
5491
5843
  * - Unlike {@link group}/{@link groupWith}, elements do not need to be
5492
5844
  * adjacent to be grouped together.
5493
5845
  * - Key function must return a `string` or `symbol`.
@@ -6140,6 +6492,8 @@ export declare namespace ReadonlyArray {
6140
6492
  /**
6141
6493
  * Transforms each element using a function, returning a new array.
6142
6494
  *
6495
+ * **Details**
6496
+ *
6143
6497
  * - The function receives `(element, index)`.
6144
6498
  * - Preserves `NonEmptyArray` in the return type.
6145
6499
  *
@@ -6160,6 +6514,8 @@ export const map: {
6160
6514
  /**
6161
6515
  * Transforms each element using a function, returning a new array.
6162
6516
  *
6517
+ * **Details**
6518
+ *
6163
6519
  * - The function receives `(element, index)`.
6164
6520
  * - Preserves `NonEmptyArray` in the return type.
6165
6521
  *
@@ -6180,6 +6536,8 @@ export const map: {
6180
6536
  /**
6181
6537
  * Transforms each element using a function, returning a new array.
6182
6538
  *
6539
+ * **Details**
6540
+ *
6183
6541
  * - The function receives `(element, index)`.
6184
6542
  * - Preserves `NonEmptyArray` in the return type.
6185
6543
  *
@@ -6202,6 +6560,8 @@ export const map: {
6202
6560
  /**
6203
6561
  * Maps each element to an array and flattens the results into a single array.
6204
6562
  *
6563
+ * **Details**
6564
+ *
6205
6565
  * - The function receives `(element, index)`.
6206
6566
  * - Returns `NonEmptyArray` when both input and mapped arrays are non-empty.
6207
6567
  *
@@ -6223,6 +6583,8 @@ export const flatMap: {
6223
6583
  /**
6224
6584
  * Maps each element to an array and flattens the results into a single array.
6225
6585
  *
6586
+ * **Details**
6587
+ *
6226
6588
  * - The function receives `(element, index)`.
6227
6589
  * - Returns `NonEmptyArray` when both input and mapped arrays are non-empty.
6228
6590
  *
@@ -6244,6 +6606,8 @@ export const flatMap: {
6244
6606
  /**
6245
6607
  * Maps each element to an array and flattens the results into a single array.
6246
6608
  *
6609
+ * **Details**
6610
+ *
6247
6611
  * - The function receives `(element, index)`.
6248
6612
  * - Returns `NonEmptyArray` when both input and mapped arrays are non-empty.
6249
6613
  *
@@ -6268,6 +6632,8 @@ export const flatMap: {
6268
6632
  /**
6269
6633
  * Maps each element to an array and flattens the results into a single array.
6270
6634
  *
6635
+ * **Details**
6636
+ *
6271
6637
  * - The function receives `(element, index)`.
6272
6638
  * - Returns `NonEmptyArray` when both input and mapped arrays are non-empty.
6273
6639
  *
@@ -6419,6 +6785,8 @@ export const getSuccesses = <T extends Iterable<Result.Result<any, any>>>(
6419
6785
  /**
6420
6786
  * Keeps transformed values for elements where a `Filter` succeeds.
6421
6787
  *
6788
+ * **Details**
6789
+ *
6422
6790
  * - The filter receives `(element, index)`.
6423
6791
  * - Failures are discarded.
6424
6792
  *
@@ -6440,6 +6808,8 @@ export const filterMap: {
6440
6808
  /**
6441
6809
  * Keeps transformed values for elements where a `Filter` succeeds.
6442
6810
  *
6811
+ * **Details**
6812
+ *
6443
6813
  * - The filter receives `(element, index)`.
6444
6814
  * - Failures are discarded.
6445
6815
  *
@@ -6461,6 +6831,8 @@ export const filterMap: {
6461
6831
  /**
6462
6832
  * Keeps transformed values for elements where a `Filter` succeeds.
6463
6833
  *
6834
+ * **Details**
6835
+ *
6464
6836
  * - The filter receives `(element, index)`.
6465
6837
  * - Failures are discarded.
6466
6838
  *
@@ -6494,6 +6866,8 @@ export const filterMap: {
6494
6866
  /**
6495
6867
  * Keeps only elements satisfying a predicate (or refinement).
6496
6868
  *
6869
+ * **Details**
6870
+ *
6497
6871
  * - The predicate receives `(element, index)`.
6498
6872
  * - Supports refinements for type narrowing.
6499
6873
  *
@@ -6514,6 +6888,8 @@ export const filter: {
6514
6888
  /**
6515
6889
  * Keeps only elements satisfying a predicate (or refinement).
6516
6890
  *
6891
+ * **Details**
6892
+ *
6517
6893
  * - The predicate receives `(element, index)`.
6518
6894
  * - Supports refinements for type narrowing.
6519
6895
  *
@@ -6534,6 +6910,8 @@ export const filter: {
6534
6910
  /**
6535
6911
  * Keeps only elements satisfying a predicate (or refinement).
6536
6912
  *
6913
+ * **Details**
6914
+ *
6537
6915
  * - The predicate receives `(element, index)`.
6538
6916
  * - Supports refinements for type narrowing.
6539
6917
  *
@@ -6554,6 +6932,8 @@ export const filter: {
6554
6932
  /**
6555
6933
  * Keeps only elements satisfying a predicate (or refinement).
6556
6934
  *
6935
+ * **Details**
6936
+ *
6557
6937
  * - The predicate receives `(element, index)`.
6558
6938
  * - Supports refinements for type narrowing.
6559
6939
  *
@@ -6574,6 +6954,8 @@ export const filter: {
6574
6954
  /**
6575
6955
  * Keeps only elements satisfying a predicate (or refinement).
6576
6956
  *
6957
+ * **Details**
6958
+ *
6577
6959
  * - The predicate receives `(element, index)`.
6578
6960
  * - Supports refinements for type narrowing.
6579
6961
  *
@@ -6608,6 +6990,8 @@ export const filter: {
6608
6990
  /**
6609
6991
  * Splits an iterable using a `Filter` into failures and successes.
6610
6992
  *
6993
+ * **Details**
6994
+ *
6611
6995
  * - Returns `[excluded, satisfying]`.
6612
6996
  * - The filter receives `(element, index)`.
6613
6997
  *
@@ -6632,6 +7016,8 @@ export const partition: {
6632
7016
  /**
6633
7017
  * Splits an iterable using a `Filter` into failures and successes.
6634
7018
  *
7019
+ * **Details**
7020
+ *
6635
7021
  * - Returns `[excluded, satisfying]`.
6636
7022
  * - The filter receives `(element, index)`.
6637
7023
  *
@@ -6656,6 +7042,8 @@ export const partition: {
6656
7042
  /**
6657
7043
  * Splits an iterable using a `Filter` into failures and successes.
6658
7044
  *
7045
+ * **Details**
7046
+ *
6659
7047
  * - Returns `[excluded, satisfying]`.
6660
7048
  * - The filter receives `(element, index)`.
6661
7049
  *
@@ -6701,6 +7089,8 @@ export const partition: {
6701
7089
  /**
6702
7090
  * Separates an iterable of `Result`s into failure values and success values.
6703
7091
  *
7092
+ * **Details**
7093
+ *
6704
7094
  * - Returns `[failures, successes]`.
6705
7095
  * - Equivalent to `partition(identity)`.
6706
7096
  *
@@ -6732,6 +7122,8 @@ export const separate: <T extends Iterable<Result.Result<any, any>>>(
6732
7122
  /**
6733
7123
  * Folds an iterable from left to right into a single value.
6734
7124
  *
7125
+ * **Details**
7126
+ *
6735
7127
  * - The function receives `(accumulator, element, index)`.
6736
7128
  *
6737
7129
  * **Example** (Summing an array)
@@ -6752,6 +7144,8 @@ export const reduce: {
6752
7144
  /**
6753
7145
  * Folds an iterable from left to right into a single value.
6754
7146
  *
7147
+ * **Details**
7148
+ *
6755
7149
  * - The function receives `(accumulator, element, index)`.
6756
7150
  *
6757
7151
  * **Example** (Summing an array)
@@ -6772,6 +7166,8 @@ export const reduce: {
6772
7166
  /**
6773
7167
  * Folds an iterable from left to right into a single value.
6774
7168
  *
7169
+ * **Details**
7170
+ *
6775
7171
  * - The function receives `(accumulator, element, index)`.
6776
7172
  *
6777
7173
  * **Example** (Summing an array)
@@ -6798,6 +7194,8 @@ export const reduce: {
6798
7194
  /**
6799
7195
  * Folds an iterable from right to left into a single value.
6800
7196
  *
7197
+ * **Details**
7198
+ *
6801
7199
  * - The function receives `(accumulator, element, index)`.
6802
7200
  *
6803
7201
  * **Example** (Right-to-left fold)
@@ -6818,6 +7216,8 @@ export const reduceRight: {
6818
7216
  /**
6819
7217
  * Folds an iterable from right to left into a single value.
6820
7218
  *
7219
+ * **Details**
7220
+ *
6821
7221
  * - The function receives `(accumulator, element, index)`.
6822
7222
  *
6823
7223
  * **Example** (Right-to-left fold)
@@ -6838,6 +7238,8 @@ export const reduceRight: {
6838
7238
  /**
6839
7239
  * Folds an iterable from right to left into a single value.
6840
7240
  *
7241
+ * **Details**
7242
+ *
6841
7243
  * - The function receives `(accumulator, element, index)`.
6842
7244
  *
6843
7245
  * **Example** (Right-to-left fold)
@@ -7244,6 +7646,8 @@ export const some: {
7244
7646
  * Applies a function to each suffix of the array (starting from each index),
7245
7647
  * collecting the results.
7246
7648
  *
7649
+ * **Details**
7650
+ *
7247
7651
  * - For index `i`, the function receives `self.slice(i)`.
7248
7652
  *
7249
7653
  * **Example** (Suffix lengths)
@@ -7262,6 +7666,8 @@ export const extend: {
7262
7666
  * Applies a function to each suffix of the array (starting from each index),
7263
7667
  * collecting the results.
7264
7668
  *
7669
+ * **Details**
7670
+ *
7265
7671
  * - For index `i`, the function receives `self.slice(i)`.
7266
7672
  *
7267
7673
  * **Example** (Suffix lengths)
@@ -7280,6 +7686,8 @@ export const extend: {
7280
7686
  * Applies a function to each suffix of the array (starting from each index),
7281
7687
  * collecting the results.
7282
7688
  *
7689
+ * **Details**
7690
+ *
7283
7691
  * - For index `i`, the function receives `self.slice(i)`.
7284
7692
  *
7285
7693
  * **Example** (Suffix lengths)
@@ -7668,6 +8076,8 @@ export const dedupe = <S extends Iterable<any>>(
7668
8076
  /**
7669
8077
  * Removes consecutive duplicate elements using a custom equivalence.
7670
8078
  *
8079
+ * **Details**
8080
+ *
7671
8081
  * - Non-adjacent duplicates are preserved.
7672
8082
  *
7673
8083
  * **Example** (Deduplicating adjacent elements)
@@ -7689,6 +8099,8 @@ export const dedupeAdjacentWith: {
7689
8099
  /**
7690
8100
  * Removes consecutive duplicate elements using a custom equivalence.
7691
8101
  *
8102
+ * **Details**
8103
+ *
7692
8104
  * - Non-adjacent duplicates are preserved.
7693
8105
  *
7694
8106
  * **Example** (Deduplicating adjacent elements)
@@ -7710,6 +8122,8 @@ export const dedupeAdjacentWith: {
7710
8122
  /**
7711
8123
  * Removes consecutive duplicate elements using a custom equivalence.
7712
8124
  *
8125
+ * **Details**
8126
+ *
7713
8127
  * - Non-adjacent duplicates are preserved.
7714
8128
  *
7715
8129
  * **Example** (Deduplicating adjacent elements)
@@ -7815,6 +8229,8 @@ export const join: {
7815
8229
  /**
7816
8230
  * Maps over an array while threading an accumulator through each step, returning both the final state and the mapped array.
7817
8231
  *
8232
+ * **Details**
8233
+ *
7818
8234
  * - Combines `map` and `reduce` in a single pass.
7819
8235
  * - The callback receives the current state, element, and index, and returns `[nextState, mappedValue]`.
7820
8236
  * - Returns `[finalState, mappedArray]`.
@@ -7839,6 +8255,8 @@ export const mapAccum: {
7839
8255
  /**
7840
8256
  * Maps over an array while threading an accumulator through each step, returning both the final state and the mapped array.
7841
8257
  *
8258
+ * **Details**
8259
+ *
7842
8260
  * - Combines `map` and `reduce` in a single pass.
7843
8261
  * - The callback receives the current state, element, and index, and returns `[nextState, mappedValue]`.
7844
8262
  * - Returns `[finalState, mappedArray]`.
@@ -7863,6 +8281,8 @@ export const mapAccum: {
7863
8281
  /**
7864
8282
  * Maps over an array while threading an accumulator through each step, returning both the final state and the mapped array.
7865
8283
  *
8284
+ * **Details**
8285
+ *
7866
8286
  * - Combines `map` and `reduce` in a single pass.
7867
8287
  * - The callback receives the current state, element, and index, and returns `[nextState, mappedValue]`.
7868
8288
  * - Returns `[finalState, mappedArray]`.
@@ -7907,6 +8327,8 @@ export const mapAccum: {
7907
8327
  /**
7908
8328
  * Computes the cartesian product of two arrays, applying a combiner to each pair.
7909
8329
  *
8330
+ * **Details**
8331
+ *
7910
8332
  * - Produces every combination of an element from `self` with an element from `that`.
7911
8333
  * - Result length is `self.length * that.length`.
7912
8334
  * - Order: iterates `that` for each element of `self`.
@@ -7929,6 +8351,8 @@ export const cartesianWith: {
7929
8351
  /**
7930
8352
  * Computes the cartesian product of two arrays, applying a combiner to each pair.
7931
8353
  *
8354
+ * **Details**
8355
+ *
7932
8356
  * - Produces every combination of an element from `self` with an element from `that`.
7933
8357
  * - Result length is `self.length * that.length`.
7934
8358
  * - Order: iterates `that` for each element of `self`.
@@ -7951,6 +8375,8 @@ export const cartesianWith: {
7951
8375
  /**
7952
8376
  * Computes the cartesian product of two arrays, applying a combiner to each pair.
7953
8377
  *
8378
+ * **Details**
8379
+ *
7954
8380
  * - Produces every combination of an element from `self` with an element from `that`.
7955
8381
  * - Result length is `self.length * that.length`.
7956
8382
  * - Order: iterates `that` for each element of `self`.
@@ -7979,6 +8405,8 @@ export const cartesianWith: {
7979
8405
  /**
7980
8406
  * Computes the cartesian product of two arrays, returning all pairs as tuples.
7981
8407
  *
8408
+ * **Details**
8409
+ *
7982
8410
  * - Produces every `[a, b]` combination of an element from `self` with an element from `that`.
7983
8411
  * - Result length is `self.length * that.length`.
7984
8412
  *
@@ -8000,6 +8428,8 @@ export const cartesian: {
8000
8428
  /**
8001
8429
  * Computes the cartesian product of two arrays, returning all pairs as tuples.
8002
8430
  *
8431
+ * **Details**
8432
+ *
8003
8433
  * - Produces every `[a, b]` combination of an element from `self` with an element from `that`.
8004
8434
  * - Result length is `self.length * that.length`.
8005
8435
  *
@@ -8021,6 +8451,8 @@ export const cartesian: {
8021
8451
  /**
8022
8452
  * Computes the cartesian product of two arrays, returning all pairs as tuples.
8023
8453
  *
8454
+ * **Details**
8455
+ *
8024
8456
  * - Produces every `[a, b]` combination of an element from `self` with an element from `that`.
8025
8457
  * - Result length is `self.length * that.length`.
8026
8458
  *
@@ -8051,6 +8483,8 @@ export const cartesian: {
8051
8483
  /**
8052
8484
  * Starting point for the "do simulation" — an array comprehension pattern.
8053
8485
  *
8486
+ * **When to use**
8487
+ *
8054
8488
  * - Begin a pipeline with `Do`, then use {@link bind} to introduce array variables and {@link let_ let} for plain values.
8055
8489
  * - Each `bind` produces the cartesian product of all bound variables (like nested loops).
8056
8490
  * - Use `filter` and `map` in the pipeline to add conditions and transformations.
@@ -8082,6 +8516,8 @@ export const Do: ReadonlyArray<{}> = of({})
8082
8516
  /**
8083
8517
  * Introduces a new array variable into a do-notation scope, producing the cartesian product with all previous bindings.
8084
8518
  *
8519
+ * **Details**
8520
+ *
8085
8521
  * - Each `bind` call adds a named property to the accumulated object.
8086
8522
  * - The callback receives the current scope and must return an array.
8087
8523
  * - Equivalent to `flatMap` + merging the new value into the scope object.
@@ -8111,6 +8547,8 @@ export const bind: {
8111
8547
  /**
8112
8548
  * Introduces a new array variable into a do-notation scope, producing the cartesian product with all previous bindings.
8113
8549
  *
8550
+ * **Details**
8551
+ *
8114
8552
  * - Each `bind` call adds a named property to the accumulated object.
8115
8553
  * - The callback receives the current scope and must return an array.
8116
8554
  * - Equivalent to `flatMap` + merging the new value into the scope object.
@@ -8142,6 +8580,8 @@ export const bind: {
8142
8580
  /**
8143
8581
  * Introduces a new array variable into a do-notation scope, producing the cartesian product with all previous bindings.
8144
8582
  *
8583
+ * **Details**
8584
+ *
8145
8585
  * - Each `bind` call adds a named property to the accumulated object.
8146
8586
  * - The callback receives the current scope and must return an array.
8147
8587
  * - Equivalent to `flatMap` + merging the new value into the scope object.
@@ -8177,6 +8617,8 @@ export const bind: {
8177
8617
  /**
8178
8618
  * Names the elements of an array by wrapping each in an object with the given key, starting a do-notation scope.
8179
8619
  *
8620
+ * **Details**
8621
+ *
8180
8622
  * - Equivalent to `Array.map(self, (a) => ({ [tag]: a }))`.
8181
8623
  * - Alternative to starting with `Do` + `bind`; useful when you already have an array.
8182
8624
  *
@@ -8202,6 +8644,8 @@ export const bindTo: {
8202
8644
  /**
8203
8645
  * Names the elements of an array by wrapping each in an object with the given key, starting a do-notation scope.
8204
8646
  *
8647
+ * **Details**
8648
+ *
8205
8649
  * - Equivalent to `Array.map(self, (a) => ({ [tag]: a }))`.
8206
8650
  * - Alternative to starting with `Do` + `bind`; useful when you already have an array.
8207
8651
  *
@@ -8227,6 +8671,8 @@ export const bindTo: {
8227
8671
  /**
8228
8672
  * Names the elements of an array by wrapping each in an object with the given key, starting a do-notation scope.
8229
8673
  *
8674
+ * **Details**
8675
+ *
8230
8676
  * - Equivalent to `Array.map(self, (a) => ({ [tag]: a }))`.
8231
8677
  * - Alternative to starting with `Do` + `bind`; useful when you already have an array.
8232
8678
  *
@@ -8267,6 +8713,8 @@ export {
8267
8713
  /**
8268
8714
  * Adds a computed plain value to the do-notation scope without introducing a new array dimension.
8269
8715
  *
8716
+ * **Details**
8717
+ *
8270
8718
  * - Unlike {@link bind}, the callback returns a single value (not an array), so no cartesian product occurs.
8271
8719
  * - Useful for derived or intermediate values that depend on previously bound variables.
8272
8720
  *
@@ -8322,6 +8770,8 @@ export function makeReducerConcat<A>(): Reducer.Reducer<Array<A>> {
8322
8770
  /**
8323
8771
  * Counts the elements in an iterable that satisfy a predicate.
8324
8772
  *
8773
+ * **Details**
8774
+ *
8325
8775
  * - The predicate receives both the element and its index.
8326
8776
  * - Returns `0` for an empty iterable.
8327
8777
  *
@@ -8343,6 +8793,8 @@ export const countBy: {
8343
8793
  /**
8344
8794
  * Counts the elements in an iterable that satisfy a predicate.
8345
8795
  *
8796
+ * **Details**
8797
+ *
8346
8798
  * - The predicate receives both the element and its index.
8347
8799
  * - Returns `0` for an empty iterable.
8348
8800
  *
@@ -8364,6 +8816,8 @@ export const countBy: {
8364
8816
  /**
8365
8817
  * Counts the elements in an iterable that satisfy a predicate.
8366
8818
  *
8819
+ * **Details**
8820
+ *
8367
8821
  * - The predicate receives both the element and its index.
8368
8822
  * - Returns `0` for an empty iterable.
8369
8823
  *