iter-fest 0.1.1-main.9193c0a → 0.1.1-main.b1e260f

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 (505) hide show
  1. package/README.md +267 -25
  2. package/dist/chunk-2DE3J4J7.mjs +35 -0
  3. package/dist/chunk-2DE3J4J7.mjs.map +1 -0
  4. package/dist/chunk-3S6LCGE6.mjs +10 -0
  5. package/dist/chunk-3S6LCGE6.mjs.map +1 -0
  6. package/dist/chunk-4RT2FROS.mjs +10 -0
  7. package/dist/chunk-4RT2FROS.mjs.map +1 -0
  8. package/dist/chunk-4ZBMXHD6.mjs +10 -0
  9. package/dist/chunk-4ZBMXHD6.mjs.map +1 -0
  10. package/dist/chunk-72AEHTPQ.mjs +38 -0
  11. package/dist/chunk-72AEHTPQ.mjs.map +1 -0
  12. package/dist/{chunk-UIEKIMLW.mjs → chunk-AN54W42O.mjs} +8 -5
  13. package/dist/chunk-AN54W42O.mjs.map +1 -0
  14. package/dist/chunk-ANRVAYLW.mjs +35 -0
  15. package/dist/chunk-ANRVAYLW.mjs.map +1 -0
  16. package/dist/chunk-AOZVPHE4.mjs +10 -0
  17. package/dist/chunk-AOZVPHE4.mjs.map +1 -0
  18. package/dist/chunk-BSAPKNNZ.mjs +16 -0
  19. package/dist/chunk-BSAPKNNZ.mjs.map +1 -0
  20. package/dist/chunk-BWMXKULC.mjs +46 -0
  21. package/dist/chunk-BWMXKULC.mjs.map +1 -0
  22. package/dist/chunk-CNCNQPK3.mjs +16 -0
  23. package/dist/chunk-CNCNQPK3.mjs.map +1 -0
  24. package/dist/chunk-CNKIGQUS.mjs +10 -0
  25. package/dist/chunk-CNKIGQUS.mjs.map +1 -0
  26. package/dist/chunk-DC2ZV7KQ.mjs +10 -0
  27. package/dist/chunk-DC2ZV7KQ.mjs.map +1 -0
  28. package/dist/chunk-EIIP7YWB.mjs +27 -0
  29. package/dist/chunk-EIIP7YWB.mjs.map +1 -0
  30. package/dist/{chunk-KONB7TV6.mjs → chunk-EQZQP6GW.mjs} +8 -5
  31. package/dist/chunk-EQZQP6GW.mjs.map +1 -0
  32. package/dist/chunk-FBST4AUL.mjs +10 -0
  33. package/dist/chunk-FBST4AUL.mjs.map +1 -0
  34. package/dist/chunk-FEEBFWAI.mjs +24 -0
  35. package/dist/chunk-FEEBFWAI.mjs.map +1 -0
  36. package/dist/chunk-FEOLYD5R.mjs +31 -0
  37. package/dist/chunk-FEOLYD5R.mjs.map +1 -0
  38. package/dist/chunk-FMIHIL6A.mjs +10 -0
  39. package/dist/chunk-FMIHIL6A.mjs.map +1 -0
  40. package/dist/chunk-GFJGWVES.mjs +10 -0
  41. package/dist/chunk-GFJGWVES.mjs.map +1 -0
  42. package/dist/{chunk-27NJVC7K.mjs → chunk-H27CTQGV.mjs} +8 -5
  43. package/dist/chunk-H27CTQGV.mjs.map +1 -0
  44. package/dist/{chunk-MDBK7ND5.mjs → chunk-H5ARVU55.mjs} +8 -5
  45. package/dist/chunk-H5ARVU55.mjs.map +1 -0
  46. package/dist/{chunk-WKIRSZXX.mjs → chunk-IZXDQ25M.mjs} +8 -5
  47. package/dist/chunk-IZXDQ25M.mjs.map +1 -0
  48. package/dist/chunk-J3FQSENW.mjs +10 -0
  49. package/dist/chunk-J3FQSENW.mjs.map +1 -0
  50. package/dist/chunk-JVR6BUJA.mjs +10 -0
  51. package/dist/chunk-JVR6BUJA.mjs.map +1 -0
  52. package/dist/chunk-K4RCFPTZ.mjs +10 -0
  53. package/dist/chunk-K4RCFPTZ.mjs.map +1 -0
  54. package/dist/chunk-LB3MK3EU.mjs +10 -0
  55. package/dist/chunk-LB3MK3EU.mjs.map +1 -0
  56. package/dist/chunk-LIMQXDFK.mjs +10 -0
  57. package/dist/chunk-LIMQXDFK.mjs.map +1 -0
  58. package/dist/chunk-MO7HMLOZ.mjs +24 -0
  59. package/dist/chunk-MO7HMLOZ.mjs.map +1 -0
  60. package/dist/chunk-MYSNSDM7.mjs +13 -0
  61. package/dist/chunk-MYSNSDM7.mjs.map +1 -0
  62. package/dist/chunk-NLXKATXE.mjs +10 -0
  63. package/dist/chunk-NLXKATXE.mjs.map +1 -0
  64. package/dist/chunk-NZRXO7EY.mjs +24 -0
  65. package/dist/chunk-NZRXO7EY.mjs.map +1 -0
  66. package/dist/chunk-OCK7PKGO.mjs +23 -0
  67. package/dist/chunk-OCK7PKGO.mjs.map +1 -0
  68. package/dist/chunk-ODPKEUIR.mjs +10 -0
  69. package/dist/chunk-ODPKEUIR.mjs.map +1 -0
  70. package/dist/chunk-OJMT4K3R.mjs +8 -0
  71. package/dist/chunk-OJMT4K3R.mjs.map +1 -0
  72. package/dist/chunk-OWUGLCQB.mjs +10 -0
  73. package/dist/chunk-OWUGLCQB.mjs.map +1 -0
  74. package/dist/chunk-P4OSZLEH.mjs +15 -0
  75. package/dist/chunk-P4OSZLEH.mjs.map +1 -0
  76. package/dist/chunk-PGJSIDLV.mjs +25 -0
  77. package/dist/chunk-PGJSIDLV.mjs.map +1 -0
  78. package/dist/chunk-QLVU73KN.mjs +10 -0
  79. package/dist/chunk-QLVU73KN.mjs.map +1 -0
  80. package/dist/chunk-R6SXIXMH.mjs +10 -0
  81. package/dist/chunk-R6SXIXMH.mjs.map +1 -0
  82. package/dist/chunk-RVIERPEV.mjs +26 -0
  83. package/dist/chunk-RVIERPEV.mjs.map +1 -0
  84. package/dist/chunk-S2LECQKY.mjs +10 -0
  85. package/dist/chunk-S2LECQKY.mjs.map +1 -0
  86. package/dist/chunk-TDHR35S7.mjs +10 -0
  87. package/dist/chunk-TDHR35S7.mjs.map +1 -0
  88. package/dist/chunk-VCKLUCOT.mjs +10 -0
  89. package/dist/chunk-VCKLUCOT.mjs.map +1 -0
  90. package/dist/chunk-VIMGYUMQ.mjs +10 -0
  91. package/dist/chunk-VIMGYUMQ.mjs.map +1 -0
  92. package/dist/chunk-VLF6DI2U.mjs +30 -0
  93. package/dist/chunk-VLF6DI2U.mjs.map +1 -0
  94. package/dist/chunk-WUFMEPOM.mjs +10 -0
  95. package/dist/chunk-WUFMEPOM.mjs.map +1 -0
  96. package/dist/chunk-XQDGXAAF.mjs +10 -0
  97. package/dist/chunk-XQDGXAAF.mjs.map +1 -0
  98. package/dist/chunk-YJSIVBF7.mjs +22 -0
  99. package/dist/chunk-YJSIVBF7.mjs.map +1 -0
  100. package/dist/iter-fest.asyncGeneratorWithLastValue.d.mts +6 -0
  101. package/dist/iter-fest.asyncGeneratorWithLastValue.d.ts +6 -0
  102. package/dist/iter-fest.asyncGeneratorWithLastValue.js +59 -0
  103. package/dist/iter-fest.asyncGeneratorWithLastValue.js.map +1 -0
  104. package/dist/iter-fest.asyncGeneratorWithLastValue.mjs +7 -0
  105. package/dist/iter-fest.asyncIteratorDrop.d.mts +12 -0
  106. package/dist/iter-fest.asyncIteratorDrop.d.ts +12 -0
  107. package/dist/iter-fest.asyncIteratorDrop.js +44 -0
  108. package/dist/iter-fest.asyncIteratorDrop.js.map +1 -0
  109. package/dist/iter-fest.asyncIteratorDrop.mjs +7 -0
  110. package/dist/iter-fest.asyncIteratorEvery.d.mts +25 -0
  111. package/dist/iter-fest.asyncIteratorEvery.d.ts +25 -0
  112. package/dist/iter-fest.asyncIteratorEvery.js +44 -0
  113. package/dist/iter-fest.asyncIteratorEvery.js.map +1 -0
  114. package/dist/iter-fest.asyncIteratorEvery.mjs +7 -0
  115. package/dist/iter-fest.asyncIteratorFilter.d.mts +18 -0
  116. package/dist/iter-fest.asyncIteratorFilter.d.ts +18 -0
  117. package/dist/iter-fest.asyncIteratorFilter.js +44 -0
  118. package/dist/iter-fest.asyncIteratorFilter.js.map +1 -0
  119. package/dist/iter-fest.asyncIteratorFilter.mjs +7 -0
  120. package/dist/iter-fest.asyncIteratorFind.d.mts +14 -0
  121. package/dist/iter-fest.asyncIteratorFind.d.ts +14 -0
  122. package/dist/iter-fest.asyncIteratorFind.js +44 -0
  123. package/dist/iter-fest.asyncIteratorFind.js.map +1 -0
  124. package/dist/iter-fest.asyncIteratorFind.mjs +7 -0
  125. package/dist/iter-fest.asyncIteratorFlatMap.d.mts +12 -0
  126. package/dist/iter-fest.asyncIteratorFlatMap.d.ts +12 -0
  127. package/dist/iter-fest.asyncIteratorFlatMap.js +44 -0
  128. package/dist/iter-fest.asyncIteratorFlatMap.js.map +1 -0
  129. package/dist/iter-fest.asyncIteratorFlatMap.mjs +7 -0
  130. package/dist/iter-fest.asyncIteratorForEach.d.mts +10 -0
  131. package/dist/iter-fest.asyncIteratorForEach.d.ts +10 -0
  132. package/dist/iter-fest.asyncIteratorForEach.js +44 -0
  133. package/dist/iter-fest.asyncIteratorForEach.js.map +1 -0
  134. package/dist/iter-fest.asyncIteratorForEach.mjs +7 -0
  135. package/dist/iter-fest.asyncIteratorFrom.d.mts +10 -0
  136. package/dist/iter-fest.asyncIteratorFrom.d.ts +10 -0
  137. package/dist/iter-fest.asyncIteratorFrom.js +44 -0
  138. package/dist/iter-fest.asyncIteratorFrom.js.map +1 -0
  139. package/dist/iter-fest.asyncIteratorFrom.mjs +7 -0
  140. package/dist/iter-fest.asyncIteratorMap.d.mts +10 -0
  141. package/dist/iter-fest.asyncIteratorMap.d.ts +10 -0
  142. package/dist/iter-fest.asyncIteratorMap.js +44 -0
  143. package/dist/iter-fest.asyncIteratorMap.js.map +1 -0
  144. package/dist/iter-fest.asyncIteratorMap.mjs +7 -0
  145. package/dist/iter-fest.asyncIteratorReduce.d.mts +23 -0
  146. package/dist/iter-fest.asyncIteratorReduce.d.ts +23 -0
  147. package/dist/iter-fest.asyncIteratorReduce.js +44 -0
  148. package/dist/iter-fest.asyncIteratorReduce.js.map +1 -0
  149. package/dist/iter-fest.asyncIteratorReduce.mjs +7 -0
  150. package/dist/iter-fest.asyncIteratorSome.d.mts +10 -0
  151. package/dist/iter-fest.asyncIteratorSome.d.ts +10 -0
  152. package/dist/iter-fest.asyncIteratorSome.js +44 -0
  153. package/dist/iter-fest.asyncIteratorSome.js.map +1 -0
  154. package/dist/iter-fest.asyncIteratorSome.mjs +7 -0
  155. package/dist/iter-fest.asyncIteratorTake.d.mts +12 -0
  156. package/dist/iter-fest.asyncIteratorTake.d.ts +12 -0
  157. package/dist/iter-fest.asyncIteratorTake.js +44 -0
  158. package/dist/iter-fest.asyncIteratorTake.js.map +1 -0
  159. package/dist/iter-fest.asyncIteratorTake.mjs +7 -0
  160. package/dist/iter-fest.asyncIteratorToArray.d.mts +10 -0
  161. package/dist/iter-fest.asyncIteratorToArray.d.ts +10 -0
  162. package/dist/iter-fest.asyncIteratorToArray.js +44 -0
  163. package/dist/iter-fest.asyncIteratorToArray.js.map +1 -0
  164. package/dist/iter-fest.asyncIteratorToArray.mjs +7 -0
  165. package/dist/iter-fest.asyncIteratorToAsyncIterable.d.mts +3 -0
  166. package/dist/iter-fest.asyncIteratorToAsyncIterable.d.ts +3 -0
  167. package/dist/{iter-fest.iterableConcat.js → iter-fest.asyncIteratorToAsyncIterable.js} +15 -16
  168. package/dist/iter-fest.asyncIteratorToAsyncIterable.js.map +1 -0
  169. package/dist/iter-fest.asyncIteratorToAsyncIterable.mjs +7 -0
  170. package/dist/iter-fest.d.mts +50 -20
  171. package/dist/iter-fest.d.ts +50 -20
  172. package/dist/iter-fest.generatorWithLastValue.d.mts +6 -0
  173. package/dist/iter-fest.generatorWithLastValue.d.ts +6 -0
  174. package/dist/iter-fest.generatorWithLastValue.js +59 -0
  175. package/dist/iter-fest.generatorWithLastValue.js.map +1 -0
  176. package/dist/iter-fest.generatorWithLastValue.mjs +7 -0
  177. package/dist/iter-fest.iterableWritableStream.d.mts +7 -0
  178. package/dist/iter-fest.iterableWritableStream.d.ts +7 -0
  179. package/dist/iter-fest.iterableWritableStream.js +82 -0
  180. package/dist/iter-fest.iterableWritableStream.js.map +1 -0
  181. package/dist/iter-fest.iterableWritableStream.mjs +7 -0
  182. package/dist/{iter-fest.iterableAt.d.ts → iter-fest.iteratorAt.d.mts} +2 -2
  183. package/dist/{iter-fest.iterableAt.d.mts → iter-fest.iteratorAt.d.ts} +2 -2
  184. package/dist/{iter-fest.iterableAt.js → iter-fest.iteratorAt.js} +21 -10
  185. package/dist/iter-fest.iteratorAt.js.map +1 -0
  186. package/dist/iter-fest.iteratorAt.mjs +9 -0
  187. package/dist/iter-fest.iteratorConcat.d.mts +16 -0
  188. package/dist/iter-fest.iteratorConcat.d.ts +16 -0
  189. package/dist/iter-fest.iteratorConcat.js +56 -0
  190. package/dist/iter-fest.iteratorConcat.js.map +1 -0
  191. package/dist/iter-fest.iteratorConcat.mjs +8 -0
  192. package/dist/iter-fest.iteratorDrop.d.mts +12 -0
  193. package/dist/iter-fest.iteratorDrop.d.ts +12 -0
  194. package/dist/iter-fest.iteratorDrop.js +44 -0
  195. package/dist/iter-fest.iteratorDrop.js.map +1 -0
  196. package/dist/iter-fest.iteratorDrop.mjs +7 -0
  197. package/dist/iter-fest.iteratorEntries.d.mts +6 -0
  198. package/dist/iter-fest.iteratorEntries.d.ts +6 -0
  199. package/dist/{iter-fest.iterableEntries.js → iter-fest.iteratorEntries.js} +22 -9
  200. package/dist/iter-fest.iteratorEntries.js.map +1 -0
  201. package/dist/iter-fest.iteratorEntries.mjs +8 -0
  202. package/dist/iter-fest.iteratorEvery.d.mts +25 -0
  203. package/dist/iter-fest.iteratorEvery.d.ts +25 -0
  204. package/dist/iter-fest.iteratorEvery.js +44 -0
  205. package/dist/iter-fest.iteratorEvery.js.map +1 -0
  206. package/dist/iter-fest.iteratorEvery.mjs +7 -0
  207. package/dist/iter-fest.iteratorEvery.mjs.map +1 -0
  208. package/dist/iter-fest.iteratorFilter.d.mts +18 -0
  209. package/dist/iter-fest.iteratorFilter.d.ts +18 -0
  210. package/dist/iter-fest.iteratorFilter.js +44 -0
  211. package/dist/iter-fest.iteratorFilter.js.map +1 -0
  212. package/dist/iter-fest.iteratorFilter.mjs +7 -0
  213. package/dist/iter-fest.iteratorFilter.mjs.map +1 -0
  214. package/dist/iter-fest.iteratorFind.d.mts +14 -0
  215. package/dist/iter-fest.iteratorFind.d.ts +14 -0
  216. package/dist/iter-fest.iteratorFind.js +44 -0
  217. package/dist/iter-fest.iteratorFind.js.map +1 -0
  218. package/dist/iter-fest.iteratorFind.mjs +7 -0
  219. package/dist/iter-fest.iteratorFind.mjs.map +1 -0
  220. package/dist/{iter-fest.iterableFindIndex.d.mts → iter-fest.iteratorFindIndex.d.mts} +4 -4
  221. package/dist/{iter-fest.iterableFindIndex.d.ts → iter-fest.iteratorFindIndex.d.ts} +4 -4
  222. package/dist/{iter-fest.iterableFindIndex.js → iter-fest.iteratorFindIndex.js} +23 -10
  223. package/dist/iter-fest.iteratorFindIndex.js.map +1 -0
  224. package/dist/iter-fest.iteratorFindIndex.mjs +8 -0
  225. package/dist/iter-fest.iteratorFindIndex.mjs.map +1 -0
  226. package/dist/{iter-fest.iterableFindLast.d.mts → iter-fest.iteratorFindLast.d.mts} +5 -5
  227. package/dist/{iter-fest.iterableFindLast.d.ts → iter-fest.iteratorFindLast.d.ts} +5 -5
  228. package/dist/{iter-fest.iterableFindLast.js → iter-fest.iteratorFindLast.js} +23 -10
  229. package/dist/iter-fest.iteratorFindLast.js.map +1 -0
  230. package/dist/iter-fest.iteratorFindLast.mjs +8 -0
  231. package/dist/iter-fest.iteratorFindLast.mjs.map +1 -0
  232. package/dist/{iter-fest.iterableFindLastIndex.d.mts → iter-fest.iteratorFindLastIndex.d.mts} +4 -4
  233. package/dist/{iter-fest.iterableFindLastIndex.d.ts → iter-fest.iteratorFindLastIndex.d.ts} +4 -4
  234. package/dist/{iter-fest.iterableFindLastIndex.js → iter-fest.iteratorFindLastIndex.js} +23 -10
  235. package/dist/iter-fest.iteratorFindLastIndex.js.map +1 -0
  236. package/dist/iter-fest.iteratorFindLastIndex.mjs +8 -0
  237. package/dist/iter-fest.iteratorFindLastIndex.mjs.map +1 -0
  238. package/dist/iter-fest.iteratorFlatMap.d.mts +12 -0
  239. package/dist/iter-fest.iteratorFlatMap.d.ts +12 -0
  240. package/dist/iter-fest.iteratorFlatMap.js +44 -0
  241. package/dist/iter-fest.iteratorFlatMap.js.map +1 -0
  242. package/dist/iter-fest.iteratorFlatMap.mjs +7 -0
  243. package/dist/iter-fest.iteratorFlatMap.mjs.map +1 -0
  244. package/dist/iter-fest.iteratorForEach.d.mts +10 -0
  245. package/dist/iter-fest.iteratorForEach.d.ts +10 -0
  246. package/dist/iter-fest.iteratorForEach.js +44 -0
  247. package/dist/iter-fest.iteratorForEach.js.map +1 -0
  248. package/dist/iter-fest.iteratorForEach.mjs +7 -0
  249. package/dist/iter-fest.iteratorForEach.mjs.map +1 -0
  250. package/dist/iter-fest.iteratorFrom.d.mts +10 -0
  251. package/dist/iter-fest.iteratorFrom.d.ts +10 -0
  252. package/dist/iter-fest.iteratorFrom.js +44 -0
  253. package/dist/iter-fest.iteratorFrom.js.map +1 -0
  254. package/dist/iter-fest.iteratorFrom.mjs +7 -0
  255. package/dist/iter-fest.iteratorFrom.mjs.map +1 -0
  256. package/dist/iter-fest.iteratorIncludes.d.mts +9 -0
  257. package/dist/iter-fest.iteratorIncludes.d.ts +9 -0
  258. package/dist/{iter-fest.iterableIncludes.js → iter-fest.iteratorIncludes.js} +21 -10
  259. package/dist/iter-fest.iteratorIncludes.js.map +1 -0
  260. package/dist/iter-fest.iteratorIncludes.mjs +9 -0
  261. package/dist/iter-fest.iteratorIncludes.mjs.map +1 -0
  262. package/dist/iter-fest.iteratorIndexOf.d.mts +9 -0
  263. package/dist/iter-fest.iteratorIndexOf.d.ts +9 -0
  264. package/dist/{iter-fest.iterableIndexOf.js → iter-fest.iteratorIndexOf.js} +21 -10
  265. package/dist/iter-fest.iteratorIndexOf.js.map +1 -0
  266. package/dist/iter-fest.iteratorIndexOf.mjs +9 -0
  267. package/dist/iter-fest.iteratorIndexOf.mjs.map +1 -0
  268. package/dist/iter-fest.iteratorJoin.d.mts +8 -0
  269. package/dist/iter-fest.iteratorJoin.d.ts +8 -0
  270. package/dist/{iter-fest.iterableToString.js → iter-fest.iteratorJoin.js} +21 -15
  271. package/dist/iter-fest.iteratorJoin.js.map +1 -0
  272. package/dist/iter-fest.iteratorJoin.mjs +8 -0
  273. package/dist/iter-fest.iteratorJoin.mjs.map +1 -0
  274. package/dist/iter-fest.iteratorKeys.d.mts +6 -0
  275. package/dist/iter-fest.iteratorKeys.d.ts +6 -0
  276. package/dist/{iter-fest.iterableKeys.js → iter-fest.iteratorKeys.js} +22 -9
  277. package/dist/iter-fest.iteratorKeys.js.map +1 -0
  278. package/dist/iter-fest.iteratorKeys.mjs +8 -0
  279. package/dist/iter-fest.iteratorKeys.mjs.map +1 -0
  280. package/dist/iter-fest.iteratorMap.d.mts +10 -0
  281. package/dist/iter-fest.iteratorMap.d.ts +10 -0
  282. package/dist/iter-fest.iteratorMap.js +44 -0
  283. package/dist/iter-fest.iteratorMap.js.map +1 -0
  284. package/dist/iter-fest.iteratorMap.mjs +7 -0
  285. package/dist/iter-fest.iteratorMap.mjs.map +1 -0
  286. package/dist/{iter-fest.iterableReduce.d.mts → iter-fest.iteratorReduce.d.mts} +13 -9
  287. package/dist/{iter-fest.iterableReduce.d.ts → iter-fest.iteratorReduce.d.ts} +13 -9
  288. package/dist/iter-fest.iteratorReduce.js +44 -0
  289. package/dist/iter-fest.iteratorReduce.js.map +1 -0
  290. package/dist/iter-fest.iteratorReduce.mjs +7 -0
  291. package/dist/iter-fest.iteratorReduce.mjs.map +1 -0
  292. package/dist/{iter-fest.iterableSlice.d.mts → iter-fest.iteratorSlice.d.mts} +8 -8
  293. package/dist/{iter-fest.iterableSlice.d.ts → iter-fest.iteratorSlice.d.ts} +8 -8
  294. package/dist/{iter-fest.iterableSlice.js → iter-fest.iteratorSlice.js} +21 -10
  295. package/dist/iter-fest.iteratorSlice.js.map +1 -0
  296. package/dist/iter-fest.iteratorSlice.mjs +9 -0
  297. package/dist/iter-fest.iteratorSlice.mjs.map +1 -0
  298. package/dist/iter-fest.iteratorSome.d.mts +10 -0
  299. package/dist/iter-fest.iteratorSome.d.ts +10 -0
  300. package/dist/iter-fest.iteratorSome.js +44 -0
  301. package/dist/iter-fest.iteratorSome.js.map +1 -0
  302. package/dist/iter-fest.iteratorSome.mjs +7 -0
  303. package/dist/iter-fest.iteratorSome.mjs.map +1 -0
  304. package/dist/iter-fest.iteratorTake.d.mts +12 -0
  305. package/dist/iter-fest.iteratorTake.d.ts +12 -0
  306. package/dist/iter-fest.iteratorTake.js +44 -0
  307. package/dist/iter-fest.iteratorTake.js.map +1 -0
  308. package/dist/iter-fest.iteratorTake.mjs +7 -0
  309. package/dist/iter-fest.iteratorTake.mjs.map +1 -0
  310. package/dist/iter-fest.iteratorToArray.d.mts +10 -0
  311. package/dist/iter-fest.iteratorToArray.d.ts +10 -0
  312. package/dist/iter-fest.iteratorToArray.js +44 -0
  313. package/dist/iter-fest.iteratorToArray.js.map +1 -0
  314. package/dist/iter-fest.iteratorToArray.mjs +7 -0
  315. package/dist/iter-fest.iteratorToArray.mjs.map +1 -0
  316. package/dist/iter-fest.iteratorToAsync.d.mts +10 -0
  317. package/dist/iter-fest.iteratorToAsync.d.ts +10 -0
  318. package/dist/iter-fest.iteratorToAsync.js +44 -0
  319. package/dist/iter-fest.iteratorToAsync.js.map +1 -0
  320. package/dist/iter-fest.iteratorToAsync.mjs +7 -0
  321. package/dist/iter-fest.iteratorToAsync.mjs.map +1 -0
  322. package/dist/{iter-fest.iterableToSpliced.d.mts → iter-fest.iteratorToSpliced.d.mts} +3 -3
  323. package/dist/{iter-fest.iterableToSpliced.d.ts → iter-fest.iteratorToSpliced.d.ts} +3 -3
  324. package/dist/{iter-fest.iterableToSpliced.js → iter-fest.iteratorToSpliced.js} +21 -10
  325. package/dist/iter-fest.iteratorToSpliced.js.map +1 -0
  326. package/dist/iter-fest.iteratorToSpliced.mjs +9 -0
  327. package/dist/iter-fest.iteratorToSpliced.mjs.map +1 -0
  328. package/dist/iter-fest.iteratorToString.d.mts +6 -0
  329. package/dist/iter-fest.iteratorToString.d.ts +6 -0
  330. package/dist/{iter-fest.iterableJoin.js → iter-fest.iteratorToString.js} +27 -9
  331. package/dist/iter-fest.iteratorToString.js.map +1 -0
  332. package/dist/iter-fest.iteratorToString.mjs +9 -0
  333. package/dist/iter-fest.iteratorToString.mjs.map +1 -0
  334. package/dist/iter-fest.js +561 -179
  335. package/dist/iter-fest.js.map +1 -1
  336. package/dist/iter-fest.mjs +178 -62
  337. package/dist/iter-fest.observable.d.mts +51 -0
  338. package/dist/iter-fest.observable.d.ts +51 -0
  339. package/dist/iter-fest.observable.js +66 -0
  340. package/dist/iter-fest.observable.js.map +1 -0
  341. package/dist/iter-fest.observable.mjs +8 -0
  342. package/dist/iter-fest.observable.mjs.map +1 -0
  343. package/dist/iter-fest.observableFromAsync.d.mts +7 -0
  344. package/dist/iter-fest.observableFromAsync.d.ts +7 -0
  345. package/dist/iter-fest.observableFromAsync.js +91 -0
  346. package/dist/iter-fest.observableFromAsync.js.map +1 -0
  347. package/dist/iter-fest.observableFromAsync.mjs +9 -0
  348. package/dist/iter-fest.observableFromAsync.mjs.map +1 -0
  349. package/dist/iter-fest.observableSubscribeAsReadable.d.mts +7 -0
  350. package/dist/iter-fest.observableSubscribeAsReadable.d.ts +7 -0
  351. package/dist/iter-fest.observableSubscribeAsReadable.js +51 -0
  352. package/dist/iter-fest.observableSubscribeAsReadable.js.map +1 -0
  353. package/dist/iter-fest.observableSubscribeAsReadable.mjs +7 -0
  354. package/dist/iter-fest.observableSubscribeAsReadable.mjs.map +1 -0
  355. package/dist/iter-fest.observableValues.d.mts +7 -0
  356. package/dist/iter-fest.observableValues.d.ts +7 -0
  357. package/dist/iter-fest.observableValues.js +102 -0
  358. package/dist/iter-fest.observableValues.js.map +1 -0
  359. package/dist/iter-fest.observableValues.mjs +9 -0
  360. package/dist/iter-fest.observableValues.mjs.map +1 -0
  361. package/dist/iter-fest.readableStreamFrom.d.mts +3 -0
  362. package/dist/iter-fest.readableStreamFrom.d.ts +3 -0
  363. package/dist/{iter-fest.iterableFilter.js → iter-fest.readableStreamFrom.js} +21 -17
  364. package/dist/iter-fest.readableStreamFrom.js.map +1 -0
  365. package/dist/iter-fest.readableStreamFrom.mjs +7 -0
  366. package/dist/iter-fest.readableStreamFrom.mjs.map +1 -0
  367. package/dist/iter-fest.readableStreamValues.d.mts +3 -0
  368. package/dist/iter-fest.readableStreamValues.d.ts +3 -0
  369. package/dist/{iter-fest.iterableEvery.js → iter-fest.readableStreamValues.js} +25 -18
  370. package/dist/iter-fest.readableStreamValues.js.map +1 -0
  371. package/dist/iter-fest.readableStreamValues.mjs +7 -0
  372. package/dist/iter-fest.readableStreamValues.mjs.map +1 -0
  373. package/dist/iter-fest.symbolObservable.d.mts +3 -0
  374. package/dist/iter-fest.symbolObservable.d.ts +3 -0
  375. package/dist/iter-fest.symbolObservable.js +42 -0
  376. package/dist/iter-fest.symbolObservable.js.map +1 -0
  377. package/dist/iter-fest.symbolObservable.mjs +7 -0
  378. package/dist/iter-fest.symbolObservable.mjs.map +1 -0
  379. package/package.json +406 -112
  380. package/dist/chunk-27NJVC7K.mjs.map +0 -1
  381. package/dist/chunk-44W7OTNE.mjs +0 -12
  382. package/dist/chunk-44W7OTNE.mjs.map +0 -1
  383. package/dist/chunk-5CHMNKXJ.mjs +0 -20
  384. package/dist/chunk-5CHMNKXJ.mjs.map +0 -1
  385. package/dist/chunk-5CRMPYKD.mjs +0 -19
  386. package/dist/chunk-5CRMPYKD.mjs.map +0 -1
  387. package/dist/chunk-6C3P4TNK.mjs +0 -19
  388. package/dist/chunk-6C3P4TNK.mjs.map +0 -1
  389. package/dist/chunk-EZC33HE6.mjs +0 -15
  390. package/dist/chunk-EZC33HE6.mjs.map +0 -1
  391. package/dist/chunk-GWZF5BB7.mjs +0 -16
  392. package/dist/chunk-GWZF5BB7.mjs.map +0 -1
  393. package/dist/chunk-HYU4EN7J.mjs +0 -20
  394. package/dist/chunk-HYU4EN7J.mjs.map +0 -1
  395. package/dist/chunk-JU353VSE.mjs +0 -16
  396. package/dist/chunk-JU353VSE.mjs.map +0 -1
  397. package/dist/chunk-KONB7TV6.mjs.map +0 -1
  398. package/dist/chunk-MDBK7ND5.mjs.map +0 -1
  399. package/dist/chunk-MNLOWKTC.mjs +0 -19
  400. package/dist/chunk-MNLOWKTC.mjs.map +0 -1
  401. package/dist/chunk-TEI3K6GT.mjs +0 -21
  402. package/dist/chunk-TEI3K6GT.mjs.map +0 -1
  403. package/dist/chunk-UIEKIMLW.mjs.map +0 -1
  404. package/dist/chunk-V6OWQQ3Q.mjs +0 -20
  405. package/dist/chunk-V6OWQQ3Q.mjs.map +0 -1
  406. package/dist/chunk-WKIRSZXX.mjs.map +0 -1
  407. package/dist/chunk-XKBVB2JN.mjs +0 -12
  408. package/dist/chunk-XKBVB2JN.mjs.map +0 -1
  409. package/dist/chunk-XW34KZRY.mjs +0 -17
  410. package/dist/chunk-XW34KZRY.mjs.map +0 -1
  411. package/dist/chunk-Y5M2C7NQ.mjs +0 -13
  412. package/dist/chunk-Y5M2C7NQ.mjs.map +0 -1
  413. package/dist/chunk-ZUBHGSCW.mjs +0 -18
  414. package/dist/chunk-ZUBHGSCW.mjs.map +0 -1
  415. package/dist/iter-fest.iterableAt.js.map +0 -1
  416. package/dist/iter-fest.iterableAt.mjs +0 -8
  417. package/dist/iter-fest.iterableConcat.d.mts +0 -16
  418. package/dist/iter-fest.iterableConcat.d.ts +0 -16
  419. package/dist/iter-fest.iterableConcat.js.map +0 -1
  420. package/dist/iter-fest.iterableConcat.mjs +0 -7
  421. package/dist/iter-fest.iterableEntries.d.mts +0 -6
  422. package/dist/iter-fest.iterableEntries.d.ts +0 -6
  423. package/dist/iter-fest.iterableEntries.js.map +0 -1
  424. package/dist/iter-fest.iterableEntries.mjs +0 -7
  425. package/dist/iter-fest.iterableEvery.d.mts +0 -24
  426. package/dist/iter-fest.iterableEvery.d.ts +0 -24
  427. package/dist/iter-fest.iterableEvery.js.map +0 -1
  428. package/dist/iter-fest.iterableEvery.mjs +0 -7
  429. package/dist/iter-fest.iterableFilter.d.mts +0 -16
  430. package/dist/iter-fest.iterableFilter.d.ts +0 -16
  431. package/dist/iter-fest.iterableFilter.js.map +0 -1
  432. package/dist/iter-fest.iterableFilter.mjs +0 -7
  433. package/dist/iter-fest.iterableFind.d.mts +0 -15
  434. package/dist/iter-fest.iterableFind.d.ts +0 -15
  435. package/dist/iter-fest.iterableFind.js +0 -43
  436. package/dist/iter-fest.iterableFind.js.map +0 -1
  437. package/dist/iter-fest.iterableFind.mjs +0 -7
  438. package/dist/iter-fest.iterableFindIndex.js.map +0 -1
  439. package/dist/iter-fest.iterableFindIndex.mjs +0 -7
  440. package/dist/iter-fest.iterableFindLast.js.map +0 -1
  441. package/dist/iter-fest.iterableFindLast.mjs +0 -7
  442. package/dist/iter-fest.iterableFindLastIndex.js.map +0 -1
  443. package/dist/iter-fest.iterableFindLastIndex.mjs +0 -7
  444. package/dist/iter-fest.iterableForEach.d.mts +0 -10
  445. package/dist/iter-fest.iterableForEach.d.ts +0 -10
  446. package/dist/iter-fest.iterableForEach.js +0 -40
  447. package/dist/iter-fest.iterableForEach.js.map +0 -1
  448. package/dist/iter-fest.iterableForEach.mjs +0 -7
  449. package/dist/iter-fest.iterableIncludes.d.mts +0 -9
  450. package/dist/iter-fest.iterableIncludes.d.ts +0 -9
  451. package/dist/iter-fest.iterableIncludes.js.map +0 -1
  452. package/dist/iter-fest.iterableIncludes.mjs +0 -8
  453. package/dist/iter-fest.iterableIndexOf.d.mts +0 -9
  454. package/dist/iter-fest.iterableIndexOf.d.ts +0 -9
  455. package/dist/iter-fest.iterableIndexOf.js.map +0 -1
  456. package/dist/iter-fest.iterableIndexOf.mjs +0 -8
  457. package/dist/iter-fest.iterableJoin.d.mts +0 -8
  458. package/dist/iter-fest.iterableJoin.d.ts +0 -8
  459. package/dist/iter-fest.iterableJoin.js.map +0 -1
  460. package/dist/iter-fest.iterableJoin.mjs +0 -7
  461. package/dist/iter-fest.iterableKeys.d.mts +0 -6
  462. package/dist/iter-fest.iterableKeys.d.ts +0 -6
  463. package/dist/iter-fest.iterableKeys.js.map +0 -1
  464. package/dist/iter-fest.iterableKeys.mjs +0 -7
  465. package/dist/iter-fest.iterableMap.d.mts +0 -8
  466. package/dist/iter-fest.iterableMap.d.ts +0 -8
  467. package/dist/iter-fest.iterableMap.js +0 -39
  468. package/dist/iter-fest.iterableMap.js.map +0 -1
  469. package/dist/iter-fest.iterableMap.mjs +0 -7
  470. package/dist/iter-fest.iterableReduce.js +0 -41
  471. package/dist/iter-fest.iterableReduce.js.map +0 -1
  472. package/dist/iter-fest.iterableReduce.mjs +0 -7
  473. package/dist/iter-fest.iterableSlice.js.map +0 -1
  474. package/dist/iter-fest.iterableSlice.mjs +0 -8
  475. package/dist/iter-fest.iterableSome.d.mts +0 -12
  476. package/dist/iter-fest.iterableSome.d.ts +0 -12
  477. package/dist/iter-fest.iterableSome.js +0 -43
  478. package/dist/iter-fest.iterableSome.js.map +0 -1
  479. package/dist/iter-fest.iterableSome.mjs +0 -7
  480. package/dist/iter-fest.iterableToSpliced.js.map +0 -1
  481. package/dist/iter-fest.iterableToSpliced.mjs +0 -8
  482. package/dist/iter-fest.iterableToString.d.mts +0 -6
  483. package/dist/iter-fest.iterableToString.d.ts +0 -6
  484. package/dist/iter-fest.iterableToString.js.map +0 -1
  485. package/dist/iter-fest.iterableToString.mjs +0 -8
  486. /package/dist/{iter-fest.iterableAt.mjs.map → iter-fest.asyncGeneratorWithLastValue.mjs.map} +0 -0
  487. /package/dist/{iter-fest.iterableConcat.mjs.map → iter-fest.asyncIteratorDrop.mjs.map} +0 -0
  488. /package/dist/{iter-fest.iterableEntries.mjs.map → iter-fest.asyncIteratorEvery.mjs.map} +0 -0
  489. /package/dist/{iter-fest.iterableEvery.mjs.map → iter-fest.asyncIteratorFilter.mjs.map} +0 -0
  490. /package/dist/{iter-fest.iterableFilter.mjs.map → iter-fest.asyncIteratorFind.mjs.map} +0 -0
  491. /package/dist/{iter-fest.iterableFind.mjs.map → iter-fest.asyncIteratorFlatMap.mjs.map} +0 -0
  492. /package/dist/{iter-fest.iterableFindIndex.mjs.map → iter-fest.asyncIteratorForEach.mjs.map} +0 -0
  493. /package/dist/{iter-fest.iterableFindLast.mjs.map → iter-fest.asyncIteratorFrom.mjs.map} +0 -0
  494. /package/dist/{iter-fest.iterableFindLastIndex.mjs.map → iter-fest.asyncIteratorMap.mjs.map} +0 -0
  495. /package/dist/{iter-fest.iterableForEach.mjs.map → iter-fest.asyncIteratorReduce.mjs.map} +0 -0
  496. /package/dist/{iter-fest.iterableIncludes.mjs.map → iter-fest.asyncIteratorSome.mjs.map} +0 -0
  497. /package/dist/{iter-fest.iterableIndexOf.mjs.map → iter-fest.asyncIteratorTake.mjs.map} +0 -0
  498. /package/dist/{iter-fest.iterableJoin.mjs.map → iter-fest.asyncIteratorToArray.mjs.map} +0 -0
  499. /package/dist/{iter-fest.iterableKeys.mjs.map → iter-fest.asyncIteratorToAsyncIterable.mjs.map} +0 -0
  500. /package/dist/{iter-fest.iterableMap.mjs.map → iter-fest.generatorWithLastValue.mjs.map} +0 -0
  501. /package/dist/{iter-fest.iterableReduce.mjs.map → iter-fest.iterableWritableStream.mjs.map} +0 -0
  502. /package/dist/{iter-fest.iterableSlice.mjs.map → iter-fest.iteratorAt.mjs.map} +0 -0
  503. /package/dist/{iter-fest.iterableSome.mjs.map → iter-fest.iteratorConcat.mjs.map} +0 -0
  504. /package/dist/{iter-fest.iterableToSpliced.mjs.map → iter-fest.iteratorDrop.mjs.map} +0 -0
  505. /package/dist/{iter-fest.iterableToString.mjs.map → iter-fest.iteratorEntries.mjs.map} +0 -0
