ctx-core 2.2.0 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (892) hide show
  1. package/all/LessThan/index.d.ts +10 -0
  2. package/all/LessThan/index.js +1 -0
  3. package/all/MAX_INT/index.d.ts +1 -0
  4. package/all/MAX_INT/index.js +1 -0
  5. package/all/MIN_INT/index.d.ts +1 -0
  6. package/all/MIN_INT/index.js +1 -0
  7. package/all/Map__object/index.d.ts +5 -0
  8. package/all/Map__object/index.js +9 -0
  9. package/all/Map__object/index.test.ts +7 -0
  10. package/all/NoRepetition/index.d.ts +6 -0
  11. package/all/NoRepetition/index.js +1 -0
  12. package/all/NumericRange/index.d.ts +8 -0
  13. package/all/NumericRange/index.js +1 -0
  14. package/all/NumericUnit/index.d.ts +4 -0
  15. package/all/NumericUnit/index.js +1 -0
  16. package/all/PHI/index.d.ts +1 -0
  17. package/all/PHI/index.js +2 -0
  18. package/all/Request/index.d.ts +2 -0
  19. package/all/Request/index.js +2 -0
  20. package/all/Response/index.d.ts +1 -0
  21. package/all/Response/index.js +2 -0
  22. package/all/TagType/index.d.ts +2 -0
  23. package/all/TagType/index.js +1 -0
  24. package/all/Timeout/index.d.ts +1 -0
  25. package/all/Timeout/index.js +1 -0
  26. package/all/UnorderedTuple/index.d.ts +4 -0
  27. package/all/UnorderedTuple/index.js +1 -0
  28. package/all/a/index.d.ts +1 -0
  29. package/all/a/index.js +3 -0
  30. package/all/a_assign/index.d.ts +7 -0
  31. package/all/a_assign/index.js +12 -0
  32. package/all/a_in_idx_a_map/index.d.ts +12 -0
  33. package/all/a_in_idx_a_map/index.js +13 -0
  34. package/all/a_item/index.d.ts +12 -0
  35. package/all/a_item/index.js +1 -0
  36. package/all/a_length/index.d.ts +18 -0
  37. package/all/a_length/index.js +21 -0
  38. package/all/a_nowrap/index.d.ts +7 -0
  39. package/all/a_nowrap/index.js +1 -0
  40. package/all/a_present/index.d.ts +19 -0
  41. package/all/a_present/index.js +24 -0
  42. package/all/a_some/index.d.ts +13 -0
  43. package/all/a_some/index.js +20 -0
  44. package/all/abbrev_month_a/index.d.ts +2 -0
  45. package/all/abbrev_month_a/index.js +15 -0
  46. package/all/abbreviate_number_str/index.d.ts +10 -0
  47. package/all/abbreviate_number_str/index.js +28 -0
  48. package/all/acronym/index.d.ts +2 -0
  49. package/all/acronym/index.js +8 -0
  50. package/all/add/index.d.ts +11 -0
  51. package/all/add/index.js +24 -0
  52. package/all/add/index.test.ts +14 -0
  53. package/all/all_union_a/index.d.ts +10 -0
  54. package/all/all_union_a/index.js +8 -0
  55. package/all/and/index.d.ts +29 -0
  56. package/all/and/index.js +45 -0
  57. package/all/and/index.test.ts +10 -0
  58. package/all/and_call/index.d.ts +16 -0
  59. package/all/and_call/index.js +20 -0
  60. package/all/andand/index.d.ts +14 -0
  61. package/all/andand/index.js +19 -0
  62. package/all/andand_or/index.d.ts +13 -0
  63. package/all/andand_or/index.js +14 -0
  64. package/all/andandfn/index.d.ts +26 -0
  65. package/all/andandfn/index.js +39 -0
  66. package/all/apply/index.d.ts +14 -0
  67. package/all/apply/index.js +14 -0
  68. package/all/arg_i0_a/index.d.ts +11 -0
  69. package/all/arg_i0_a/index.js +11 -0
  70. package/all/array_types/index.d.ts +134 -0
  71. package/all/array_types/index.js +1 -0
  72. package/all/assign/index.d.ts +4 -0
  73. package/all/assign/index.js +5 -0
  74. package/all/assign_fn_key_a/index.d.ts +15 -0
  75. package/all/assign_fn_key_a/index.js +24 -0
  76. package/all/assign_unless_null/index.d.ts +7 -0
  77. package/all/assign_unless_null/index.js +11 -0
  78. package/all/async_gen_a/index.d.ts +3 -0
  79. package/all/async_gen_a/index.js +9 -0
  80. package/all/async_gen_a/index.test.ts +12 -0
  81. package/all/at_date/index.d.ts +1 -0
  82. package/all/at_date/index.js +9 -0
  83. package/all/atob/index.d.ts +3 -0
  84. package/all/atob/index.js +16 -0
  85. package/all/atob_Uint32Array/index.d.ts +5 -0
  86. package/all/atob_Uint32Array/index.js +16 -0
  87. package/all/bad_credentials/index.d.ts +30 -0
  88. package/all/bad_credentials/index.js +44 -0
  89. package/all/bad_gateway/index.d.ts +20 -0
  90. package/all/bad_gateway/index.js +45 -0
  91. package/all/bad_request/index.d.ts +20 -0
  92. package/all/bad_request/index.js +45 -0
  93. package/all/base16_random/index.d.ts +2 -0
  94. package/all/base16_random/index.js +14 -0
  95. package/all/base64__buffer/index.d.ts +6 -0
  96. package/all/base64__buffer/index.js +15 -0
  97. package/all/batch_queue/index.d.ts +5 -0
  98. package/all/batch_queue/index.js +44 -0
  99. package/all/batch_queue/index.test.ts +149 -0
  100. package/all/be/index.d.ts +5 -0
  101. package/all/be/index.js +11 -0
  102. package/all/be_/index.d.ts +124 -0
  103. package/all/be_/index.js +272 -0
  104. package/all/be_/index.test.ts +251 -0
  105. package/all/be_arg_triple/index.d.ts +21 -0
  106. package/all/be_arg_triple/index.js +41 -0
  107. package/all/be_prop_pair/index.d.ts +36 -0
  108. package/all/be_prop_pair/index.js +54 -0
  109. package/all/be_prop_pair/index.test.ts +137 -0
  110. package/all/binary_sort_rank/index.d.ts +12 -0
  111. package/all/binary_sort_rank/index.js +30 -0
  112. package/all/bind_apply/index.d.ts +17 -0
  113. package/all/bind_apply/index.js +18 -0
  114. package/all/bind_call/index.d.ts +21 -0
  115. package/all/bind_call/index.js +18 -0
  116. package/all/bind_map_apply/index.d.ts +17 -0
  117. package/all/bind_map_apply/index.js +19 -0
  118. package/all/bind_map_call/index.d.ts +18 -0
  119. package/all/bind_map_call/index.js +21 -0
  120. package/all/btoa/index.d.ts +3 -0
  121. package/all/btoa/index.js +18 -0
  122. package/all/btoa/index.test.ts +7 -0
  123. package/all/btoa_Uint32Array/index.d.ts +8 -0
  124. package/all/btoa_Uint32Array/index.js +20 -0
  125. package/all/buffer__base64/index.d.ts +6 -0
  126. package/all/buffer__base64/index.js +22 -0
  127. package/all/buffer__hex/index.d.ts +1 -0
  128. package/all/buffer__hex/index.js +14 -0
  129. package/all/call/index.d.ts +22 -0
  130. package/all/call/index.js +23 -0
  131. package/all/call_assign/index.d.ts +13 -0
  132. package/all/call_assign/index.js +18 -0
  133. package/all/call_fn_a/index.d.ts +7 -0
  134. package/all/call_fn_a/index.js +14 -0
  135. package/all/call_or_fn/index.d.ts +13 -0
  136. package/all/call_or_fn/index.js +20 -0
  137. package/all/case_insensitive_eql/index.d.ts +1 -0
  138. package/all/case_insensitive_eql/index.js +14 -0
  139. package/all/chain/index.d.ts +22 -0
  140. package/all/chain/index.js +48 -0
  141. package/all/chunk_aa/index.d.ts +35 -0
  142. package/all/chunk_aa/index.js +20 -0
  143. package/all/chunk_aa/index.test.ts +11 -0
  144. package/all/circular_idx/index.d.ts +10 -0
  145. package/all/circular_idx/index.js +13 -0
  146. package/all/clear_ctx/index.d.ts +10 -0
  147. package/all/clear_ctx/index.js +19 -0
  148. package/all/clone/index.d.ts +6 -0
  149. package/all/clone/index.js +9 -0
  150. package/all/clone_assign_fn_key_a/index.d.ts +14 -0
  151. package/all/clone_assign_fn_key_a/index.js +18 -0
  152. package/all/color_hex_rgb__comma_delim_str/index.d.ts +11 -0
  153. package/all/color_hex_rgb__comma_delim_str/index.js +16 -0
  154. package/all/color_hsv/index.d.ts +18 -0
  155. package/all/color_hsv/index.js +36 -0
  156. package/all/color_hsv_phi_rgb_a/index.d.ts +19 -0
  157. package/all/color_hsv_phi_rgb_a/index.js +32 -0
  158. package/all/color_invert_rgb_a/index.d.ts +12 -0
  159. package/all/color_invert_rgb_a/index.js +18 -0
  160. package/all/color_rgb/index.d.ts +7 -0
  161. package/all/color_rgb/index.js +22 -0
  162. package/all/color_rgb/index.test.ts +12 -0
  163. package/all/columns_nansum_matrix/index.d.ts +4 -0
  164. package/all/columns_nansum_matrix/index.js +17 -0
  165. package/all/combinators/index.d.ts +52 -0
  166. package/all/combinators/index.js +48 -0
  167. package/all/combinators/index.test.ts +8 -0
  168. package/all/comma_number_str/index.d.ts +2 -0
  169. package/all/comma_number_str/index.js +8 -0
  170. package/all/compact/index.d.ts +15 -0
  171. package/all/compact/index.js +27 -0
  172. package/all/compact_a_ctx/index.d.ts +11 -0
  173. package/all/compact_a_ctx/index.js +21 -0
  174. package/all/compare/index.d.ts +23 -0
  175. package/all/compare/index.js +32 -0
  176. package/all/compose/index.d.ts +9 -0
  177. package/all/compose/index.js +17 -0
  178. package/all/concat/index.d.ts +9 -0
  179. package/all/concat/index.js +17 -0
  180. package/all/concat_truthy_a/index.d.ts +15 -0
  181. package/all/concat_truthy_a/index.js +19 -0
  182. package/all/console__error/index.d.ts +7 -0
  183. package/all/console__error/index.js +18 -0
  184. package/all/crypto/index.d.ts +1 -0
  185. package/all/crypto/index.js +11 -0
  186. package/all/crypto__sign/index.d.ts +13 -0
  187. package/all/crypto__sign/index.js +18 -0
  188. package/all/ctx/index.d.ts +4 -0
  189. package/all/ctx/index.js +25 -0
  190. package/all/ctx/index.test.ts +16 -0
  191. package/all/currencies/index.d.ts +3 -0
  192. package/all/currencies/index.js +120 -0
  193. package/all/currency_code/index.d.ts +4 -0
  194. package/all/currency_code/index.js +1 -0
  195. package/all/currency_str/index.d.ts +23 -0
  196. package/all/currency_str/index.js +38 -0
  197. package/all/currency_symbol/index.d.ts +8 -0
  198. package/all/currency_symbol/index.js +19 -0
  199. package/all/curry/index.d.ts +14 -0
  200. package/all/curry/index.js +32 -0
  201. package/all/date/index.d.ts +15 -0
  202. package/all/date/index.js +5 -0
  203. package/all/date_append_local_tz/index.d.ts +2 -0
  204. package/all/date_append_local_tz/index.js +9 -0
  205. package/all/day/index.d.ts +7 -0
  206. package/all/day/index.js +8 -0
  207. package/all/day_seconds/index.d.ts +2 -0
  208. package/all/day_seconds/index.js +2 -0
  209. package/all/debounce/index.d.ts +22 -0
  210. package/all/debounce/index.js +44 -0
  211. package/all/debounce_mapreduce/index.d.ts +6 -0
  212. package/all/debounce_mapreduce/index.js +18 -0
  213. package/all/debounce_mapreduce/index.test.ts +26 -0
  214. package/all/deep_clone/index.d.ts +5 -0
  215. package/all/deep_clone/index.js +10 -0
  216. package/all/defaults/index.d.ts +6 -0
  217. package/all/defaults/index.js +14 -0
  218. package/all/deg_rad/index.d.ts +5 -0
  219. package/all/deg_rad/index.js +7 -0
  220. package/all/diff_date/index.d.ts +1 -0
  221. package/all/diff_date/index.js +9 -0
  222. package/all/difference_a/index.d.ts +12 -0
  223. package/all/difference_a/index.js +15 -0
  224. package/all/difference_by/index.d.ts +9 -0
  225. package/all/difference_by/index.js +30 -0
  226. package/all/difference_set/index.d.ts +13 -0
  227. package/all/difference_set/index.js +23 -0
  228. package/all/digest__algorithm/index.d.ts +1 -0
  229. package/all/digest__algorithm/index.js +1 -0
  230. package/all/distribution_random_float/index.d.ts +4 -0
  231. package/all/distribution_random_float/index.js +12 -0
  232. package/all/distribution_random_int/index.d.ts +4 -0
  233. package/all/distribution_random_int/index.js +12 -0
  234. package/all/div/index.d.ts +4 -0
  235. package/all/div/index.js +10 -0
  236. package/all/each/index.d.ts +14 -0
  237. package/all/each/index.js +23 -0
  238. package/all/ensure/index.d.ts +11 -0
  239. package/all/ensure/index.js +26 -0
  240. package/all/ensure__refresh/index.d.ts +20 -0
  241. package/all/ensure__refresh/index.js +23 -0
  242. package/all/entries_gen/index.d.ts +5 -0
  243. package/all/entries_gen/index.js +12 -0
  244. package/all/entries_gen/index.test.ts +20 -0
  245. package/all/eq/index.d.ts +21 -0
  246. package/all/eq/index.js +28 -0
  247. package/all/eql/index.d.ts +23 -0
  248. package/all/eql/index.js +37 -0
  249. package/all/eql_a/index.d.ts +11 -0
  250. package/all/eql_a/index.js +20 -0
  251. package/all/eql_fn_a/index.d.ts +16 -0
  252. package/all/eql_fn_a/index.js +22 -0
  253. package/all/equidistant_segment_point_a/index.d.ts +14 -0
  254. package/all/equidistant_segment_point_a/index.js +25 -0
  255. package/all/error__print/index.d.ts +5 -0
  256. package/all/error__print/index.js +18 -0
  257. package/all/error_o/index.d.ts +27 -0
  258. package/all/error_o/index.js +25 -0
  259. package/all/every/index.d.ts +33 -0
  260. package/all/every/index.js +43 -0
  261. package/all/every_arg/index.d.ts +15 -0
  262. package/all/every_arg/index.js +15 -0
  263. package/all/every_arg/index.test.ts +37 -0
  264. package/all/exclude/index.d.ts +7 -0
  265. package/all/exclude/index.js +17 -0
  266. package/all/extract/index.d.ts +14 -0
  267. package/all/extract/index.js +24 -0
  268. package/all/extract/index.test.ts +18 -0
  269. package/all/falsy/index.d.ts +7 -0
  270. package/all/falsy/index.js +1 -0
  271. package/all/falsy__none/index.d.ts +9 -0
  272. package/all/falsy__none/index.js +23 -0
  273. package/all/falsy__none/index.test.ts +58 -0
  274. package/all/falsy_async_guard/index.d.ts +7 -0
  275. package/all/falsy_async_guard/index.js +13 -0
  276. package/all/falsy_guard/index.d.ts +5 -0
  277. package/all/falsy_guard/index.js +13 -0
  278. package/all/fetch/index.d.ts +5 -0
  279. package/all/fetch/index.js +2 -0
  280. package/all/fetch__template_pair/index.d.ts +40 -0
  281. package/all/fetch__template_pair/index.js +20 -0
  282. package/all/fetch__template_pair/index.test.ts +46 -0
  283. package/all/fetch_method/index.d.ts +5 -0
  284. package/all/fetch_method/index.js +8 -0
  285. package/all/fetch_response__throw/index.d.ts +7 -0
  286. package/all/fetch_response__throw/index.js +15 -0
  287. package/all/fetch_response__throw/index.test.ts +19 -0
  288. package/all/fetch_response_pair/index.d.ts +5 -0
  289. package/all/fetch_response_pair/index.js +13 -0
  290. package/all/fibonacci_number/index.d.ts +5 -0
  291. package/all/fibonacci_number/index.js +11 -0
  292. package/all/filter/index.d.ts +35 -0
  293. package/all/filter/index.js +55 -0
  294. package/all/filter_o/index.d.ts +31 -0
  295. package/all/filter_o/index.js +39 -0
  296. package/all/find/index.d.ts +30 -0
  297. package/all/find/index.js +51 -0
  298. package/all/first/index.d.ts +17 -0
  299. package/all/first/index.js +23 -0
  300. package/all/flatten/index.d.ts +14 -0
  301. package/all/flatten/index.js +28 -0
  302. package/all/flip/index.d.ts +5 -0
  303. package/all/flip/index.js +10 -0
  304. package/all/float_isNaN/index.d.ts +2 -0
  305. package/all/float_isNaN/index.js +9 -0
  306. package/all/fn_mean/index.d.ts +13 -0
  307. package/all/fn_mean/index.js +21 -0
  308. package/all/fn_mean/index.test.ts +13 -0
  309. package/all/fn_pipe/index.d.ts +70 -0
  310. package/all/fn_pipe/index.js +11 -0
  311. package/all/fn_pipe/index.test.ts +18 -0
  312. package/all/fn_sum/index.d.ts +12 -0
  313. package/all/fn_sum/index.js +17 -0
  314. package/all/fn_sum/index.test.ts +13 -0
  315. package/all/format_date_prose/index.d.ts +1 -0
  316. package/all/format_date_prose/index.js +10 -0
  317. package/all/format_utc_date_prose/index.d.ts +1 -0
  318. package/all/format_utc_date_prose/index.js +10 -0
  319. package/all/globalThis__prop__ensure/index.d.ts +4 -0
  320. package/all/globalThis__prop__ensure/index.js +10 -0
  321. package/all/globalThis__prop__ensure/index.test.ts +22 -0
  322. package/all/gte_0_a/index.d.ts +11 -0
  323. package/all/gte_0_a/index.js +21 -0
  324. package/all/hasOwnProperty_pick/index.d.ts +9 -0
  325. package/all/hasOwnProperty_pick/index.js +17 -0
  326. package/all/has_key/index.d.ts +15 -0
  327. package/all/has_key/index.js +38 -0
  328. package/all/has_multiple/index.d.ts +9 -0
  329. package/all/has_multiple/index.js +14 -0
  330. package/all/has_some_key/index.d.ts +5 -0
  331. package/all/has_some_key/index.js +12 -0
  332. package/all/head_arg_a/index.d.ts +12 -0
  333. package/all/head_arg_a/index.js +15 -0
  334. package/all/headers/index.d.ts +2 -0
  335. package/all/headers/index.js +10 -0
  336. package/all/hex__digest/index.d.ts +5 -0
  337. package/all/hex__digest/index.js +24 -0
  338. package/all/hex_int/index.d.ts +5 -0
  339. package/all/hex_int/index.js +7 -0
  340. package/all/hmac/index.d.ts +6 -0
  341. package/all/hmac/index.js +32 -0
  342. package/all/hmac_key/index.d.ts +5 -0
  343. package/all/hmac_key/index.js +30 -0
  344. package/all/hostname/index.d.ts +2 -0
  345. package/all/hostname/index.js +9 -0
  346. package/all/hour/index.d.ts +7 -0
  347. package/all/hour/index.js +8 -0
  348. package/all/hour_seconds/index.d.ts +2 -0
  349. package/all/hour_seconds/index.js +2 -0
  350. package/all/http_error/index.d.ts +20 -0
  351. package/all/http_error/index.js +35 -0
  352. package/all/idx/index.d.ts +11 -0
  353. package/all/idx/index.js +17 -0
  354. package/all/idx_a/index.d.ts +9 -0
  355. package/all/idx_a/index.js +20 -0
  356. package/all/idx_a/index.test.ts +9 -0
  357. package/all/idx_filter/index.d.ts +32 -0
  358. package/all/idx_filter/index.js +57 -0
  359. package/all/idx_key_r/index.d.ts +49 -0
  360. package/all/idx_key_r/index.js +78 -0
  361. package/all/idx_reject/index.d.ts +30 -0
  362. package/all/idx_reject/index.js +45 -0
  363. package/all/idx_sort_a/index.d.ts +23 -0
  364. package/all/idx_sort_a/index.js +39 -0
  365. package/all/idx_sort_a__sort_idx_o/index.d.ts +16 -0
  366. package/all/idx_sort_a__sort_idx_o/index.js +21 -0
  367. package/all/idx_sort_r_a/index.d.ts +7 -0
  368. package/all/idx_sort_r_a/index.js +14 -0
  369. package/all/if_null_set_false/index.d.ts +7 -0
  370. package/all/if_null_set_false/index.js +14 -0
  371. package/all/ifelse/index.d.ts +6 -0
  372. package/all/ifelse/index.js +10 -0
  373. package/all/iife/index.d.ts +6 -0
  374. package/all/iife/index.js +9 -0
  375. package/all/indendation/index.d.ts +9 -0
  376. package/all/indendation/index.js +23 -0
  377. package/all/index.d.ts +408 -0
  378. package/all/index.js +408 -0
  379. package/all/indexOf/index.d.ts +6 -0
  380. package/all/indexOf/index.js +9 -0
  381. package/all/insert/index.d.ts +6 -0
  382. package/all/insert/index.js +10 -0
  383. package/all/int_hex/index.d.ts +5 -0
  384. package/all/int_hex/index.js +7 -0
  385. package/all/intersection_a/index.d.ts +15 -0
  386. package/all/intersection_a/index.js +15 -0
  387. package/all/intersection_by/index.d.ts +10 -0
  388. package/all/intersection_by/index.js +44 -0
  389. package/all/intersection_set/index.d.ts +14 -0
  390. package/all/intersection_set/index.js +25 -0
  391. package/all/invalid_argument/index.d.ts +30 -0
  392. package/all/invalid_argument/index.js +43 -0
  393. package/all/invalid_state/index.d.ts +32 -0
  394. package/all/invalid_state/index.js +44 -0
  395. package/all/invert/index.d.ts +4 -0
  396. package/all/invert/index.js +8 -0
  397. package/all/invert_idx_a/index.d.ts +12 -0
  398. package/all/invert_idx_a/index.js +20 -0
  399. package/all/invert_idx_a/index.test.ts +7 -0
  400. package/all/isArray/index.d.ts +5 -0
  401. package/all/isArray/index.js +9 -0
  402. package/all/isFloat/index.d.ts +1 -0
  403. package/all/isFloat/index.js +4 -0
  404. package/all/isFloat_andor/index.d.ts +3 -0
  405. package/all/isFloat_andor/index.js +9 -0
  406. package/all/isFloat_or/index.d.ts +1 -0
  407. package/all/isFloat_or/index.js +5 -0
  408. package/all/isLowerCase/index.d.ts +1 -0
  409. package/all/isLowerCase/index.js +7 -0
  410. package/all/isNumber/index.d.ts +5 -0
  411. package/all/isNumber/index.js +5 -0
  412. package/all/isNumber_andor/index.d.ts +3 -0
  413. package/all/isNumber_andor/index.js +8 -0
  414. package/all/isNumber_or/index.d.ts +1 -0
  415. package/all/isNumber_or/index.js +5 -0
  416. package/all/isObject/index.d.ts +8 -0
  417. package/all/isObject/index.js +12 -0
  418. package/all/isPromise/index.d.ts +1 -0
  419. package/all/isPromise/index.js +7 -0
  420. package/all/isString/index.d.ts +1 -0
  421. package/all/isString/index.js +7 -0
  422. package/all/isUpperCase/index.d.ts +1 -0
  423. package/all/isUpperCase/index.js +7 -0
  424. package/all/item_r_idx/index.d.ts +27 -0
  425. package/all/item_r_idx/index.js +38 -0
  426. package/all/json/index.d.ts +2 -0
  427. package/all/json/index.js +1 -0
  428. package/all/key_compare/index.d.ts +14 -0
  429. package/all/key_compare/index.js +19 -0
  430. package/all/key_r/index.d.ts +48 -0
  431. package/all/key_r/index.js +63 -0
  432. package/all/key_r_a/index.d.ts +15 -0
  433. package/all/key_r_a/index.js +26 -0
  434. package/all/keyof/index.d.ts +1 -0
  435. package/all/keyof/index.js +1 -0
  436. package/all/keys/index.d.ts +4 -0
  437. package/all/keys/index.js +5 -0
  438. package/all/lPad/index.d.ts +1 -0
  439. package/all/lPad/index.js +11 -0
  440. package/all/last/index.d.ts +18 -0
  441. package/all/last/index.js +22 -0
  442. package/all/left_and/index.d.ts +12 -0
  443. package/all/left_and/index.js +14 -0
  444. package/all/left_or/index.d.ts +11 -0
  445. package/all/left_or/index.js +14 -0
  446. package/all/line__parse/index.d.ts +18 -0
  447. package/all/line__parse/index.js +97 -0
  448. package/all/line__parse/index.test.ts +96 -0
  449. package/all/line__transform_stream/index.d.ts +8 -0
  450. package/all/line__transform_stream/index.js +53 -0
  451. package/all/line__transform_stream/index.test.ts +47 -0
  452. package/all/lte_0_a/index.d.ts +11 -0
  453. package/all/lte_0_a/index.js +20 -0
  454. package/all/m_m_yyyy/index.d.ts +8 -0
  455. package/all/m_m_yyyy/index.js +24 -0
  456. package/all/m_yy/index.d.ts +2 -0
  457. package/all/m_yy/index.js +9 -0
  458. package/all/m_yyyy/index.d.ts +2 -0
  459. package/all/m_yyyy/index.js +10 -0
  460. package/all/many_andand/index.d.ts +11 -0
  461. package/all/many_andand/index.js +12 -0
  462. package/all/many_andand_or/index.d.ts +17 -0
  463. package/all/many_andand_or/index.js +14 -0
  464. package/all/map/index.d.ts +42 -0
  465. package/all/map/index.js +45 -0
  466. package/all/map_andand/index.d.ts +30 -0
  467. package/all/map_andand/index.js +34 -0
  468. package/all/map_andand_or/index.d.ts +13 -0
  469. package/all/map_andand_or/index.js +13 -0
  470. package/all/map_andandfn/index.d.ts +28 -0
  471. package/all/map_andandfn/index.js +29 -0
  472. package/all/map_apply/index.d.ts +17 -0
  473. package/all/map_apply/index.js +15 -0
  474. package/all/map_call/index.d.ts +22 -0
  475. package/all/map_call/index.js +26 -0
  476. package/all/map_find/index.d.ts +32 -0
  477. package/all/map_find/index.js +38 -0
  478. package/all/map_fn/index.d.ts +4 -0
  479. package/all/map_fn/index.js +1 -0
  480. package/all/map_inverse/index.d.ts +5 -0
  481. package/all/map_inverse/index.js +9 -0
  482. package/all/map_obj/index.d.ts +30 -0
  483. package/all/map_obj/index.js +28 -0
  484. package/all/map_obj_andand/index.d.ts +28 -0
  485. package/all/map_obj_andand/index.js +28 -0
  486. package/all/matrix__dot/index.d.ts +6 -0
  487. package/all/matrix__dot/index.js +22 -0
  488. package/all/matrix__dot__scalar/index.d.ts +1 -0
  489. package/all/matrix__dot__scalar/index.js +9 -0
  490. package/all/matrix__normalize/index.d.ts +4 -0
  491. package/all/matrix__normalize/index.js +20 -0
  492. package/all/matrix__validate_length/index.d.ts +1 -0
  493. package/all/matrix__validate_length/index.js +13 -0
  494. package/all/maybe/index.d.ts +7 -0
  495. package/all/maybe/index.js +1 -0
  496. package/all/mean/index.d.ts +9 -0
  497. package/all/mean/index.js +17 -0
  498. package/all/mean/index.test.ts +10 -0
  499. package/all/median/index.d.ts +4 -0
  500. package/all/median/index.js +19 -0
  501. package/all/merge/index.d.ts +7 -0
  502. package/all/merge/index.js +25 -0
  503. package/all/minute/index.d.ts +7 -0
  504. package/all/minute/index.js +7 -0
  505. package/all/minute_seconds/index.d.ts +2 -0
  506. package/all/minute_seconds/index.js +2 -0
  507. package/all/missing_argument/index.d.ts +31 -0
  508. package/all/missing_argument/index.js +44 -0
  509. package/all/mixin/index.d.ts +13 -0
  510. package/all/mixin/index.js +34 -0
  511. package/all/money_str/index.d.ts +13 -0
  512. package/all/money_str/index.js +26 -0
  513. package/all/month_a/index.d.ts +5 -0
  514. package/all/month_a/index.js +18 -0
  515. package/all/month_ms/index.d.ts +5 -0
  516. package/all/month_ms/index.js +6 -0
  517. package/all/month_seconds/index.d.ts +2 -0
  518. package/all/month_seconds/index.js +2 -0
  519. package/all/ms/index.d.ts +5 -0
  520. package/all/ms/index.js +12 -0
  521. package/all/mul/index.d.ts +4 -0
  522. package/all/mul/index.js +12 -0
  523. package/all/name_sort/index.d.ts +14 -0
  524. package/all/name_sort/index.js +13 -0
  525. package/all/negative/index.d.ts +4 -0
  526. package/all/negative/index.js +8 -0
  527. package/all/neq/index.d.ts +14 -0
  528. package/all/neq/index.js +25 -0
  529. package/all/neql/index.d.ts +15 -0
  530. package/all/neql/index.js +24 -0
  531. package/all/next_idx/index.d.ts +8 -0
  532. package/all/next_idx/index.js +14 -0
  533. package/all/nf/index.d.ts +1 -0
  534. package/all/nf/index.js +1 -0
  535. package/all/no_comma_str/index.d.ts +2 -0
  536. package/all/no_comma_str/index.js +9 -0
  537. package/all/noinit/index.d.ts +9 -0
  538. package/all/noinit/index.js +16 -0
  539. package/all/noop/index.d.ts +4 -0
  540. package/all/noop/index.js +6 -0
  541. package/all/normal_random/index.d.ts +2 -0
  542. package/all/normal_random/index.js +19 -0
  543. package/all/normal_random_float/index.d.ts +2 -0
  544. package/all/normal_random_float/index.js +6 -0
  545. package/all/normal_random_int/index.d.ts +2 -0
  546. package/all/normal_random_int/index.js +6 -0
  547. package/all/not/index.d.ts +17 -0
  548. package/all/not/index.js +24 -0
  549. package/all/not_found/index.d.ts +20 -0
  550. package/all/not_found/index.js +44 -0
  551. package/all/not_nullish__query_str/index.d.ts +6 -0
  552. package/all/not_nullish__query_str/index.js +19 -0
  553. package/all/notnot/index.d.ts +12 -0
  554. package/all/notnot/index.js +23 -0
  555. package/all/null/index.d.ts +5 -0
  556. package/all/null/index.js +10 -0
  557. package/all/nullish/index.d.ts +2 -0
  558. package/all/nullish/index.js +1 -0
  559. package/all/nullish__guard/index.d.ts +10 -0
  560. package/all/nullish__guard/index.js +16 -0
  561. package/all/nullish__guard__async/index.d.ts +10 -0
  562. package/all/nullish__guard__async/index.js +18 -0
  563. package/all/nullish__none/index.d.ts +12 -0
  564. package/all/nullish__none/index.js +25 -0
  565. package/all/nullish__none/index.test.ts +58 -0
  566. package/all/nullish__not_all/index.d.ts +8 -0
  567. package/all/nullish__not_all/index.js +16 -0
  568. package/all/nullish__not_all/index.test.ts +70 -0
  569. package/all/nullish_or/index.d.ts +5 -0
  570. package/all/nullish_or/index.js +11 -0
  571. package/all/number__count/index.d.ts +4 -0
  572. package/all/number__count/index.js +13 -0
  573. package/all/number__count/index.test.ts +7 -0
  574. package/all/number_or_mdash_str/index.d.ts +2 -0
  575. package/all/number_or_mdash_str/index.js +5 -0
  576. package/all/numerator_or_0_avg/index.d.ts +5 -0
  577. package/all/numerator_or_0_avg/index.js +10 -0
  578. package/all/numerator_or_0_sum/index.d.ts +5 -0
  579. package/all/numerator_or_0_sum/index.js +10 -0
  580. package/all/numeric_range/index.d.ts +7 -0
  581. package/all/numeric_range/index.js +19 -0
  582. package/all/numeric_range/index.test.ts +9 -0
  583. package/all/o_a_present/index.d.ts +18 -0
  584. package/all/o_a_present/index.js +18 -0
  585. package/all/o_some/index.d.ts +13 -0
  586. package/all/o_some/index.js +16 -0
  587. package/all/obj_key_r/index.d.ts +10 -0
  588. package/all/obj_key_r/index.js +19 -0
  589. package/all/offset_destructure_aa/index.d.ts +13 -0
  590. package/all/offset_destructure_aa/index.js +22 -0
  591. package/all/offset_i/index.d.ts +8 -0
  592. package/all/offset_i/index.js +13 -0
  593. package/all/offset_i_slice/index.d.ts +19 -0
  594. package/all/offset_i_slice/index.js +26 -0
  595. package/all/omit/index.d.ts +15 -0
  596. package/all/omit/index.js +26 -0
  597. package/all/omit/index.test.ts +12 -0
  598. package/all/one_andand/index.d.ts +13 -0
  599. package/all/one_andand/index.js +15 -0
  600. package/all/one_andand_or/index.d.ts +19 -0
  601. package/all/one_andand_or/index.js +18 -0
  602. package/all/or/index.d.ts +41 -0
  603. package/all/or/index.js +47 -0
  604. package/all/or_in/index.d.ts +9 -0
  605. package/all/or_in/index.js +14 -0
  606. package/all/or_null/index.d.ts +11 -0
  607. package/all/or_null/index.js +10 -0
  608. package/all/or_property/index.d.ts +9 -0
  609. package/all/or_property/index.js +15 -0
  610. package/all/pad2/index.d.ts +1 -0
  611. package/all/pad2/index.js +7 -0
  612. package/all/parseFloat_andor/index.d.ts +3 -0
  613. package/all/parseFloat_andor/index.js +5 -0
  614. package/all/parseFloat_andor/index.test.ts +11 -0
  615. package/all/parseFloat_or/index.d.ts +1 -0
  616. package/all/parseFloat_or/index.js +5 -0
  617. package/all/parseFloat_or/index.test.ts +9 -0
  618. package/all/parseInt_andor/index.d.ts +5 -0
  619. package/all/parseInt_andor/index.js +5 -0
  620. package/all/parseInt_andor/index.test.ts +11 -0
  621. package/all/parseInt_or/index.d.ts +1 -0
  622. package/all/parseInt_or/index.js +5 -0
  623. package/all/parseInt_or/index.test.ts +10 -0
  624. package/all/pathname/index.d.ts +2 -0
  625. package/all/pathname/index.js +8 -0
  626. package/all/percentage_str/index.d.ts +2 -0
  627. package/all/percentage_str/index.js +9 -0
  628. package/all/percentage_str_float/index.d.ts +2 -0
  629. package/all/percentage_str_float/index.js +4 -0
  630. package/all/performance__now/index.d.ts +1 -0
  631. package/all/performance__now/index.js +32 -0
  632. package/all/pick/index.d.ts +18 -0
  633. package/all/pick/index.js +35 -0
  634. package/all/pick_keys/index.d.ts +8 -0
  635. package/all/pick_keys/index.js +12 -0
  636. package/all/pick_val_a/index.d.ts +14 -0
  637. package/all/pick_val_a/index.js +22 -0
  638. package/all/prev_idx/index.d.ts +8 -0
  639. package/all/prev_idx/index.js +14 -0
  640. package/all/promise/index.d.ts +2 -0
  641. package/all/promise/index.js +1 -0
  642. package/all/promise_o/index.d.ts +7 -0
  643. package/all/promise_o/index.js +11 -0
  644. package/all/promise_timeout/index.d.ts +5 -0
  645. package/all/promise_timeout/index.js +23 -0
  646. package/all/prototype_mixin/index.d.ts +8 -0
  647. package/all/prototype_mixin/index.js +20 -0
  648. package/all/push/index.d.ts +15 -0
  649. package/all/push/index.js +17 -0
  650. package/all/quantile/index.d.ts +5 -0
  651. package/all/quantile/index.js +16 -0
  652. package/all/query_str/index.d.ts +27 -0
  653. package/all/query_str/index.js +46 -0
  654. package/all/query_str/index.test.ts +43 -0
  655. package/all/query_str__searchParams/index.d.ts +1 -0
  656. package/all/query_str__searchParams/index.js +8 -0
  657. package/all/query_str__searchParams_o/index.d.ts +3 -0
  658. package/all/query_str__searchParams_o/index.js +11 -0
  659. package/all/queue/index.d.ts +23 -0
  660. package/all/queue/index.js +130 -0
  661. package/all/queue/index.test.ts +207 -0
  662. package/all/rPad/index.d.ts +1 -0
  663. package/all/rPad/index.js +11 -0
  664. package/all/r_val_a/index.d.ts +23 -0
  665. package/all/r_val_a/index.js +28 -0
  666. package/all/rad_deg/index.d.ts +5 -0
  667. package/all/rad_deg/index.js +7 -0
  668. package/all/random_idx/index.d.ts +8 -0
  669. package/all/random_idx/index.js +12 -0
  670. package/all/rank/index.d.ts +10 -0
  671. package/all/rank/index.js +16 -0
  672. package/all/rate_limit/index.d.ts +10 -0
  673. package/all/rate_limit/index.js +49 -0
  674. package/all/rc_be/index.d.ts +9 -0
  675. package/all/rc_be/index.js +17 -0
  676. package/all/rc_be_/index.d.ts +42 -0
  677. package/all/rc_be_/index.js +62 -0
  678. package/all/re_/index.d.ts +1 -0
  679. package/all/re_/index.js +8 -0
  680. package/all/readable_stream_OR_reader/index.d.ts +7 -0
  681. package/all/readable_stream_OR_reader/index.js +1 -0
  682. package/all/reduce/index.d.ts +51 -0
  683. package/all/reduce/index.js +51 -0
  684. package/all/regex_indexOf/index.d.ts +10 -0
  685. package/all/regex_indexOf/index.js +14 -0
  686. package/all/regex_lastIndexOf/index.d.ts +7 -0
  687. package/all/regex_lastIndexOf/index.js +25 -0
  688. package/all/reject/index.d.ts +39 -0
  689. package/all/reject/index.js +40 -0
  690. package/all/remove/index.d.ts +16 -0
  691. package/all/remove/index.js +27 -0
  692. package/all/remove_idx/index.d.ts +12 -0
  693. package/all/remove_idx/index.js +14 -0
  694. package/all/resolver_curry/index.d.ts +6 -0
  695. package/all/resolver_curry/index.js +1 -0
  696. package/all/response_o/index.d.ts +10 -0
  697. package/all/response_o/index.js +17 -0
  698. package/all/response_pair/index.d.ts +11 -0
  699. package/all/response_pair/index.js +23 -0
  700. package/all/response_pair/index.test.ts +30 -0
  701. package/all/reverse/index.d.ts +16 -0
  702. package/all/reverse/index.js +16 -0
  703. package/all/right_and/index.d.ts +14 -0
  704. package/all/right_and/index.js +15 -0
  705. package/all/right_or/index.d.ts +14 -0
  706. package/all/right_or/index.js +16 -0
  707. package/all/round/index.d.ts +4 -0
  708. package/all/round/index.js +14 -0
  709. package/all/run/index.d.ts +8 -0
  710. package/all/run/index.js +10 -0
  711. package/all/run_pipe/index.d.ts +61 -0
  712. package/all/run_pipe/index.js +11 -0
  713. package/all/run_pipe/index.test.ts +19 -0
  714. package/all/scalar__matrix__multiply/index.d.ts +7 -0
  715. package/all/scalar__matrix__multiply/index.js +16 -0
  716. package/all/searchParams_o/index.d.ts +3 -0
  717. package/all/searchParams_o/index.js +13 -0
  718. package/all/seconds/index.d.ts +2 -0
  719. package/all/seconds/index.js +10 -0
  720. package/all/segment_point_index/index.d.ts +5 -0
  721. package/all/segment_point_index/index.js +13 -0
  722. package/all/selector_splice/index.d.ts +13 -0
  723. package/all/selector_splice/index.js +17 -0
  724. package/all/sequence/index.d.ts +2 -0
  725. package/all/sequence/index.js +8 -0
  726. package/all/set_member/index.d.ts +6 -0
  727. package/all/set_member/index.js +1 -0
  728. package/all/since_time_text/index.d.ts +5 -0
  729. package/all/since_time_text/index.js +38 -0
  730. package/all/sleep/index.d.ts +1 -0
  731. package/all/sleep/index.js +7 -0
  732. package/all/slice/index.d.ts +38 -0
  733. package/all/slice/index.js +48 -0
  734. package/all/slice_arg_a/index.d.ts +28 -0
  735. package/all/slice_arg_a/index.js +17 -0
  736. package/all/slice_arg_spread_a/index.d.ts +29 -0
  737. package/all/slice_arg_spread_a/index.js +15 -0
  738. package/all/sort/index.d.ts +37 -0
  739. package/all/sort/index.js +41 -0
  740. package/all/sort_a/index.d.ts +24 -0
  741. package/all/sort_a/index.js +28 -0
  742. package/all/sort_idx_a/index.d.ts +21 -0
  743. package/all/sort_idx_a/index.js +25 -0
  744. package/all/sort_idx_o/index.d.ts +29 -0
  745. package/all/sort_idx_o/index.js +53 -0
  746. package/all/sort_idx_o/index.test.ts +12 -0
  747. package/all/sort_val_a/index.d.ts +21 -0
  748. package/all/sort_val_a/index.js +23 -0
  749. package/all/sort_val_a__transition_idx_a/index.d.ts +61 -0
  750. package/all/sort_val_a__transition_idx_a/index.js +108 -0
  751. package/all/sort_val_a__transition_idx_a/index.test.ts +99 -0
  752. package/all/sparse_a/index.d.ts +14 -0
  753. package/all/sparse_a/index.js +19 -0
  754. package/all/splice/index.d.ts +19 -0
  755. package/all/splice/index.js +23 -0
  756. package/all/splice_str/index.d.ts +8 -0
  757. package/all/splice_str/index.js +20 -0
  758. package/all/spread/index.d.ts +22 -0
  759. package/all/spread/index.js +24 -0
  760. package/all/spread_slice/index.d.ts +10 -0
  761. package/all/spread_slice/index.js +14 -0
  762. package/all/stacktrace/index.d.ts +5 -0
  763. package/all/stacktrace/index.js +42 -0
  764. package/all/std/index.d.ts +2 -0
  765. package/all/std/index.js +13 -0
  766. package/all/sub/index.d.ts +4 -0
  767. package/all/sub/index.js +10 -0
  768. package/all/table_txt/index.d.ts +2 -0
  769. package/all/table_txt/index.js +29 -0
  770. package/all/table_txt/index.test.ts +17 -0
  771. package/all/tap/index.d.ts +22 -0
  772. package/all/tap/index.js +26 -0
  773. package/all/tf/index.d.ts +2 -0
  774. package/all/tf/index.js +2 -0
  775. package/all/throttle/index.d.ts +9 -0
  776. package/all/throttle/index.js +26 -0
  777. package/all/tick/index.d.ts +8 -0
  778. package/all/tick/index.js +23 -0
  779. package/all/timedout/index.d.ts +2 -0
  780. package/all/timedout/index.js +9 -0
  781. package/all/timeout_promise/index.d.ts +10 -0
  782. package/all/timeout_promise/index.js +12 -0
  783. package/all/times/index.d.ts +8 -0
  784. package/all/times/index.js +13 -0
  785. package/all/timestamp_ms/index.d.ts +6 -0
  786. package/all/timestamp_ms/index.js +8 -0
  787. package/all/title_case_/index.d.ts +7 -0
  788. package/all/title_case_/index.js +24 -0
  789. package/all/toLocalDateString/index.d.ts +1 -0
  790. package/all/toLocalDateString/index.js +7 -0
  791. package/all/toString/index.d.ts +5 -0
  792. package/all/toString/index.js +5 -0
  793. package/all/tup/index.d.ts +13 -0
  794. package/all/tup/index.js +14 -0
  795. package/all/tuple__o/index.d.ts +7 -0
  796. package/all/tuple__o/index.js +1 -0
  797. package/all/tuple__union/index.d.ts +1 -0
  798. package/all/tuple__union/index.js +1 -0
  799. package/all/tuple_a_o/index.d.ts +10 -0
  800. package/all/tuple_a_o/index.js +1 -0
  801. package/all/unauthorized/index.d.ts +20 -0
  802. package/all/unauthorized/index.js +43 -0
  803. package/all/unformat_currency_str/index.d.ts +10 -0
  804. package/all/unformat_currency_str/index.js +27 -0
  805. package/all/uniform_random/index.d.ts +2 -0
  806. package/all/uniform_random/index.js +4 -0
  807. package/all/uniform_random_float/index.d.ts +2 -0
  808. package/all/uniform_random_float/index.js +6 -0
  809. package/all/uniform_random_int/index.d.ts +2 -0
  810. package/all/uniform_random_int/index.js +6 -0
  811. package/all/union_a/index.d.ts +14 -0
  812. package/all/union_a/index.js +18 -0
  813. package/all/union_by/index.d.ts +11 -0
  814. package/all/union_by/index.js +28 -0
  815. package/all/union_set/index.d.ts +14 -0
  816. package/all/union_set/index.js +18 -0
  817. package/all/unit_matrix/index.d.ts +1 -0
  818. package/all/unit_matrix/index.js +11 -0
  819. package/all/unpick/index.d.ts +11 -0
  820. package/all/unpick/index.js +28 -0
  821. package/all/unpick_keys/index.d.ts +8 -0
  822. package/all/unpick_keys/index.js +12 -0
  823. package/all/url__join/index.d.ts +5 -0
  824. package/all/url__join/index.js +24 -0
  825. package/all/url_basename/index.d.ts +2 -0
  826. package/all/url_basename/index.js +10 -0
  827. package/all/url_segment/index.d.ts +2 -0
  828. package/all/url_segment/index.js +1 -0
  829. package/all/urn_url/index.d.ts +11 -0
  830. package/all/urn_url/index.js +15 -0
  831. package/all/utc_MM_yyyy/index.d.ts +8 -0
  832. package/all/utc_MM_yyyy/index.js +24 -0
  833. package/all/utc_M_yyyy/index.d.ts +6 -0
  834. package/all/utc_M_yyyy/index.js +13 -0
  835. package/all/utc_m_yy/index.d.ts +5 -0
  836. package/all/utc_m_yy/index.js +12 -0
  837. package/all/utc_yyyymmdd/index.d.ts +5 -0
  838. package/all/utc_yyyymmdd/index.js +13 -0
  839. package/all/utc_yyyymmddhhmmss/index.d.ts +5 -0
  840. package/all/utc_yyyymmddhhmmss/index.js +18 -0
  841. package/all/uuid/index.d.ts +5 -0
  842. package/all/uuid/index.js +19 -0
  843. package/all/val/index.d.ts +4 -0
  844. package/all/val/index.js +8 -0
  845. package/all/value_key_aa/index.d.ts +10 -0
  846. package/all/value_key_aa/index.js +20 -0
  847. package/all/value_key_zip_r/index.d.ts +13 -0
  848. package/all/value_key_zip_r/index.js +20 -0
  849. package/all/value_r/index.d.ts +29 -0
  850. package/all/value_r/index.js +37 -0
  851. package/all/valueof/index.d.ts +1 -0
  852. package/all/valueof/index.js +1 -0
  853. package/all/values/index.d.ts +5 -0
  854. package/all/values/index.js +5 -0
  855. package/all/waitfor/index.d.ts +5 -0
  856. package/all/waitfor/index.js +16 -0
  857. package/all/waitfor_fibonacci_backoff/index.d.ts +8 -0
  858. package/all/waitfor_fibonacci_backoff/index.js +27 -0
  859. package/all/waitfor_val/index.d.ts +6 -0
  860. package/all/waitfor_val/index.js +20 -0
  861. package/all/weak_r/index.d.ts +28 -0
  862. package/all/weak_r/index.js +87 -0
  863. package/all/week/index.d.ts +1 -0
  864. package/all/week/index.js +2 -0
  865. package/all/wrap_a/index.d.ts +32 -0
  866. package/all/wrap_a/index.js +19 -0
  867. package/all/wrap_a_item/index.d.ts +5 -0
  868. package/all/wrap_a_item/index.js +1 -0
  869. package/all/wrap_aa/index.d.ts +23 -0
  870. package/all/wrap_aa/index.js +14 -0
  871. package/all/wrap_aa_item/index.d.ts +5 -0
  872. package/all/wrap_aa_item/index.js +1 -0
  873. package/all/wrap_concat/index.d.ts +11 -0
  874. package/all/wrap_concat/index.js +13 -0
  875. package/all/year_ms/index.d.ts +5 -0
  876. package/all/year_ms/index.js +6 -0
  877. package/all/year_seconds/index.d.ts +2 -0
  878. package/all/year_seconds/index.js +2 -0
  879. package/all/yyyymmdd/index.d.ts +2 -0
  880. package/all/yyyymmdd/index.js +10 -0
  881. package/all/yyyymmddhhmmss/index.d.ts +2 -0
  882. package/all/yyyymmddhhmmss/index.js +11 -0
  883. package/all/zip/index.d.ts +11 -0
  884. package/all/zip/index.js +17 -0
  885. package/all/zip__tuple_a/index.d.ts +13 -0
  886. package/all/zip__tuple_a/index.js +1 -0
  887. package/all/zip_o/index.d.ts +15 -0
  888. package/all/zip_o/index.js +22 -0
  889. package/all/zip_with/index.d.ts +43 -0
  890. package/all/zip_with/index.js +56 -0
  891. package/package.json +5 -1
  892. package/tsconfig.json +11 -0
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Returns a function that calls fn passing the arguments sliced by slice_arg_a.
3
+ */
4
+ export declare function slice_arg_spread_a_<
5
+ In extends unknown[] = unknown[],
6
+ Out extends unknown = unknown,
7
+ >(
8
+ fn:slice_arg_spread_a__arg__T<In, Out>,
9
+ begin_idx?:number,
10
+ end_idx?:number
11
+ ):slice_arg_spread_a___ret_T<In, Out>
12
+ export {
13
+ slice_arg_spread_a_ as slice_arg_spread_a,
14
+ slice_arg_spread_a_ as slice_arg_a1,
15
+ slice_arg_spread_a_ as slice__a1__arg,
16
+ }
17
+ export declare type slice_arg_spread_a__arg__T<
18
+ In extends unknown[] = unknown[],
19
+ Out extends unknown = unknown
20
+ > = (
21
+ arg_a:In[number][]
22
+ )=>Out
23
+ export declare type slice_arg_spread_a__arg_fn_T = slice_arg_spread_a__arg__T
24
+ export declare type slice_arg_spread_a___ret_T<
25
+ In extends unknown[] = unknown[],
26
+ Out extends unknown = unknown> = (
27
+ ...arg_a:In
28
+ )=>Out
29
+ export declare type slice_arg_spread_a__ret_T = slice_arg_spread_a__arg__T
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Returns a function that calls fn passing the arguments sliced by slice_arg_a.
3
+ * @param {import('../slice_arg_spread_a/index.js').slice_arg_spread_a__arg__T}fn
4
+ * @param {number}[begin_idx]
5
+ * @param {number}[end_idx]
6
+ * @returns {import('../slice_arg_spread_a/index.js').slice_arg_spread_a___ret_T}
7
+ */
8
+ export function slice_arg_spread_a_(fn, begin_idx, end_idx) {
9
+ return (...arg_a)=>fn(arg_a.slice(begin_idx, end_idx))
10
+ }
11
+ export {
12
+ slice_arg_spread_a_ as slice_arg_spread_a,
13
+ slice_arg_spread_a_ as slice_arg_a1,
14
+ slice_arg_spread_a_ as slice__a1__arg,
15
+ }
@@ -0,0 +1,37 @@
1
+ import type { compare_T } from '../array_types/index.js'
2
+ /**
3
+ * Sort items in `a` by the `compare` function
4
+ */
5
+ export declare function sort<
6
+ I extends unknown = unknown, O extends unknown = readonly I[]
7
+ >(
8
+ a:readonly I[], compare?:compare_T<I>
9
+ ):O
10
+ export declare function maybe_sort<
11
+ I extends unknown = unknown,
12
+ O extends unknown = readonly I[],
13
+ Or = null
14
+ >(
15
+ maybe_a:readonly I[]|undefined,
16
+ compare?:compare_T<I>,
17
+ or?:Or
18
+ ):O|Or
19
+ /**
20
+ * Returns a Function that calls [sort](#sort) with the given `compare` function.
21
+ */
22
+ export declare function sort_<
23
+ I extends unknown = unknown
24
+ >(
25
+ compare?:compare_T<I>
26
+ ):(a:readonly I[])=>I[]
27
+ export declare function maybe_sort_<
28
+ I extends unknown = unknown, Or = null
29
+ >(
30
+ compare?:compare_T<I>,
31
+ or?:Or
32
+ ):(maybe_a:readonly I[]|undefined)=>I[]|Or
33
+ export {
34
+ sort_ as _sort,
35
+ sort_ as _fn__sort,
36
+ maybe_sort_ as _maybe_sort,
37
+ }
@@ -0,0 +1,41 @@
1
+ /** @typedef {import('../array_types/index.d.ts').compare_T}compare_T */
2
+ /**
3
+ * Sort items in `a` by the `compare` function
4
+ * @param {unknown[]}a
5
+ * @param {compare_T}compare
6
+ * @returns {unknown[]}
7
+ */
8
+ export function sort(a, compare) {
9
+ return a.sort(compare)
10
+ }
11
+ /**
12
+ * @param {unknown[]|undefined}maybe_a
13
+ * @param {compare_T}compare
14
+ * @param {unknown[]|null|unknown}or
15
+ * @returns {unknown[]|null|unknown}
16
+ */
17
+ export function maybe_sort(maybe_a, compare, or = null) {
18
+ return maybe_a ? sort(maybe_a, compare) : or
19
+ }
20
+ /**
21
+ * Returns a Function that calls [sort](#sort) with the given `compare` function.
22
+ * @param {compare_T}compare
23
+ * @returns {(a:unknown[])=>unknown[]}
24
+ * @private
25
+ */
26
+ export function sort_(compare) {
27
+ return a=>sort(a, compare)
28
+ }
29
+ /**
30
+ * @param {compare_T}compare
31
+ * @param {unknown[]|null|undefined}or
32
+ * @returns {(maybe_a:unknown[]|undefined)=>unknown[]|null|undefined}
33
+ */
34
+ export function maybe_sort_(compare, or = null) {
35
+ return maybe_a=>maybe_sort(maybe_a, compare, or)
36
+ }
37
+ export {
38
+ sort_ as _sort,
39
+ sort_ as _fn__sort,
40
+ maybe_sort_ as _maybe_sort,
41
+ }
@@ -0,0 +1,24 @@
1
+ import type { compare_T } from '../array_types/index.js'
2
+ /**
3
+ * Sorts a copy of `a` by the `compare` function.
4
+ */
5
+ export declare function sort_a_<
6
+ I extends unknown = unknown
7
+ >(
8
+ a:readonly I[],
9
+ compare?:compare_T<I>
10
+ ):I[]
11
+ export declare function maybe_sort_a_<
12
+ I extends unknown = unknown, Or = null
13
+ >(
14
+ maybe_a:readonly I[]|undefined,
15
+ compare?:compare_T<I>,
16
+ or?:Or
17
+ ):I[]|Or
18
+ export {
19
+ sort_a_ as sort_a1_,
20
+ sort_a_ as _sort_a1,
21
+ sort_a_ as _a1__sort,
22
+ maybe_sort_a_ as maybe_sort_a1_,
23
+ maybe_sort_a_ as _maybe_sort_a1,
24
+ }
@@ -0,0 +1,28 @@
1
+ import { maybe_slice, slice } from '../slice/index.js'
2
+ import { maybe_sort, sort } from '../sort/index.js'
3
+ /** @typedef {import('../array_types/index.d.ts').compare_T} */
4
+ /**
5
+ * Sorts a copy of `a` by the `compare` function.
6
+ * @param {unknown[]}a
7
+ * @param {compare_T}[compare]
8
+ * @returns {unknown[]}
9
+ */
10
+ export function sort_a_(a, compare) {
11
+ return sort(slice(a, 0), compare)
12
+ }
13
+ /**
14
+ * @param {unknown[]|undefined}maybe_a
15
+ * @param {compare_T}[compare]
16
+ * @param {unknown[]|null|undefined}[or]
17
+ * @returns {unknown[]|null|undefined}
18
+ */
19
+ export function maybe_sort_a_(maybe_a, compare, or = null) {
20
+ return maybe_sort(maybe_slice(maybe_a, 0), compare, or)
21
+ }
22
+ export {
23
+ sort_a_ as sort_a1_,
24
+ sort_a_ as _sort_a1,
25
+ sort_a_ as _a1__sort,
26
+ maybe_sort_a_ as maybe_sort_a1_,
27
+ maybe_sort_a_ as _maybe_sort_a1,
28
+ }
@@ -0,0 +1,21 @@
1
+ import type { sort_idx_o_T } from '../array_types/index.js'
2
+ /**
3
+ * Returns an Array of sorted indices from [sort_idx_o_T](#sort_idx_o_T).sort_idx_a
4
+ */
5
+ export declare function sort_idx_a_<
6
+ I extends unknown = unknown
7
+ >(
8
+ in_sort_idx_o:sort_idx_o_T<I>
9
+ ):number[]
10
+ export declare function maybe_sort_idx_a_<
11
+ I extends unknown = unknown, Or = null
12
+ >(
13
+ in_sort_idx_ctx:sort_idx_o_T<I>|undefined,
14
+ or?:Or
15
+ ):number[]|Or
16
+ export {
17
+ sort_idx_a_ as sort_idx_a1_fn,
18
+ sort_idx_a_ as _sort_idx_a1,
19
+ maybe_sort_idx_a_ as maybe_sort_idx_a1_fn,
20
+ maybe_sort_idx_a_ as _maybe_sort_idx_a1,
21
+ }
@@ -0,0 +1,25 @@
1
+ /** @typedef {import('../array_types/index.d.ts').sort_idx_o_T}sort_idx_o_T */
2
+ /**
3
+ * Returns an Array of sorted indices from [sort_idx_o_T](#sort_idx_o_T).sort_idx_a
4
+ * @param {sort_idx_o_T}in_sort_idx_o
5
+ * @returns {number[]}
6
+ */
7
+ export function sort_idx_a_(in_sort_idx_o) {
8
+ return in_sort_idx_o.sort_idx_a
9
+ }
10
+ /**
11
+ * @param {sort_idx_o_T|undefined}in_sort_idx_o
12
+ * @param {number[]|null|undefined}or
13
+ * @returns {number[]|null|undefined}
14
+ */
15
+ export function maybe_sort_idx_a_(
16
+ in_sort_idx_o, or = null
17
+ ) {
18
+ return in_sort_idx_o ? sort_idx_a_(in_sort_idx_o) : or
19
+ }
20
+ export {
21
+ sort_idx_a_ as sort_idx_a1_fn,
22
+ sort_idx_a_ as _sort_idx_a1,
23
+ maybe_sort_idx_a_ as maybe_sort_idx_a1_fn,
24
+ maybe_sort_idx_a_ as _maybe_sort_idx_a1,
25
+ }
@@ -0,0 +1,29 @@
1
+ import type { compare_T, sort_idx_ctx__T, sort_idx_o_T } from '../array_types/index.js'
2
+ /**
3
+ * Returns a [sort_idx_o_T](#sort_idx_o_T).
4
+ */
5
+ export declare function sort_idx_o_<
6
+ I extends unknown = unknown
7
+ >(
8
+ maybe_a:readonly I[]|undefined,
9
+ compare?:compare_T<I>
10
+ ):sort_idx_o_T<I>
11
+ export {
12
+ sort_idx_o_ as sort_idx_ctx_,
13
+ sort_idx_o_ as _sort_idx_ctx,
14
+ sort_idx_o_ as _ctx__idx__sort,
15
+ sort_idx_o_ as _fn__sort_idx_ctx,
16
+ }
17
+ /**
18
+ * Returns function that returns [_sort_idx_ctx](#_sort_idx_ctx).
19
+ */
20
+ export declare function sort_idx_o__<
21
+ I extends unknown = unknown
22
+ >(
23
+ compare?:compare_T<I>
24
+ ):sort_idx_ctx__T<I>
25
+ export {
26
+ sort_idx_o__ as sort_idx_ctx__,
27
+ sort_idx_o__ as sort_idx_ctx_2,
28
+ sort_idx_o__ as _sort_idx_ctx_fn,
29
+ }
@@ -0,0 +1,53 @@
1
+ import { compare_ } from '../compare/index.js'
2
+ import { sort } from '../sort/index.js'
3
+ /**
4
+ * Returns a [sort_idx_o_T](#sort_idx_o_T).
5
+ * @param {unknown[]|undefined}maybe_a
6
+ * @param {import('../array_types/index.js').compare_T}[compare]
7
+ * @returns {import('../array_types/index.js').sort_idx_o_T}
8
+ */
9
+ export function sort_idx_o_(
10
+ maybe_a,
11
+ compare = compare_()
12
+ ) {
13
+ const sort_a = []
14
+ const sort_val_a = []
15
+ const sort_idx_a = []
16
+ if (maybe_a) {
17
+ const a = maybe_a
18
+ for (let i = 0; i < a.length; i++) {
19
+ sort_a.push([
20
+ a[i],
21
+ i
22
+ ])
23
+ }
24
+ sort(sort_a, (l, r)=>compare(l[0], r[0]))
25
+ for (let i1 = 0; i1 < a.length; i1++) {
26
+ sort_idx_a.push(sort_a[i1][1])
27
+ sort_val_a[i1] = sort_a[i1][0]
28
+ }
29
+ }
30
+ return {
31
+ sort_idx_a,
32
+ sort_val_a
33
+ }
34
+ }
35
+ export {
36
+ sort_idx_o_ as sort_idx_ctx_,
37
+ sort_idx_o_ as _sort_idx_ctx,
38
+ sort_idx_o_ as _ctx__idx__sort,
39
+ }
40
+ /**
41
+ * Returns function that returns [_sort_idx_ctx](#_sort_idx_ctx).
42
+ * @param {import('../array_types/index.js').compare_T}compare
43
+ * @returns {import('../array_types/index.js').sort_idx_ctx__T}
44
+ */
45
+ export function sort_idx_o__(compare) {
46
+ return a=>sort_idx_o_(a, compare)
47
+ }
48
+ export {
49
+ sort_idx_o__ as sort_idx_ctx__,
50
+ sort_idx_o__ as sort_idx_ctx_2,
51
+ sort_idx_o__ as _sort_idx_ctx_fn,
52
+ sort_idx_o_ as _fn__sort_idx_ctx,
53
+ }
@@ -0,0 +1,12 @@
1
+ import { test } from 'uvu'
2
+ import { equal } from 'uvu/assert'
3
+ import type { sort_idx_o_T } from '../array_types/index.js'
4
+ import { sort_idx_o_ } from '../sort_idx_o/index.js'
5
+ test('sort_idx_o_|inference', ()=>{
6
+ const sort_idx_ctx:sort_idx_o_T<number> = sort_idx_o_([1, 2, 0])
7
+ equal(sort_idx_ctx, {
8
+ sort_idx_a: [2, 0, 1],
9
+ sort_val_a: [0, 1, 2],
10
+ })
11
+ })
12
+ test.run()
@@ -0,0 +1,21 @@
1
+ import type { sort_idx_o_T } from '../array_types/index.js'
2
+ /**
3
+ * Returns an Array of sorted values from [sort_idx_o_T](#sort_idx_o_T).sort_val_a
4
+ */
5
+ export declare function sort_val_a_<
6
+ I extends unknown = unknown
7
+ >(
8
+ in_sort_idx_o:sort_idx_o_T<I>
9
+ ):I[]
10
+ export declare function maybe_sort_val_a_<
11
+ I extends unknown = unknown, Or = null
12
+ >(
13
+ maybe_sort_idx_ctx:sort_idx_o_T<I>|undefined,
14
+ or?:Or
15
+ ):I[]|Or
16
+ export {
17
+ maybe_sort_val_a_ as maybe_sort_val_a1_fn,
18
+ maybe_sort_val_a_ as _maybe_sort_val_a1,
19
+ sort_val_a_ as sort_val_a1_fn,
20
+ sort_val_a_ as _sort_val_a1,
21
+ }
@@ -0,0 +1,23 @@
1
+ /** @typedef {import('../array_types/index.d.ts').sort_idx_o_T}sort_idx_o_T */
2
+ /**
3
+ * Returns an Array of sorted values from [sort_idx_o_T](#sort_idx_o_T).sort_val_a
4
+ * @param {sort_idx_o_T}in_sort_idx_o
5
+ * @returns {unknown[]}
6
+ */
7
+ export function sort_val_a_(in_sort_idx_o) {
8
+ return in_sort_idx_o.sort_val_a
9
+ }
10
+ /**
11
+ * @param {sort_idx_o_T|undefined}maybe_sort_idx_ctx
12
+ * @param {unknown[]|null|undefined}or
13
+ * @returns {unknown[]|null|undefined}
14
+ */
15
+ export function maybe_sort_val_a_(maybe_sort_idx_ctx, or = null) {
16
+ return maybe_sort_idx_ctx ? sort_val_a_(maybe_sort_idx_ctx) : or
17
+ }
18
+ export {
19
+ maybe_sort_val_a_ as maybe_sort_val_a1_fn,
20
+ maybe_sort_val_a_ as _maybe_sort_val_a1,
21
+ sort_val_a_ as sort_val_a1_fn,
22
+ sort_val_a_ as _sort_val_a1,
23
+ }
@@ -0,0 +1,61 @@
1
+ import type { sort_val_a__transition_a_frame_fn_T, sort_val_a__transition_a_frame_T } from '../array_types/index.js'
2
+ import type { eq_T } from '../eq/index.js'
3
+ /**
4
+ * Returns a [sort_val_a__transition_a_frame_T](#sort_val_a__transition_a_frame_T) of presumably sorted items in `val_a` at each index of the new item for each changed item.
5
+ */
6
+ export declare function sort_val_a__enter_a_frame_<
7
+ I extends unknown = unknown
8
+ >(
9
+ sort_val_a:readonly I[]|undefined
10
+ ):sort_val_a__transition_a_frame_T<I>
11
+ export {
12
+ sort_val_a__enter_a_frame_ as sort_val_a$enter_a_frame_,
13
+ sort_val_a__enter_a_frame_ as entry_thold_a_compact_ctx_,
14
+ sort_val_a__enter_a_frame_ as entry_thold_a1_compact_ctx_fn,
15
+ sort_val_a__enter_a_frame_ as _entry_thold_a1_compact_ctx,
16
+ sort_val_a__enter_a_frame_ as _ctx__compact__a1__thold__entry,
17
+ }
18
+ /**
19
+ * Returns a function that returns a [sort_val_a__transition_a_frame_T](#sort_val_a__transition_a_frame_T)
20
+ */
21
+ export declare function sort_val_a__enter_a_frame_fn_<
22
+ I extends unknown = unknown
23
+ >(
24
+ eq_?:eq_T<readonly I[]>
25
+ ):sort_val_a__transition_a_frame_fn_T<I>
26
+ export {
27
+ sort_val_a__enter_a_frame_fn_ as sort_val_a$enter_a_frame_fn_,
28
+ sort_val_a__enter_a_frame_fn_ as entry_thold_a_compact_ctx_2,
29
+ sort_val_a__enter_a_frame_fn_ as entry_thold_a1_compact_ctx_fn2,
30
+ sort_val_a__enter_a_frame_fn_ as _entry_thold_a1_compact_ctx_fn,
31
+ sort_val_a__enter_a_frame_fn_ as _fn__ctx__compact__a1__thold__entry,
32
+ }
33
+ /**
34
+ * Returns a [sort_val_a__transition_a_frame_T](#sort_val_a__transition_a_frame_T) of presumably sorted items in `val_a` at each index of the old item for each changed item.
35
+ */
36
+ export declare function sort_val_a__exit_a_frame_<
37
+ I extends unknown = unknown
38
+ >(
39
+ sort_val_a?:readonly I[]
40
+ ):sort_val_a__transition_a_frame_T<I>
41
+ export {
42
+ sort_val_a__exit_a_frame_ as sort_val_a$exit_a_frame_,
43
+ sort_val_a__enter_a_frame_ as exit_thold_a_compact_ctx_,
44
+ sort_val_a__exit_a_frame_ as exit_thold_a1_compact_ctx_fn,
45
+ sort_val_a__exit_a_frame_ as _exit_thold_a1_compact_ctx,
46
+ sort_val_a__exit_a_frame_ as _ctx__compact__a1__thold__exit
47
+ }
48
+ /**
49
+ * Returns a function that returns a [sort_val_a__transition_a_frame_T](#sort_val_a__transition_a_frame_T)
50
+ */
51
+ export declare function sort_val_a__exit_a_frame_fn_<
52
+ I extends unknown = unknown
53
+ >(
54
+ eq_?:eq_T<readonly I[]>
55
+ ):sort_val_a__transition_a_frame_fn_T<I>
56
+ export {
57
+ sort_val_a__exit_a_frame_fn_ as sort_val_a$exit_a_frame_fn_,
58
+ sort_val_a__exit_a_frame_fn_ as exit_thold_a1_compact_ctx_fn2,
59
+ sort_val_a__exit_a_frame_fn_ as _exit_thold_a1_compact_ctx_fn,
60
+ sort_val_a__exit_a_frame_fn_ as _fn__ctx__compact__a1__thold__exit,
61
+ }
@@ -0,0 +1,108 @@
1
+ import { eq } from '../eq/index.js'
2
+ /** @typedef {import('../eq/index.d.ts').eq_T}eq_T */
3
+ /** @typedef {import('../array_types/index.d.ts').sort_val_a__transition_a_frame_fn_T}sort_val_a__transition_a_frame_fn_T */
4
+ /** @typedef {import('../array_types/index.d.ts').sort_val_a__transition_a_frame_T}sort_val_a__transition_a_frame_T */
5
+ /**
6
+ * Returns a [sort_val_a__transition_a_frame_T](#sort_val_a__transition_a_frame_T) of presumably sorted items in `val_a` at each index of the new item for each changed item.
7
+ * @param {unknown[]|undefined}sort_val_a
8
+ * @returns {sort_val_a__transition_a_frame_T}
9
+ */
10
+ export function sort_val_a__enter_a_frame_(sort_val_a) {
11
+ return sort_val_a__enter_a_frame_fn_()(sort_val_a)
12
+ }
13
+ export {
14
+ sort_val_a__enter_a_frame_ as sort_val_a$enter_a_frame_,
15
+ sort_val_a__enter_a_frame_ as entry_thold_a_compact_ctx_,
16
+ sort_val_a__enter_a_frame_ as entry_thold_a1_compact_ctx_fn,
17
+ sort_val_a__enter_a_frame_ as _entry_thold_a1_compact_ctx,
18
+ sort_val_a__enter_a_frame_ as _ctx__compact__a1__thold__entry,
19
+ }
20
+ /**
21
+ * Returns a function that returns a [sort_val_a__transition_a_frame_T](#sort_val_a__transition_a_frame_T)
22
+ * @param {eq_T}[eq_]
23
+ * @returns {sort_val_a__transition_a_frame_fn_T}
24
+ */
25
+ export function sort_val_a__enter_a_frame_fn_(eq_ = eq) {
26
+ return sort_val_a=>{
27
+ const idx_a = []
28
+ const val_a = []
29
+ if (sort_val_a) {
30
+ for (let i = 0; i < sort_val_a.length; i++) {
31
+ const sort_val = sort_val_a[i]
32
+ const prev_sort_val = sort_val_a[i - 1]
33
+ if (!i || (
34
+ eq_ ? !eq_([sort_val, prev_sort_val])
35
+ : sort_val !== prev_sort_val)
36
+ ) {
37
+ idx_a.push(i)
38
+ val_a.push(sort_val)
39
+ }
40
+ }
41
+ }
42
+ return {
43
+ idx_a,
44
+ val_a
45
+ }
46
+ }
47
+ }
48
+ export {
49
+ sort_val_a__enter_a_frame_fn_ as sort_val_a$enter_a_frame_fn_,
50
+ sort_val_a__enter_a_frame_fn_ as entry_thold_a_compact_ctx_2,
51
+ sort_val_a__enter_a_frame_fn_ as entry_thold_a1_compact_ctx_fn2,
52
+ sort_val_a__enter_a_frame_fn_ as _entry_thold_a1_compact_ctx_fn,
53
+ sort_val_a__enter_a_frame_fn_ as _fn__ctx__compact__a1__thold__entry,
54
+ }
55
+ /**
56
+ * Returns a [sort_val_a__transition_a_frame_T](#sort_val_a__transition_a_frame_T) of presumably sorted items in `val_a` at each index of the old item for each changed item.
57
+ * @param {unknown[]}[sort_val_a]
58
+ * @returns {sort_val_a__transition_a_frame_T}
59
+ */
60
+ export function sort_val_a__exit_a_frame_(sort_val_a) {
61
+ return sort_val_a__exit_a_frame_fn_()(sort_val_a)
62
+ }
63
+ export {
64
+ sort_val_a__exit_a_frame_ as sort_val_a$exit_a_frame_,
65
+ sort_val_a__exit_a_frame_ as exit_thold_a_compact_ctx_,
66
+ sort_val_a__exit_a_frame_ as exit_thold_a1_compact_ctx_fn,
67
+ sort_val_a__exit_a_frame_ as _exit_thold_a1_compact_ctx,
68
+ sort_val_a__exit_a_frame_ as _ctx__compact__a1__thold__exit,
69
+ }
70
+ /**
71
+ * Returns a function that returns a [sort_val_a__transition_a_frame_T](#sort_val_a__transition_a_frame_T)
72
+ * @param {eq_T}[eq_]
73
+ * @returns {sort_val_a__transition_a_frame_fn_T}
74
+ */
75
+ export function sort_val_a__exit_a_frame_fn_(eq_ = eq) {
76
+ /**
77
+ * @param sort_val_a{unknown[]}
78
+ */
79
+ return sort_val_a=>{
80
+ /** @type {number[]} */
81
+ const idx_a = []
82
+ /** @type {unknown[]} */
83
+ const val_a = []
84
+ if (sort_val_a) {
85
+ const sort_val_a_length = sort_val_a.length
86
+ for (let idx = 0; idx < sort_val_a.length; idx++) {
87
+ const sort_val = sort_val_a[idx]
88
+ const next_idx = idx + 1
89
+ const next_sort_val = sort_val_a[next_idx]
90
+ if (next_idx === sort_val_a_length || (
91
+ eq_ ? !eq_([sort_val, next_sort_val])
92
+ : sort_val !== next_sort_val)
93
+ ) {
94
+ idx_a.push(idx)
95
+ val_a.push(sort_val)
96
+ }
97
+ }
98
+ }
99
+ return { idx_a, val_a, }
100
+ }
101
+ }
102
+ export {
103
+ sort_val_a__exit_a_frame_fn_ as sort_val_a$exit_a_frame_fn_,
104
+ sort_val_a__exit_a_frame_fn_ as exit_thold_a_compact_ctx_2,
105
+ sort_val_a__exit_a_frame_fn_ as exit_thold_a1_compact_ctx_fn2,
106
+ sort_val_a__exit_a_frame_fn_ as _exit_thold_a1_compact_ctx_fn,
107
+ sort_val_a__exit_a_frame_fn_ as _fn__ctx__compact__a1__thold__exit,
108
+ }
@@ -0,0 +1,99 @@
1
+ import { test } from 'uvu'
2
+ import { equal } from 'uvu/assert'
3
+ import {
4
+ sort_val_a__enter_a_frame_,
5
+ sort_val_a__enter_a_frame_fn_,
6
+ sort_val_a__exit_a_frame_,
7
+ sort_val_a__exit_a_frame_fn_
8
+ } from '../sort_val_a__transition_idx_a/index.js'
9
+ test('sort_val_a__enter_a_frame_', ()=>{
10
+ equal({
11
+ idx_a: [0, 3, 5],
12
+ val_a: ['a', 'b', 'c']
13
+ }, sort_val_a__enter_a_frame_(['a', 'a', 'a', 'b', 'b', 'c']))
14
+ })
15
+ test('sort_val_a__enter_a_frame_fn_', ()=>{
16
+ equal({
17
+ idx_a: [0, 3, 5],
18
+ val_a: ['a', 'b', 'c']
19
+ }, sort_val_a__enter_a_frame_fn_()(['a', 'a', 'a', 'b', 'b', 'c']))
20
+ {
21
+ const iter_a_eq_arg_aa:(readonly string[])[] = []
22
+ equal({
23
+ idx_a: [0],
24
+ val_a: ['a']
25
+ }, sort_val_a__enter_a_frame_fn_<string>(arg_a=>{
26
+ iter_a_eq_arg_aa.push(arg_a)
27
+ return true
28
+ })(['a', 'a', 'a', 'b', 'b', 'c']))
29
+ equal([
30
+ ['a', 'a'],
31
+ ['a', 'a'],
32
+ ['b', 'a'],
33
+ ['b', 'b'],
34
+ ['c', 'b'],
35
+ ], iter_a_eq_arg_aa)
36
+ }
37
+ {
38
+ const iter_a_eq_arg_aa:(readonly string[])[] = []
39
+ equal({
40
+ idx_a: [0, 1, 2, 3, 4, 5],
41
+ val_a: ['a', 'a', 'a', 'b', 'b', 'c']
42
+ }, sort_val_a__enter_a_frame_fn_<string>(arg_a=>{
43
+ iter_a_eq_arg_aa.push(arg_a)
44
+ return false
45
+ })(['a', 'a', 'a', 'b', 'b', 'c']))
46
+ equal([
47
+ ['a', 'a'],
48
+ ['a', 'a'],
49
+ ['b', 'a'],
50
+ ['b', 'b'],
51
+ ['c', 'b'],
52
+ ], iter_a_eq_arg_aa)
53
+ }
54
+ })
55
+ test('sort_val_a__exit_a_frame_', ()=>{
56
+ equal(sort_val_a__exit_a_frame_(['a', 'a', 'a', 'b', 'b', 'c']), {
57
+ idx_a: [2, 4, 5],
58
+ val_a: ['a', 'b', 'c']
59
+ })
60
+ })
61
+ test('sort_val_a__exit_a_frame_fn_', ()=>{
62
+ equal(sort_val_a__exit_a_frame_fn_()(['a', 'a', 'a', 'b', 'b', 'c']), {
63
+ idx_a: [2, 4, 5],
64
+ val_a: ['a', 'b', 'c']
65
+ })
66
+ {
67
+ const iter_a_eq_arg_aaa:(readonly string[])[][] = []
68
+ equal(
69
+ sort_val_a__exit_a_frame_fn_<string>((...arg_a)=>{
70
+ iter_a_eq_arg_aaa.push(arg_a)
71
+ return true
72
+ })(['a', 'a', 'a', 'b', 'b', 'c']),
73
+ { idx_a: [5], val_a: ['c'] })
74
+ equal(iter_a_eq_arg_aaa, [
75
+ [['a', 'a']],
76
+ [['a', 'a']],
77
+ [['a', 'b']],
78
+ [['b', 'b']],
79
+ [['b', 'c']],
80
+ ])
81
+ }
82
+ {
83
+ const iter_a_eq_arg_aaa:(readonly string[])[][] = []
84
+ equal(
85
+ sort_val_a__exit_a_frame_fn_<string>((...arg_aa)=>{
86
+ iter_a_eq_arg_aaa.push(arg_aa)
87
+ return false
88
+ })(['a', 'a', 'a', 'b', 'b', 'c']),
89
+ { idx_a: [0, 1, 2, 3, 4, 5], val_a: ['a', 'a', 'a', 'b', 'b', 'c'] })
90
+ equal(iter_a_eq_arg_aaa, [
91
+ [['a', 'a']],
92
+ [['a', 'a']],
93
+ [['a', 'b']],
94
+ [['b', 'b']],
95
+ [['b', 'c']],
96
+ ])
97
+ }
98
+ })
99
+ test.run()
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Returns a sparsely populated Array with `idx_a` indices & `val_a` values
3
+ */
4
+ export declare function sparse_a_<
5
+ I extends unknown = unknown
6
+ >(
7
+ idx_a:readonly number[],
8
+ val_a:readonly I[]
9
+ ):I[]
10
+ export {
11
+ sparse_a_ as sparse_a1_fn,
12
+ sparse_a_ as _sparse_a1,
13
+ sparse_a_ as _a1__sparse,
14
+ }
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Returns a sparsely populated Array with `idx_a` indices & `val_a` values
3
+ * @param {number[]}idx_a
4
+ * @param {unknown[]}val_a
5
+ * @returns {unknown[]}
6
+ */
7
+ export function sparse_a_(idx_a, val_a) {
8
+ const sparse_a = []
9
+ for (let i = 0; i < idx_a.length; i++) {
10
+ const idx = idx_a[i]
11
+ sparse_a[idx] = val_a[i]
12
+ }
13
+ return sparse_a
14
+ }
15
+ export {
16
+ sparse_a_ as sparse_a1_fn,
17
+ sparse_a_ as _sparse_a1,
18
+ sparse_a_ as _a1__sparse,
19
+ }