@@ -1,7 +0,0 @@
1
- import {
2
- iterableFilter
3
- } from "./chunk-ZUBHGSCW.mjs";
4
- export {
5
- iterableFilter
6
- };
7
- //# sourceMappingURL=iter-fest.iterableFilter.mjs.map
@@ -1,15 +0,0 @@
1
- /**
2
- * Returns the value of the first element in the iterable where predicate is true, and undefined
3
- * otherwise.
4
- *
5
- * @param predicate find calls predicate once for each element of the iterable, in ascending
6
- * order, until it finds one where predicate returns true. If such an element is found, find
7
- * immediately returns that element value. Otherwise, find returns undefined.
8
- *
9
- * @param thisArg If provided, it will be used as the this value for each invocation of
10
- * predicate. If it is not provided, undefined is used instead.
11
- */
12
- declare function iterableFind<T, S extends T>(iterable: Iterable<T>, predicate: (value: T, index: number, obj: Iterable<T>) => value is S, thisArg?: any): S | undefined;
13
- declare function iterableFind<T>(iterable: Iterable<T>, predicate: (value: T, index: number, obj: Iterable<T>) => unknown, thisArg?: any): T | undefined;
14
-
15
- export { iterableFind };
@@ -1,15 +0,0 @@
1
- /**
2
- * Returns the value of the first element in the iterable where predicate is true, and undefined
3
- * otherwise.
4
- *
5
- * @param predicate find calls predicate once for each element of the iterable, in ascending
6
- * order, until it finds one where predicate returns true. If such an element is found, find
7
- * immediately returns that element value. Otherwise, find returns undefined.
8
- *
9
- * @param thisArg If provided, it will be used as the this value for each invocation of
10
- * predicate. If it is not provided, undefined is used instead.
11
- */
12
- declare function iterableFind<T, S extends T>(iterable: Iterable<T>, predicate: (value: T, index: number, obj: Iterable<T>) => value is S, thisArg?: any): S | undefined;
13
- declare function iterableFind<T>(iterable: Iterable<T>, predicate: (value: T, index: number, obj: Iterable<T>) => unknown, thisArg?: any): T | undefined;
14
-
15
- export { iterableFind };
@@ -1,43 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/iterableFind.ts
21
- var iterableFind_exports = {};
22
- __export(iterableFind_exports, {
23
- iterableFind: () => iterableFind
24
- });
25
- module.exports = __toCommonJS(iterableFind_exports);
26
- function iterableFind(iterable, predicate, thisArg) {
27
- let index = 0;
28
- if (typeof predicate !== "function") {
29
- throw new TypeError(`${predicate} is not a function`);
30
- }
31
- const boundPredicate = predicate.bind(thisArg);
32
- for (const value of iterable) {
33
- if (boundPredicate(value, index++, iterable)) {
34
- return value;
35
- }
36
- }
37
- return void 0;
38
- }
39
- // Annotate the CommonJS export names for ESM import in node:
40
- 0 && (module.exports = {
41
- iterableFind
42
- });
43
- //# sourceMappingURL=iter-fest.iterableFind.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/iterableFind.ts"],"sourcesContent":["/**\n * Returns the value of the first element in the iterable where predicate is true, and undefined\n * otherwise.\n *\n * @param predicate find calls predicate once for each element of the iterable, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n *\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\nexport function iterableFind<T, S extends T>(\n iterable: Iterable<T>,\n predicate: (value: T, index: number, obj: Iterable<T>) => value is S,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): S | undefined;\n\nexport function iterableFind<T>(\n iterable: Iterable<T>,\n predicate: (value: T, index: number, obj: Iterable<T>) => unknown,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): T | undefined;\n\nexport function iterableFind<T, S extends T>(\n iterable: Iterable<T>,\n predicate: (value: T, index: number, obj: Iterable<T>) => unknown,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): S | undefined {\n let index = 0;\n\n if (typeof predicate !== 'function') {\n throw new TypeError(`${predicate} is not a function`);\n }\n\n const boundPredicate = predicate.bind(thisArg);\n\n for (const value of iterable) {\n if (boundPredicate(value, index++, iterable)) {\n return value as S;\n }\n }\n\n return undefined;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAyBO,SAAS,aACd,UACA,WAEA,SACe;AACf,MAAI,QAAQ;AAEZ,MAAI,OAAO,cAAc,YAAY;AACnC,UAAM,IAAI,UAAU,GAAG,SAAS,oBAAoB;AAAA,EACtD;AAEA,QAAM,iBAAiB,UAAU,KAAK,OAAO;AAE7C,aAAW,SAAS,UAAU;AAC5B,QAAI,eAAe,OAAO,SAAS,QAAQ,GAAG;AAC5C,aAAO;AAAA,IACT;AAAA,EACF;AAEA,SAAO;AACT;","names":[]}
@@ -1,7 +0,0 @@
1
- import {
2
- iterableFind
3
- } from "./chunk-MNLOWKTC.mjs";
4
- export {
5
- iterableFind
6
- };
7
- //# sourceMappingURL=iter-fest.iterableFind.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/iterableFindIndex.ts"],"sourcesContent":["/**\n * Returns the index of the first element in the iterable where predicate is true, and -1\n * otherwise.\n *\n * @param predicate find calls predicate once for each element of the iterable, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n *\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\nexport function iterableFindIndex<T>(\n iterable: Iterable<T>,\n predicate: (value: T, index: number, obj: Iterable<T>) => unknown,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): number {\n let index = 0;\n\n if (typeof predicate !== 'function') {\n throw new TypeError(`${predicate} is not a function`);\n }\n\n const boundPredicate = predicate.bind(thisArg);\n\n for (const value of iterable) {\n if (boundPredicate(value, index, iterable)) {\n return index;\n }\n\n index++;\n }\n\n return -1;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAWO,SAAS,kBACd,UACA,WAEA,SACQ;AACR,MAAI,QAAQ;AAEZ,MAAI,OAAO,cAAc,YAAY;AACnC,UAAM,IAAI,UAAU,GAAG,SAAS,oBAAoB;AAAA,EACtD;AAEA,QAAM,iBAAiB,UAAU,KAAK,OAAO;AAE7C,aAAW,SAAS,UAAU;AAC5B,QAAI,eAAe,OAAO,OAAO,QAAQ,GAAG;AAC1C,aAAO;AAAA,IACT;AAEA;AAAA,EACF;AAEA,SAAO;AACT;","names":[]}
@@ -1,7 +0,0 @@
1
- import {
2
- iterableFindIndex
3
- } from "./chunk-HYU4EN7J.mjs";
4
- export {
5
- iterableFindIndex
6
- };
7
- //# sourceMappingURL=iter-fest.iterableFindIndex.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/iterableFindLast.ts"],"sourcesContent":["/**\n * Returns the value of the last element in the iterable where predicate is true, and undefined\n * otherwise.\n *\n * @param predicate findLast calls predicate once for each element of the iterable, in descending\n * order, until it finds one where predicate returns true. If such an element is found, findLast\n * immediately returns that element value. Otherwise, findLast returns undefined.\n *\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\nexport function iterableFindLast<T, S extends T>(\n iterable: Iterable<T>,\n predicate: (value: T, index: number, iterable: Iterable<T>) => value is S,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): S | undefined;\n\nexport function iterableFindLast<T>(\n iterable: Iterable<T>,\n predicate: (value: T, index: number, iterable: Iterable<T>) => unknown,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): T | undefined;\n\nexport function iterableFindLast<T, S extends T>(\n iterable: Iterable<T>,\n predicate: (value: T, index: number, iterable: Iterable<T>) => unknown,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): S | undefined {\n let index = 0;\n let last: S | undefined;\n\n if (typeof predicate !== 'function') {\n throw new TypeError(`${predicate} is not a function`);\n }\n\n const boundPredicate = predicate.bind(thisArg);\n\n for (const value of iterable) {\n if (boundPredicate(value, index++, iterable)) {\n last = value as S;\n }\n }\n\n return last;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAyBO,SAAS,iBACd,UACA,WAEA,SACe;AACf,MAAI,QAAQ;AACZ,MAAI;AAEJ,MAAI,OAAO,cAAc,YAAY;AACnC,UAAM,IAAI,UAAU,GAAG,SAAS,oBAAoB;AAAA,EACtD;AAEA,QAAM,iBAAiB,UAAU,KAAK,OAAO;AAE7C,aAAW,SAAS,UAAU;AAC5B,QAAI,eAAe,OAAO,SAAS,QAAQ,GAAG;AAC5C,aAAO;AAAA,IACT;AAAA,EACF;AAEA,SAAO;AACT;","names":[]}
@@ -1,7 +0,0 @@
1
- import {
2
- iterableFindLast
3
- } from "./chunk-V6OWQQ3Q.mjs";
4
- export {
5
- iterableFindLast
6
- };
7
- //# sourceMappingURL=iter-fest.iterableFindLast.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/iterableFindLastIndex.ts"],"sourcesContent":["/**\n * Returns the index of the last element in the iterable where predicate is true, and -1\n * otherwise.\n *\n * @param predicate findLastIndex calls predicate once for each element of the iterable, in descending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.\n *\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\nexport function iterableFindLastIndex<T>(\n iterable: Iterable<T>,\n predicate: (value: T, index: number, iterable: Iterable<T>) => unknown,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): number {\n let index = 0;\n let lastIndex: number = -1;\n\n if (typeof predicate !== 'function') {\n throw new TypeError(`${predicate} is not a function`);\n }\n\n const boundPredicate = predicate.bind(thisArg);\n\n for (const value of iterable) {\n if (boundPredicate(value, index, iterable)) {\n lastIndex = index;\n }\n\n index++;\n }\n\n return lastIndex;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAWO,SAAS,sBACd,UACA,WAEA,SACQ;AACR,MAAI,QAAQ;AACZ,MAAI,YAAoB;AAExB,MAAI,OAAO,cAAc,YAAY;AACnC,UAAM,IAAI,UAAU,GAAG,SAAS,oBAAoB;AAAA,EACtD;AAEA,QAAM,iBAAiB,UAAU,KAAK,OAAO;AAE7C,aAAW,SAAS,UAAU;AAC5B,QAAI,eAAe,OAAO,OAAO,QAAQ,GAAG;AAC1C,kBAAY;AAAA,IACd;AAEA;AAAA,EACF;AAEA,SAAO;AACT;","names":[]}
@@ -1,7 +0,0 @@
1
- import {
2
- iterableFindLastIndex
3
- } from "./chunk-TEI3K6GT.mjs";
4
- export {
5
- iterableFindLastIndex
6
- };
7
- //# sourceMappingURL=iter-fest.iterableFindLastIndex.mjs.map
@@ -1,10 +0,0 @@
1
- /**
2
- * Performs the specified action for each element in an iterable.
3
- *
4
- * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the iterable.
5
- *
6
- * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
7
- */
8
- declare function iterableForEach<T>(iterable: Iterable<T>, callbackfn: (value: T, index: number, iterable: Iterable<T>) => void, thisArg?: any): void;
9
-
10
- export { iterableForEach };
@@ -1,10 +0,0 @@
1
- /**
2
- * Performs the specified action for each element in an iterable.
3
- *
4
- * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the iterable.
5
- *
6
- * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
7
- */
8
- declare function iterableForEach<T>(iterable: Iterable<T>, callbackfn: (value: T, index: number, iterable: Iterable<T>) => void, thisArg?: any): void;
9
-
10
- export { iterableForEach };
@@ -1,40 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/iterableForEach.ts
21
- var iterableForEach_exports = {};
22
- __export(iterableForEach_exports, {
23
- iterableForEach: () => iterableForEach
24
- });
25
- module.exports = __toCommonJS(iterableForEach_exports);
26
- function iterableForEach(iterable, callbackfn, thisArg) {
27
- let index = 0;
28
- if (typeof callbackfn !== "function") {
29
- throw new TypeError(`${callbackfn} is not a function`);
30
- }
31
- const boundCallbackfn = callbackfn.bind(thisArg);
32
- for (const value of iterable) {
33
- boundCallbackfn(value, index++, iterable);
34
- }
35
- }
36
- // Annotate the CommonJS export names for ESM import in node:
37
- 0 && (module.exports = {
38
- iterableForEach
39
- });
40
- //# sourceMappingURL=iter-fest.iterableForEach.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/iterableForEach.ts"],"sourcesContent":["/**\n * Performs the specified action for each element in an iterable.\n *\n * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the iterable.\n *\n * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n */\nexport function iterableForEach<T>(\n iterable: Iterable<T>,\n callbackfn: (value: T, index: number, iterable: Iterable<T>) => void,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): void {\n let index = 0;\n\n if (typeof callbackfn !== 'function') {\n throw new TypeError(`${callbackfn} is not a function`);\n }\n\n const boundCallbackfn = callbackfn.bind(thisArg);\n\n for (const value of iterable) {\n boundCallbackfn(value, index++, iterable);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAOO,SAAS,gBACd,UACA,YAEA,SACM;AACN,MAAI,QAAQ;AAEZ,MAAI,OAAO,eAAe,YAAY;AACpC,UAAM,IAAI,UAAU,GAAG,UAAU,oBAAoB;AAAA,EACvD;AAEA,QAAM,kBAAkB,WAAW,KAAK,OAAO;AAE/C,aAAW,SAAS,UAAU;AAC5B,oBAAgB,OAAO,SAAS,QAAQ;AAAA,EAC1C;AACF;","names":[]}
@@ -1,7 +0,0 @@
1
- import {
2
- iterableForEach
3
- } from "./chunk-JU353VSE.mjs";
4
- export {
5
- iterableForEach
6
- };
7
- //# sourceMappingURL=iter-fest.iterableForEach.mjs.map
@@ -1,9 +0,0 @@
1
- /**
2
- * Determines whether an iterable includes a certain element, returning true or false as appropriate.
3
- *
4
- * @param searchElement The element to search for.
5
- * @param fromIndex The position in this iterable at which to begin searching for searchElement.
6
- */
7
- declare function iterableIncludes<T>(iterable: Iterable<T>, searchElement: T, fromIndex?: number): boolean;
8
-
9
- export { iterableIncludes };
@@ -1,9 +0,0 @@
1
- /**
2
- * Determines whether an iterable includes a certain element, returning true or false as appropriate.
3
- *
4
- * @param searchElement The element to search for.
5
- * @param fromIndex The position in this iterable at which to begin searching for searchElement.
6
- */
7
- declare function iterableIncludes<T>(iterable: Iterable<T>, searchElement: T, fromIndex?: number): boolean;
8
-
9
- export { iterableIncludes };
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/iterableIncludes.ts","../src/private/toIntegerOrInfinity.ts"],"sourcesContent":["import toIntegerOrInfinity from './private/toIntegerOrInfinity';\n\n/**\n * Determines whether an iterable includes a certain element, returning true or false as appropriate.\n *\n * @param searchElement The element to search for.\n * @param fromIndex The position in this iterable at which to begin searching for searchElement.\n */\nexport function iterableIncludes<T>(iterable: Iterable<T>, searchElement: T, fromIndex: number = 0): boolean {\n let index = 0;\n\n fromIndex = toIntegerOrInfinity(fromIndex);\n\n if (fromIndex !== Infinity) {\n fromIndex = fromIndex === -Infinity ? 0 : fromIndex;\n\n if (fromIndex < 0) {\n // TODO: Support negative fromIndex.\n throw new TypeError('fromIndex cannot be a negative finite number');\n }\n\n for (const item of iterable) {\n if (index++ >= fromIndex && Object.is(item, searchElement)) {\n return true;\n }\n }\n }\n\n return false;\n}\n","export default function toIntegerOrInfinity(value: number): number {\n if (value === Infinity || value === -Infinity) {\n return value;\n }\n\n return ~~value;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAe,SAAR,oBAAqC,OAAuB;AACjE,MAAI,UAAU,YAAY,UAAU,WAAW;AAC7C,WAAO;AAAA,EACT;AAEA,SAAO,CAAC,CAAC;AACX;;;ADEO,SAAS,iBAAoB,UAAuB,eAAkB,YAAoB,GAAY;AAC3G,MAAI,QAAQ;AAEZ,cAAY,oBAAoB,SAAS;AAEzC,MAAI,cAAc,UAAU;AAC1B,gBAAY,cAAc,YAAY,IAAI;AAE1C,QAAI,YAAY,GAAG;AAEjB,YAAM,IAAI,UAAU,8CAA8C;AAAA,IACpE;AAEA,eAAW,QAAQ,UAAU;AAC3B,UAAI,WAAW,aAAa,OAAO,GAAG,MAAM,aAAa,GAAG;AAC1D,eAAO;AAAA,MACT;AAAA,IACF;AAAA,EACF;AAEA,SAAO;AACT;","names":[]}
@@ -1,8 +0,0 @@
1
- import {
2
- iterableIncludes
3
- } from "./chunk-27NJVC7K.mjs";
4
- import "./chunk-W5NEOEVE.mjs";
5
- export {
6
- iterableIncludes
7
- };
8
- //# sourceMappingURL=iter-fest.iterableIncludes.mjs.map
@@ -1,9 +0,0 @@
1
- /**
2
- * Returns the index of the first occurrence of a value in an iterable, or -1 if it is not present.
3
- *
4
- * @param searchElement The value to locate in the iterable.
5
- * @param fromIndex The iterable index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
6
- */
7
- declare function iterableIndexOf<T>(iterable: Iterable<T>, searchElement: T, fromIndex?: number): number;
8
-
9
- export { iterableIndexOf };
@@ -1,9 +0,0 @@
1
- /**
2
- * Returns the index of the first occurrence of a value in an iterable, or -1 if it is not present.
3
- *
4
- * @param searchElement The value to locate in the iterable.
5
- * @param fromIndex The iterable index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
6
- */
7
- declare function iterableIndexOf<T>(iterable: Iterable<T>, searchElement: T, fromIndex?: number): number;
8
-
9
- export { iterableIndexOf };
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/iterableIndexOf.ts","../src/private/toIntegerOrInfinity.ts"],"sourcesContent":["import toIntegerOrInfinity from './private/toIntegerOrInfinity';\n\n/**\n * Returns the index of the first occurrence of a value in an iterable, or -1 if it is not present.\n *\n * @param searchElement The value to locate in the iterable.\n * @param fromIndex The iterable index at which to begin the search. If fromIndex is omitted, the search starts at index 0.\n */\nexport function iterableIndexOf<T>(iterable: Iterable<T>, searchElement: T, fromIndex: number = 0): number {\n let index = 0;\n\n fromIndex = toIntegerOrInfinity(fromIndex);\n\n if (fromIndex !== Infinity) {\n fromIndex = fromIndex === -Infinity ? 0 : fromIndex;\n\n if (fromIndex < 0) {\n // TODO: Support negative fromIndex.\n throw new TypeError('fromIndex cannot be a negative finite number');\n }\n\n for (const item of iterable) {\n if (index >= fromIndex && Object.is(item, searchElement)) {\n return index;\n }\n\n index++;\n }\n }\n\n return -1;\n}\n","export default function toIntegerOrInfinity(value: number): number {\n if (value === Infinity || value === -Infinity) {\n return value;\n }\n\n return ~~value;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAe,SAAR,oBAAqC,OAAuB;AACjE,MAAI,UAAU,YAAY,UAAU,WAAW;AAC7C,WAAO;AAAA,EACT;AAEA,SAAO,CAAC,CAAC;AACX;;;ADEO,SAAS,gBAAmB,UAAuB,eAAkB,YAAoB,GAAW;AACzG,MAAI,QAAQ;AAEZ,cAAY,oBAAoB,SAAS;AAEzC,MAAI,cAAc,UAAU;AAC1B,gBAAY,cAAc,YAAY,IAAI;AAE1C,QAAI,YAAY,GAAG;AAEjB,YAAM,IAAI,UAAU,8CAA8C;AAAA,IACpE;AAEA,eAAW,QAAQ,UAAU;AAC3B,UAAI,SAAS,aAAa,OAAO,GAAG,MAAM,aAAa,GAAG;AACxD,eAAO;AAAA,MACT;AAEA;AAAA,IACF;AAAA,EACF;AAEA,SAAO;AACT;","names":[]}
@@ -1,8 +0,0 @@
1
- import {
2
- iterableIndexOf
3
- } from "./chunk-UIEKIMLW.mjs";
4
- import "./chunk-W5NEOEVE.mjs";
5
- export {
6
- iterableIndexOf
7
- };
8
- //# sourceMappingURL=iter-fest.iterableIndexOf.mjs.map
@@ -1,8 +0,0 @@
1
- /**
2
- * Adds all the elements of an iterable into a string, separated by the specified separator string.
3
- *
4
- * @param separator A string used to separate one element of the iterable from the next in the resulting string. If omitted, the iterable elements are separated with a comma.
5
- */
6
- declare function iterableJoin<T>(iterable: Iterable<T>, separator?: string): string;
7
-
8
- export { iterableJoin };
@@ -1,8 +0,0 @@
1
- /**
2
- * Adds all the elements of an iterable into a string, separated by the specified separator string.
3
- *
4
- * @param separator A string used to separate one element of the iterable from the next in the resulting string. If omitted, the iterable elements are separated with a comma.
5
- */
6
- declare function iterableJoin<T>(iterable: Iterable<T>, separator?: string): string;
7
-
8
- export { iterableJoin };
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/iterableJoin.ts"],"sourcesContent":["/**\n * Adds all the elements of an iterable into a string, separated by the specified separator string.\n *\n * @param separator A string used to separate one element of the iterable from the next in the resulting string. If omitted, the iterable elements are separated with a comma.\n */\nexport function iterableJoin<T>(iterable: Iterable<T>, separator: string = ','): string {\n let index = 0;\n let result = '';\n\n for (const item of iterable) {\n if (index) {\n result += separator;\n }\n\n if (typeof item !== 'undefined' && item !== null) {\n result += item;\n }\n\n index++;\n }\n\n return result;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAKO,SAAS,aAAgB,UAAuB,YAAoB,KAAa;AACtF,MAAI,QAAQ;AACZ,MAAI,SAAS;AAEb,aAAW,QAAQ,UAAU;AAC3B,QAAI,OAAO;AACT,gBAAU;AAAA,IACZ;AAEA,QAAI,OAAO,SAAS,eAAe,SAAS,MAAM;AAChD,gBAAU;AAAA,IACZ;AAEA;AAAA,EACF;AAEA,SAAO;AACT;","names":[]}
@@ -1,7 +0,0 @@
1
- import {
2
- iterableJoin
3
- } from "./chunk-5CHMNKXJ.mjs";
4
- export {
5
- iterableJoin
6
- };
7
- //# sourceMappingURL=iter-fest.iterableJoin.mjs.map
@@ -1,6 +0,0 @@
1
- /**
2
- * Returns an iterable of keys in the iterable
3
- */
4
- declare function iterableKeys<T>(iterable: Iterable<T>): IterableIterator<number>;
5
-
6
- export { iterableKeys };
@@ -1,6 +0,0 @@
1
- /**
2
- * Returns an iterable of keys in the iterable
3
- */
4
- declare function iterableKeys<T>(iterable: Iterable<T>): IterableIterator<number>;
5
-
6
- export { iterableKeys };
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/iterableKeys.ts"],"sourcesContent":["/**\n * Returns an iterable of keys in the iterable\n */\nexport function* iterableKeys<T>(iterable: Iterable<T>): IterableIterator<number> {\n let index = 0;\n\n for (const _ of iterable) {\n yield index++;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGO,UAAU,aAAgB,UAAiD;AAChF,MAAI,QAAQ;AAEZ,aAAW,KAAK,UAAU;AACxB,UAAM;AAAA,EACR;AACF;","names":[]}
@@ -1,7 +0,0 @@
1
- import {
2
- iterableKeys
3
- } from "./chunk-XKBVB2JN.mjs";
4
- export {
5
- iterableKeys
6
- };
7
- //# sourceMappingURL=iter-fest.iterableKeys.mjs.map
@@ -1,8 +0,0 @@
1
- /**
2
- * Calls a defined callback function on each element of an array, and returns an array that contains the results.
3
- * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
4
- * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
5
- */
6
- declare function iterableMap<T, U>(iterable: Iterable<T>, callbackfn: (value: T, index: number, array: Iterable<T>) => U, thisArg?: any): IterableIterator<U>;
7
-
8
- export { iterableMap };
@@ -1,8 +0,0 @@
1
- /**
2
- * Calls a defined callback function on each element of an array, and returns an array that contains the results.
3
- * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
4
- * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
5
- */
6
- declare function iterableMap<T, U>(iterable: Iterable<T>, callbackfn: (value: T, index: number, array: Iterable<T>) => U, thisArg?: any): IterableIterator<U>;
7
-
8
- export { iterableMap };
@@ -1,39 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/iterableMap.ts
21
- var iterableMap_exports = {};
22
- __export(iterableMap_exports, {
23
- iterableMap: () => iterableMap
24
- });
25
- module.exports = __toCommonJS(iterableMap_exports);
26
- function* iterableMap(iterable, callbackfn, thisArg) {
27
- let index = 0;
28
- if (typeof callbackfn !== "function") {
29
- throw new TypeError(`${callbackfn} is not a function`);
30
- }
31
- for (const value of iterable) {
32
- yield callbackfn.call(thisArg, value, index++, iterable);
33
- }
34
- }
35
- // Annotate the CommonJS export names for ESM import in node:
36
- 0 && (module.exports = {
37
- iterableMap
38
- });
39
- //# sourceMappingURL=iter-fest.iterableMap.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/iterableMap.ts"],"sourcesContent":["/**\n * Calls a defined callback function on each element of an array, and returns an array that contains the results.\n * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.\n * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n */\nexport function* iterableMap<T, U>(\n iterable: Iterable<T>,\n callbackfn: (value: T, index: number, array: Iterable<T>) => U,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): IterableIterator<U> {\n let index = 0;\n\n if (typeof callbackfn !== 'function') {\n throw new TypeError(`${callbackfn} is not a function`);\n }\n\n for (const value of iterable) {\n yield callbackfn.call(thisArg, value, index++, iterable);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAKO,UAAU,YACf,UACA,YAEA,SACqB;AACrB,MAAI,QAAQ;AAEZ,MAAI,OAAO,eAAe,YAAY;AACpC,UAAM,IAAI,UAAU,GAAG,UAAU,oBAAoB;AAAA,EACvD;AAEA,aAAW,SAAS,UAAU;AAC5B,UAAM,WAAW,KAAK,SAAS,OAAO,SAAS,QAAQ;AAAA,EACzD;AACF;","names":[]}
@@ -1,7 +0,0 @@
1
- import {
2
- iterableMap
3
- } from "./chunk-EZC33HE6.mjs";
4
- export {
5
- iterableMap
6
- };
7
- //# sourceMappingURL=iter-fest.iterableMap.mjs.map
@@ -1,41 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/iterableReduce.ts
21
- var iterableReduce_exports = {};
22
- __export(iterableReduce_exports, {
23
- iterableReduce: () => iterableReduce
24
- });
25
- module.exports = __toCommonJS(iterableReduce_exports);
26
- function iterableReduce(iterable, callbackfn, initialValue) {
27
- let index = 0;
28
- let previousValue = initialValue;
29
- if (typeof callbackfn !== "function") {
30
- throw new TypeError(`${callbackfn} is not a function`);
31
- }
32
- for (const currentValue of iterable) {
33
- previousValue = callbackfn(previousValue, currentValue, index++, iterable);
34
- }
35
- return previousValue;
36
- }
37
- // Annotate the CommonJS export names for ESM import in node:
38
- 0 && (module.exports = {
39
- iterableReduce
40
- });
41
- //# sourceMappingURL=iter-fest.iterableReduce.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/iterableReduce.ts"],"sourcesContent":["/**\n * Calls the specified callback function for all the elements in an iterable. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n *\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the iterable.\n *\n * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an iterable value.\n */\nexport function iterableReduce<T>(\n iterable: Iterable<T>,\n callbackfn: (previousValue: T, currentValue: T, currentIndex: number, iterable: Iterable<T>) => T\n): T;\n\nexport function iterableReduce<T>(\n iterable: Iterable<T>,\n callbackfn: (previousValue: T, currentValue: T, currentIndex: number, iterable: Iterable<T>) => T,\n initialValue: T\n): T;\n\n/**\n * Calls the specified callback function for all the elements in an iterable. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n *\n * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the iterable.\n *\n * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n */\n\nexport function iterableReduce<T, U>(\n iterable: Iterable<T>,\n callbackfn: (previousValue: U, currentValue: T, currentIndex: number, iterable: Iterable<T>) => U,\n initialValue: U\n): U;\n\nexport function iterableReduce<T, U = undefined>(\n iterable: Iterable<T>,\n callbackfn: (previousValue: U | undefined, currentValue: T, currentIndex: number, iterable: Iterable<T>) => U,\n initialValue?: U\n): U | undefined {\n let index = 0;\n let previousValue: U | undefined = initialValue;\n\n if (typeof callbackfn !== 'function') {\n throw new TypeError(`${callbackfn} is not a function`);\n }\n\n for (const currentValue of iterable) {\n previousValue = callbackfn(previousValue, currentValue, index++, iterable);\n }\n\n return previousValue;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAgCO,SAAS,eACd,UACA,YACA,cACe;AACf,MAAI,QAAQ;AACZ,MAAI,gBAA+B;AAEnC,MAAI,OAAO,eAAe,YAAY;AACpC,UAAM,IAAI,UAAU,GAAG,UAAU,oBAAoB;AAAA,EACvD;AAEA,aAAW,gBAAgB,UAAU;AACnC,oBAAgB,WAAW,eAAe,cAAc,SAAS,QAAQ;AAAA,EAC3E;AAEA,SAAO;AACT;","names":[]}
@@ -1,7 +0,0 @@
1
- import {
2
- iterableReduce
3
- } from "./chunk-XW34KZRY.mjs";
4
- export {
5
- iterableReduce
6
- };
7
- //# sourceMappingURL=iter-fest.iterableReduce.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/iterableSlice.ts","../src/private/toIntegerOrInfinity.ts"],"sourcesContent":["import toIntegerOrInfinity from './private/toIntegerOrInfinity';\n\n/**\n * Returns a copy of a section of an iterable.\n * For both start and end, a negative index can be used to indicate an offset from the end of the iterable.\n * For example, -2 refers to the second to last element of the iterable.\n *\n * @param start The beginning index of the specified portion of the iterable.\n * If start is undefined, then the slice begins at index 0.\n *\n * @param end The end index of the specified portion of the iterable. This is exclusive of the element at the index 'end'.\n * If end is undefined, then the slice extends to the end of the iterable.\n */\nexport function* iterableSlice<T>(iterable: Iterable<T>, start: number = 0, end: number = Infinity): Iterable<T> {\n let index = 0;\n\n start = toIntegerOrInfinity(start);\n start = start === -Infinity ? 0 : start;\n end = toIntegerOrInfinity(end);\n end = end === -Infinity ? 0 : end;\n\n if (start < 0) {\n throw new TypeError('start cannot be a negative finite number');\n }\n\n if (end < 0) {\n throw new TypeError('end cannot be a negative finite number');\n }\n\n if (start === Infinity) {\n return;\n }\n\n for (const item of iterable) {\n if (index >= start && index < end) {\n yield item;\n }\n\n index++;\n\n if (index > end) {\n break;\n }\n }\n}\n","export default function toIntegerOrInfinity(value: number): number {\n if (value === Infinity || value === -Infinity) {\n return value;\n }\n\n return ~~value;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAe,SAAR,oBAAqC,OAAuB;AACjE,MAAI,UAAU,YAAY,UAAU,WAAW;AAC7C,WAAO;AAAA,EACT;AAEA,SAAO,CAAC,CAAC;AACX;;;ADOO,UAAU,cAAiB,UAAuB,QAAgB,GAAG,MAAc,UAAuB;AAC/G,MAAI,QAAQ;AAEZ,UAAQ,oBAAoB,KAAK;AACjC,UAAQ,UAAU,YAAY,IAAI;AAClC,QAAM,oBAAoB,GAAG;AAC7B,QAAM,QAAQ,YAAY,IAAI;AAE9B,MAAI,QAAQ,GAAG;AACb,UAAM,IAAI,UAAU,0CAA0C;AAAA,EAChE;AAEA,MAAI,MAAM,GAAG;AACX,UAAM,IAAI,UAAU,wCAAwC;AAAA,EAC9D;AAEA,MAAI,UAAU,UAAU;AACtB;AAAA,EACF;AAEA,aAAW,QAAQ,UAAU;AAC3B,QAAI,SAAS,SAAS,QAAQ,KAAK;AACjC,YAAM;AAAA,IACR;AAEA;AAEA,QAAI,QAAQ,KAAK;AACf;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
@@ -1,8 +0,0 @@
1
- import {
2
- iterableSlice
3
- } from "./chunk-KONB7TV6.mjs";
4
- import "./chunk-W5NEOEVE.mjs";
5
- export {
6
- iterableSlice
7
- };
8
- //# sourceMappingURL=iter-fest.iterableSlice.mjs.map
@@ -1,12 +0,0 @@
1
- /**
2
- * Determines whether the specified callback function returns true for any element of an iterable.
3
- *
4
- * @param predicate
5
- * A function that accepts up to three arguments. The some method calls the predicate function for each element in the iterable until the predicate returns a value which is coercible to the Boolean value true, or until the end of the iterable.
6
- *
7
- * @param thisArg
8
- * An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
9
- */
10
- declare function iterableSome<T>(iterable: Iterable<T>, predicate: (value: T, index: number, iterable: Iterable<T>) => unknown, thisArg?: any): boolean;
11
-
12
- export { iterableSome };
@@ -1,12 +0,0 @@
1
- /**
2
- * Determines whether the specified callback function returns true for any element of an iterable.
3
- *
4
- * @param predicate
5
- * A function that accepts up to three arguments. The some method calls the predicate function for each element in the iterable until the predicate returns a value which is coercible to the Boolean value true, or until the end of the iterable.
6
- *
7
- * @param thisArg
8
- * An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
9
- */
10
- declare function iterableSome<T>(iterable: Iterable<T>, predicate: (value: T, index: number, iterable: Iterable<T>) => unknown, thisArg?: any): boolean;
11
-
12
- export { iterableSome };
@@ -1,43 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/iterableSome.ts
21
- var iterableSome_exports = {};
22
- __export(iterableSome_exports, {
23
- iterableSome: () => iterableSome
24
- });
25
- module.exports = __toCommonJS(iterableSome_exports);
26
- function iterableSome(iterable, predicate, thisArg = void 0) {
27
- let index = 0;
28
- if (typeof predicate !== "function") {
29
- throw new TypeError(`${predicate} is not a function`);
30
- }
31
- const boundPredicate = predicate.bind(thisArg);
32
- for (const value of iterable) {
33
- if (boundPredicate(value, index++, iterable)) {
34
- return true;
35
- }
36
- }
37
- return false;
38
- }
39
- // Annotate the CommonJS export names for ESM import in node:
40
- 0 && (module.exports = {
41
- iterableSome
42
- });
43
- //# sourceMappingURL=iter-fest.iterableSome.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/iterableSome.ts"],"sourcesContent":["/**\n * Determines whether the specified callback function returns true for any element of an iterable.\n *\n * @param predicate\n * A function that accepts up to three arguments. The some method calls the predicate function for each element in the iterable until the predicate returns a value which is coercible to the Boolean value true, or until the end of the iterable.\n *\n * @param thisArg\n * An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.\n */\nexport function iterableSome<T>(\n iterable: Iterable<T>,\n predicate: (value: T, index: number, iterable: Iterable<T>) => unknown,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg: any = undefined\n): boolean {\n let index = 0;\n\n if (typeof predicate !== 'function') {\n throw new TypeError(`${predicate} is not a function`);\n }\n\n const boundPredicate = predicate.bind(thisArg);\n\n for (const value of iterable) {\n if (boundPredicate(value, index++, iterable)) {\n return true;\n }\n }\n\n return false;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AASO,SAAS,aACd,UACA,WAEA,UAAe,QACN;AACT,MAAI,QAAQ;AAEZ,MAAI,OAAO,cAAc,YAAY;AACnC,UAAM,IAAI,UAAU,GAAG,SAAS,oBAAoB;AAAA,EACtD;AAEA,QAAM,iBAAiB,UAAU,KAAK,OAAO;AAE7C,aAAW,SAAS,UAAU;AAC5B,QAAI,eAAe,OAAO,SAAS,QAAQ,GAAG;AAC5C,aAAO;AAAA,IACT;AAAA,EACF;AAEA,SAAO;AACT;","names":[]}
@@ -1,7 +0,0 @@
1
- import {
2
- iterableSome
3
- } from "./chunk-6C3P4TNK.mjs";
4
- export {
5
- iterableSome
6
- };
7
- //# sourceMappingURL=iter-fest.iterableSome.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/iterableToSpliced.ts","../src/private/toIntegerOrInfinity.ts"],"sourcesContent":["import toIntegerOrInfinity from './private/toIntegerOrInfinity';\n\n/**\n * Copies an array and removes elements and, if necessary, inserts new elements in their place. Returns the copied array.\n * @param start The zero-based location in the array from which to start removing elements.\n * @param deleteCount The number of elements to remove.\n * @param items Elements to insert into the copied array in place of the deleted elements.\n * @returns The copied array.\n */\nexport function iterableToSpliced<T>(\n iterable: Iterable<T>,\n start?: number | undefined,\n deleteCount?: number | undefined,\n ...items: T[]\n): Iterable<T>;\n\n/**\n * Copies an array and removes elements while returning the remaining elements.\n * @param start The zero-based location in the array from which to start removing elements.\n * @param deleteCount The number of elements to remove.\n * @returns A copy of the original array with the remaining elements.\n */\nexport function iterableToSpliced<T>(\n iterable: Iterable<T>,\n start?: number | undefined,\n deleteCount?: number | undefined\n): Iterable<T>;\n\nexport function* iterableToSpliced<T>(\n iterable: Iterable<T>,\n start: number = 0,\n deleteCount: number = 0,\n ...items: T[]\n): Iterable<T> {\n let index = 0;\n\n start = toIntegerOrInfinity(start);\n start = start === -Infinity ? 0 : start;\n\n if (start < 0) {\n throw new TypeError('start cannot be a negative finite number');\n }\n\n let inserted = false;\n\n for (const item of iterable) {\n if (index + 1 > start && !inserted) {\n yield* items;\n inserted = true;\n }\n\n if (index < start || index >= start + deleteCount) {\n yield item;\n }\n\n index++;\n }\n\n if (!inserted) {\n yield* items;\n }\n}\n","export default function toIntegerOrInfinity(value: number): number {\n if (value === Infinity || value === -Infinity) {\n return value;\n }\n\n return ~~value;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAe,SAAR,oBAAqC,OAAuB;AACjE,MAAI,UAAU,YAAY,UAAU,WAAW;AAC7C,WAAO;AAAA,EACT;AAEA,SAAO,CAAC,CAAC;AACX;;;ADsBO,UAAU,kBACf,UACA,QAAgB,GAChB,cAAsB,MACnB,OACU;AACb,MAAI,QAAQ;AAEZ,UAAQ,oBAAoB,KAAK;AACjC,UAAQ,UAAU,YAAY,IAAI;AAElC,MAAI,QAAQ,GAAG;AACb,UAAM,IAAI,UAAU,0CAA0C;AAAA,EAChE;AAEA,MAAI,WAAW;AAEf,aAAW,QAAQ,UAAU;AAC3B,QAAI,QAAQ,IAAI,SAAS,CAAC,UAAU;AAClC,aAAO;AACP,iBAAW;AAAA,IACb;AAEA,QAAI,QAAQ,SAAS,SAAS,QAAQ,aAAa;AACjD,YAAM;AAAA,IACR;AAEA;AAAA,EACF;AAEA,MAAI,CAAC,UAAU;AACb,WAAO;AAAA,EACT;AACF;","names":[]}
@@ -1,8 +0,0 @@
1
- import {
2
- iterableToSpliced
3
- } from "./chunk-WKIRSZXX.mjs";
4
- import "./chunk-W5NEOEVE.mjs";
5
- export {
6
- iterableToSpliced
7
- };
8
- //# sourceMappingURL=iter-fest.iterableToSpliced.mjs.map