@daiso-tech/core 0.1.0 → 0.1.2

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 (590) hide show
  1. package/dist/cjs/_module.js +19 -0
  2. package/dist/cjs/_module.js.map +1 -0
  3. package/dist/cjs/collection/_module.js +21 -0
  4. package/dist/cjs/collection/_module.js.map +1 -0
  5. package/dist/cjs/collection/_shared.js +28 -0
  6. package/dist/cjs/collection/_shared.js.map +1 -0
  7. package/dist/cjs/collection/async-iterable-collection/_module.js +18 -0
  8. package/dist/cjs/collection/async-iterable-collection/_module.js.map +1 -0
  9. package/dist/cjs/collection/async-iterable-collection/async-iterable-collection.js +669 -0
  10. package/dist/cjs/collection/async-iterable-collection/async-iterable-collection.js.map +1 -0
  11. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/_module.js +52 -0
  12. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/_module.js.map +1 -0
  13. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-abort-iterable.js +25 -0
  14. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-abort-iterable.js.map +1 -0
  15. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-chunk-iterable.js +43 -0
  16. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-chunk-iterable.js.map +1 -0
  17. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-chunk-whilte-iterable.js +43 -0
  18. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-chunk-whilte-iterable.js.map +1 -0
  19. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-collapse-iterable.js +32 -0
  20. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-collapse-iterable.js.map +1 -0
  21. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-count-by-iterable.js +39 -0
  22. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-count-by-iterable.js.map +1 -0
  23. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-cross-join-iterable.js +43 -0
  24. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-cross-join-iterable.js.map +1 -0
  25. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-delay-iterable.js +25 -0
  26. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-delay-iterable.js.map +1 -0
  27. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-entries-iterable.js +24 -0
  28. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-entries-iterable.js.map +1 -0
  29. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-filter-iterable.js +32 -0
  30. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-filter-iterable.js.map +1 -0
  31. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-flat-map-iterable.js +30 -0
  32. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-flat-map-iterable.js.map +1 -0
  33. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-group-by-iterable.js +30 -0
  34. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-group-by-iterable.js.map +1 -0
  35. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-insert-after-iterable.js +43 -0
  36. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-insert-after-iterable.js.map +1 -0
  37. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-insert-before-iterable.js +43 -0
  38. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-insert-before-iterable.js.map +1 -0
  39. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-map-iterable.js +30 -0
  40. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-map-iterable.js.map +1 -0
  41. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-merge-iterable.js +27 -0
  42. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-merge-iterable.js.map +1 -0
  43. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-pad-end-iterable.js +34 -0
  44. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-pad-end-iterable.js.map +1 -0
  45. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-pad-start-iterable.js +34 -0
  46. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-pad-start-iterable.js.map +1 -0
  47. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-partion-iterable.js +45 -0
  48. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-partion-iterable.js.map +1 -0
  49. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-repeat-iterable.js +32 -0
  50. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-repeat-iterable.js.map +1 -0
  51. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-reverse-iterable.js +28 -0
  52. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-reverse-iterable.js.map +1 -0
  53. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-shuffle-iterable.js +25 -0
  54. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-shuffle-iterable.js.map +1 -0
  55. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-skip-iterable.js +33 -0
  56. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-skip-iterable.js.map +1 -0
  57. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-skip-until-iterable.js +41 -0
  58. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-skip-until-iterable.js.map +1 -0
  59. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-slice-iterable.js +36 -0
  60. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-slice-iterable.js.map +1 -0
  61. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-sliding-iterable.js +45 -0
  62. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-sliding-iterable.js.map +1 -0
  63. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-sort-iterable.js +16 -0
  64. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-sort-iterable.js.map +1 -0
  65. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-split-iterable.js +49 -0
  66. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-split-iterable.js.map +1 -0
  67. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-take-iterable.js +33 -0
  68. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-take-iterable.js.map +1 -0
  69. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-take-until-iterable.js +33 -0
  70. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-take-until-iterable.js.map +1 -0
  71. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-tap-iterable.js +27 -0
  72. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-tap-iterable.js.map +1 -0
  73. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-timeout-iterable.js +21 -0
  74. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-timeout-iterable.js.map +1 -0
  75. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-unique-iterable.js +35 -0
  76. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-unique-iterable.js.map +1 -0
  77. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-update-iterable.js +37 -0
  78. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-update-iterable.js.map +1 -0
  79. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-when-iterable.js +32 -0
  80. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-when-iterable.js.map +1 -0
  81. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-zip-iterable.js +37 -0
  82. package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-zip-iterable.js.map +1 -0
  83. package/dist/cjs/collection/iterable-collection/_module.js +18 -0
  84. package/dist/cjs/collection/iterable-collection/_module.js.map +1 -0
  85. package/dist/cjs/collection/iterable-collection/iterable-collection.js +749 -0
  86. package/dist/cjs/collection/iterable-collection/iterable-collection.js.map +1 -0
  87. package/dist/cjs/collection/iterable-collection/iterable-helpers/_module.js +49 -0
  88. package/dist/cjs/collection/iterable-collection/iterable-helpers/_module.js.map +1 -0
  89. package/dist/cjs/collection/iterable-collection/iterable-helpers/chunk-iterable.js +43 -0
  90. package/dist/cjs/collection/iterable-collection/iterable-helpers/chunk-iterable.js.map +1 -0
  91. package/dist/cjs/collection/iterable-collection/iterable-helpers/chunk-whilte-iterable.js +43 -0
  92. package/dist/cjs/collection/iterable-collection/iterable-helpers/chunk-whilte-iterable.js.map +1 -0
  93. package/dist/cjs/collection/iterable-collection/iterable-helpers/collapse-iterable.js +32 -0
  94. package/dist/cjs/collection/iterable-collection/iterable-helpers/collapse-iterable.js.map +1 -0
  95. package/dist/cjs/collection/iterable-collection/iterable-helpers/count-by-iterable.js +39 -0
  96. package/dist/cjs/collection/iterable-collection/iterable-helpers/count-by-iterable.js.map +1 -0
  97. package/dist/cjs/collection/iterable-collection/iterable-helpers/cross-join-iterable.js +43 -0
  98. package/dist/cjs/collection/iterable-collection/iterable-helpers/cross-join-iterable.js.map +1 -0
  99. package/dist/cjs/collection/iterable-collection/iterable-helpers/entries-iterable.js +34 -0
  100. package/dist/cjs/collection/iterable-collection/iterable-helpers/entries-iterable.js.map +1 -0
  101. package/dist/cjs/collection/iterable-collection/iterable-helpers/filter-iterable.js +32 -0
  102. package/dist/cjs/collection/iterable-collection/iterable-helpers/filter-iterable.js.map +1 -0
  103. package/dist/cjs/collection/iterable-collection/iterable-helpers/flat-map-iterable.js +30 -0
  104. package/dist/cjs/collection/iterable-collection/iterable-helpers/flat-map-iterable.js.map +1 -0
  105. package/dist/cjs/collection/iterable-collection/iterable-helpers/group-by-iterable.js +40 -0
  106. package/dist/cjs/collection/iterable-collection/iterable-helpers/group-by-iterable.js.map +1 -0
  107. package/dist/cjs/collection/iterable-collection/iterable-helpers/insert-after-iterable.js +37 -0
  108. package/dist/cjs/collection/iterable-collection/iterable-helpers/insert-after-iterable.js.map +1 -0
  109. package/dist/cjs/collection/iterable-collection/iterable-helpers/insert-before-iterable.js +37 -0
  110. package/dist/cjs/collection/iterable-collection/iterable-helpers/insert-before-iterable.js.map +1 -0
  111. package/dist/cjs/collection/iterable-collection/iterable-helpers/map-iterable.js +30 -0
  112. package/dist/cjs/collection/iterable-collection/iterable-helpers/map-iterable.js.map +1 -0
  113. package/dist/cjs/collection/iterable-collection/iterable-helpers/merge-iterable.js +27 -0
  114. package/dist/cjs/collection/iterable-collection/iterable-helpers/merge-iterable.js.map +1 -0
  115. package/dist/cjs/collection/iterable-collection/iterable-helpers/pad-end-iterable.js +44 -0
  116. package/dist/cjs/collection/iterable-collection/iterable-helpers/pad-end-iterable.js.map +1 -0
  117. package/dist/cjs/collection/iterable-collection/iterable-helpers/pad-start-iterable.js +44 -0
  118. package/dist/cjs/collection/iterable-collection/iterable-helpers/pad-start-iterable.js.map +1 -0
  119. package/dist/cjs/collection/iterable-collection/iterable-helpers/partion-iterable.js +40 -0
  120. package/dist/cjs/collection/iterable-collection/iterable-helpers/partion-iterable.js.map +1 -0
  121. package/dist/cjs/collection/iterable-collection/iterable-helpers/repeat-iterable.js +32 -0
  122. package/dist/cjs/collection/iterable-collection/iterable-helpers/repeat-iterable.js.map +1 -0
  123. package/dist/cjs/collection/iterable-collection/iterable-helpers/reverse-iterable.js +38 -0
  124. package/dist/cjs/collection/iterable-collection/iterable-helpers/reverse-iterable.js.map +1 -0
  125. package/dist/cjs/collection/iterable-collection/iterable-helpers/shuffle-iterable.js +35 -0
  126. package/dist/cjs/collection/iterable-collection/iterable-helpers/shuffle-iterable.js.map +1 -0
  127. package/dist/cjs/collection/iterable-collection/iterable-helpers/skip-iterable.js +32 -0
  128. package/dist/cjs/collection/iterable-collection/iterable-helpers/skip-iterable.js.map +1 -0
  129. package/dist/cjs/collection/iterable-collection/iterable-helpers/skip-until-iterable.js +36 -0
  130. package/dist/cjs/collection/iterable-collection/iterable-helpers/skip-until-iterable.js.map +1 -0
  131. package/dist/cjs/collection/iterable-collection/iterable-helpers/slice-iterable.js +46 -0
  132. package/dist/cjs/collection/iterable-collection/iterable-helpers/slice-iterable.js.map +1 -0
  133. package/dist/cjs/collection/iterable-collection/iterable-helpers/sliding-iterable.js +45 -0
  134. package/dist/cjs/collection/iterable-collection/iterable-helpers/sliding-iterable.js.map +1 -0
  135. package/dist/cjs/collection/iterable-collection/iterable-helpers/sort-iterable.js +26 -0
  136. package/dist/cjs/collection/iterable-collection/iterable-helpers/sort-iterable.js.map +1 -0
  137. package/dist/cjs/collection/iterable-collection/iterable-helpers/split-iterable.js +49 -0
  138. package/dist/cjs/collection/iterable-collection/iterable-helpers/split-iterable.js.map +1 -0
  139. package/dist/cjs/collection/iterable-collection/iterable-helpers/take-iterable.js +32 -0
  140. package/dist/cjs/collection/iterable-collection/iterable-helpers/take-iterable.js.map +1 -0
  141. package/dist/cjs/collection/iterable-collection/iterable-helpers/take-until-iterable.js +33 -0
  142. package/dist/cjs/collection/iterable-collection/iterable-helpers/take-until-iterable.js.map +1 -0
  143. package/dist/cjs/collection/iterable-collection/iterable-helpers/tap-iterable.js +27 -0
  144. package/dist/cjs/collection/iterable-collection/iterable-helpers/tap-iterable.js.map +1 -0
  145. package/dist/cjs/collection/iterable-collection/iterable-helpers/unique-iterable.js +35 -0
  146. package/dist/cjs/collection/iterable-collection/iterable-helpers/unique-iterable.js.map +1 -0
  147. package/dist/cjs/collection/iterable-collection/iterable-helpers/update-iterable.js +37 -0
  148. package/dist/cjs/collection/iterable-collection/iterable-helpers/update-iterable.js.map +1 -0
  149. package/dist/cjs/collection/iterable-collection/iterable-helpers/when-iterable.js +32 -0
  150. package/dist/cjs/collection/iterable-collection/iterable-helpers/when-iterable.js.map +1 -0
  151. package/dist/cjs/collection/iterable-collection/iterable-helpers/zip-iterable.js +33 -0
  152. package/dist/cjs/collection/iterable-collection/iterable-helpers/zip-iterable.js.map +1 -0
  153. package/dist/cjs/collection/list-collection/_module.js +18 -0
  154. package/dist/cjs/collection/list-collection/_module.js.map +1 -0
  155. package/dist/cjs/collection/list-collection/list-collection.js +1264 -0
  156. package/dist/cjs/collection/list-collection/list-collection.js.map +1 -0
  157. package/dist/cjs/contracts/_module.js +18 -0
  158. package/dist/cjs/contracts/_module.js.map +1 -0
  159. package/dist/cjs/contracts/collection/_module.js +20 -0
  160. package/dist/cjs/contracts/collection/_module.js.map +1 -0
  161. package/dist/cjs/contracts/collection/_shared.js +39 -0
  162. package/dist/cjs/contracts/collection/_shared.js.map +1 -0
  163. package/dist/cjs/contracts/collection/async-collection.contract.js +3 -0
  164. package/dist/cjs/contracts/collection/async-collection.contract.js.map +1 -0
  165. package/dist/cjs/contracts/collection/collection.contract.js +3 -0
  166. package/dist/cjs/contracts/collection/collection.contract.js.map +1 -0
  167. package/dist/cjs/types.js +3 -0
  168. package/dist/cjs/types.js.map +1 -0
  169. package/dist/esm/_module.js +3 -0
  170. package/dist/esm/_module.js.map +1 -0
  171. package/dist/esm/collection/_module.js +5 -0
  172. package/dist/esm/collection/_module.js.map +1 -0
  173. package/dist/esm/collection/_shared.js +23 -0
  174. package/dist/esm/collection/_shared.js.map +1 -0
  175. package/dist/esm/collection/async-iterable-collection/_module.js +2 -0
  176. package/dist/esm/collection/async-iterable-collection/_module.js.map +1 -0
  177. package/dist/esm/collection/async-iterable-collection/async-iterable-collection.js +665 -0
  178. package/dist/esm/collection/async-iterable-collection/async-iterable-collection.js.map +1 -0
  179. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/_module.js +36 -0
  180. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/_module.js.map +1 -0
  181. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-abort-iterable.js +21 -0
  182. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-abort-iterable.js.map +1 -0
  183. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-chunk-iterable.js +39 -0
  184. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-chunk-iterable.js.map +1 -0
  185. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-chunk-whilte-iterable.js +39 -0
  186. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-chunk-whilte-iterable.js.map +1 -0
  187. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-collapse-iterable.js +28 -0
  188. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-collapse-iterable.js.map +1 -0
  189. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-count-by-iterable.js +35 -0
  190. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-count-by-iterable.js.map +1 -0
  191. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-cross-join-iterable.js +39 -0
  192. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-cross-join-iterable.js.map +1 -0
  193. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-delay-iterable.js +21 -0
  194. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-delay-iterable.js.map +1 -0
  195. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-entries-iterable.js +20 -0
  196. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-entries-iterable.js.map +1 -0
  197. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-filter-iterable.js +28 -0
  198. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-filter-iterable.js.map +1 -0
  199. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-flat-map-iterable.js +26 -0
  200. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-flat-map-iterable.js.map +1 -0
  201. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-group-by-iterable.js +26 -0
  202. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-group-by-iterable.js.map +1 -0
  203. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-insert-after-iterable.js +39 -0
  204. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-insert-after-iterable.js.map +1 -0
  205. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-insert-before-iterable.js +39 -0
  206. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-insert-before-iterable.js.map +1 -0
  207. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-map-iterable.js +26 -0
  208. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-map-iterable.js.map +1 -0
  209. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-merge-iterable.js +23 -0
  210. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-merge-iterable.js.map +1 -0
  211. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-pad-end-iterable.js +30 -0
  212. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-pad-end-iterable.js.map +1 -0
  213. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-pad-start-iterable.js +30 -0
  214. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-pad-start-iterable.js.map +1 -0
  215. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-partion-iterable.js +41 -0
  216. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-partion-iterable.js.map +1 -0
  217. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-repeat-iterable.js +28 -0
  218. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-repeat-iterable.js.map +1 -0
  219. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-reverse-iterable.js +24 -0
  220. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-reverse-iterable.js.map +1 -0
  221. package/{src/collection/async-iterable-collection/async-iterable-helpers/async-shuffle-iterable.ts → dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-shuffle-iterable.js} +7 -9
  222. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-shuffle-iterable.js.map +1 -0
  223. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-skip-iterable.js +29 -0
  224. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-skip-iterable.js.map +1 -0
  225. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-skip-until-iterable.js +37 -0
  226. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-skip-until-iterable.js.map +1 -0
  227. package/{src/collection/async-iterable-collection/async-iterable-helpers/async-slice-iterable.ts → dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-slice-iterable.js} +13 -14
  228. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-slice-iterable.js.map +1 -0
  229. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-sliding-iterable.js +41 -0
  230. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-sliding-iterable.js.map +1 -0
  231. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-sort-iterable.js +12 -0
  232. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-sort-iterable.js.map +1 -0
  233. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-split-iterable.js +45 -0
  234. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-split-iterable.js.map +1 -0
  235. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-take-iterable.js +29 -0
  236. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-take-iterable.js.map +1 -0
  237. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-take-until-iterable.js +29 -0
  238. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-take-until-iterable.js.map +1 -0
  239. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-tap-iterable.js +23 -0
  240. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-tap-iterable.js.map +1 -0
  241. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-timeout-iterable.js +17 -0
  242. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-timeout-iterable.js.map +1 -0
  243. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-unique-iterable.js +31 -0
  244. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-unique-iterable.js.map +1 -0
  245. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-update-iterable.js +33 -0
  246. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-update-iterable.js.map +1 -0
  247. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-when-iterable.js +28 -0
  248. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-when-iterable.js.map +1 -0
  249. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-zip-iterable.js +33 -0
  250. package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-zip-iterable.js.map +1 -0
  251. package/dist/esm/collection/iterable-collection/_module.js +2 -0
  252. package/dist/esm/collection/iterable-collection/_module.js.map +1 -0
  253. package/dist/esm/collection/iterable-collection/iterable-collection.js +745 -0
  254. package/dist/esm/collection/iterable-collection/iterable-collection.js.map +1 -0
  255. package/dist/esm/collection/iterable-collection/iterable-helpers/_module.js +33 -0
  256. package/dist/esm/collection/iterable-collection/iterable-helpers/_module.js.map +1 -0
  257. package/dist/esm/collection/iterable-collection/iterable-helpers/chunk-iterable.js +39 -0
  258. package/dist/esm/collection/iterable-collection/iterable-helpers/chunk-iterable.js.map +1 -0
  259. package/dist/esm/collection/iterable-collection/iterable-helpers/chunk-whilte-iterable.js +39 -0
  260. package/dist/esm/collection/iterable-collection/iterable-helpers/chunk-whilte-iterable.js.map +1 -0
  261. package/dist/esm/collection/iterable-collection/iterable-helpers/collapse-iterable.js +28 -0
  262. package/dist/esm/collection/iterable-collection/iterable-helpers/collapse-iterable.js.map +1 -0
  263. package/dist/esm/collection/iterable-collection/iterable-helpers/count-by-iterable.js +35 -0
  264. package/dist/esm/collection/iterable-collection/iterable-helpers/count-by-iterable.js.map +1 -0
  265. package/dist/esm/collection/iterable-collection/iterable-helpers/cross-join-iterable.js +39 -0
  266. package/dist/esm/collection/iterable-collection/iterable-helpers/cross-join-iterable.js.map +1 -0
  267. package/dist/esm/collection/iterable-collection/iterable-helpers/entries-iterable.js +30 -0
  268. package/dist/esm/collection/iterable-collection/iterable-helpers/entries-iterable.js.map +1 -0
  269. package/dist/esm/collection/iterable-collection/iterable-helpers/filter-iterable.js +28 -0
  270. package/dist/esm/collection/iterable-collection/iterable-helpers/filter-iterable.js.map +1 -0
  271. package/dist/esm/collection/iterable-collection/iterable-helpers/flat-map-iterable.js +26 -0
  272. package/dist/esm/collection/iterable-collection/iterable-helpers/flat-map-iterable.js.map +1 -0
  273. package/dist/esm/collection/iterable-collection/iterable-helpers/group-by-iterable.js +36 -0
  274. package/dist/esm/collection/iterable-collection/iterable-helpers/group-by-iterable.js.map +1 -0
  275. package/dist/esm/collection/iterable-collection/iterable-helpers/insert-after-iterable.js +33 -0
  276. package/dist/esm/collection/iterable-collection/iterable-helpers/insert-after-iterable.js.map +1 -0
  277. package/dist/esm/collection/iterable-collection/iterable-helpers/insert-before-iterable.js +33 -0
  278. package/dist/esm/collection/iterable-collection/iterable-helpers/insert-before-iterable.js.map +1 -0
  279. package/dist/esm/collection/iterable-collection/iterable-helpers/map-iterable.js +26 -0
  280. package/dist/esm/collection/iterable-collection/iterable-helpers/map-iterable.js.map +1 -0
  281. package/dist/esm/collection/iterable-collection/iterable-helpers/merge-iterable.js +23 -0
  282. package/dist/esm/collection/iterable-collection/iterable-helpers/merge-iterable.js.map +1 -0
  283. package/dist/esm/collection/iterable-collection/iterable-helpers/pad-end-iterable.js +40 -0
  284. package/dist/esm/collection/iterable-collection/iterable-helpers/pad-end-iterable.js.map +1 -0
  285. package/dist/esm/collection/iterable-collection/iterable-helpers/pad-start-iterable.js +40 -0
  286. package/dist/esm/collection/iterable-collection/iterable-helpers/pad-start-iterable.js.map +1 -0
  287. package/dist/esm/collection/iterable-collection/iterable-helpers/partion-iterable.js +36 -0
  288. package/dist/esm/collection/iterable-collection/iterable-helpers/partion-iterable.js.map +1 -0
  289. package/dist/esm/collection/iterable-collection/iterable-helpers/repeat-iterable.js +28 -0
  290. package/dist/esm/collection/iterable-collection/iterable-helpers/repeat-iterable.js.map +1 -0
  291. package/dist/esm/collection/iterable-collection/iterable-helpers/reverse-iterable.js +34 -0
  292. package/dist/esm/collection/iterable-collection/iterable-helpers/reverse-iterable.js.map +1 -0
  293. package/dist/esm/collection/iterable-collection/iterable-helpers/shuffle-iterable.js +31 -0
  294. package/dist/esm/collection/iterable-collection/iterable-helpers/shuffle-iterable.js.map +1 -0
  295. package/dist/esm/collection/iterable-collection/iterable-helpers/skip-iterable.js +28 -0
  296. package/dist/esm/collection/iterable-collection/iterable-helpers/skip-iterable.js.map +1 -0
  297. package/dist/esm/collection/iterable-collection/iterable-helpers/skip-until-iterable.js +32 -0
  298. package/dist/esm/collection/iterable-collection/iterable-helpers/skip-until-iterable.js.map +1 -0
  299. package/dist/esm/collection/iterable-collection/iterable-helpers/slice-iterable.js +42 -0
  300. package/dist/esm/collection/iterable-collection/iterable-helpers/slice-iterable.js.map +1 -0
  301. package/dist/esm/collection/iterable-collection/iterable-helpers/sliding-iterable.js +41 -0
  302. package/dist/esm/collection/iterable-collection/iterable-helpers/sliding-iterable.js.map +1 -0
  303. package/dist/esm/collection/iterable-collection/iterable-helpers/sort-iterable.js +22 -0
  304. package/dist/esm/collection/iterable-collection/iterable-helpers/sort-iterable.js.map +1 -0
  305. package/dist/esm/collection/iterable-collection/iterable-helpers/split-iterable.js +45 -0
  306. package/dist/esm/collection/iterable-collection/iterable-helpers/split-iterable.js.map +1 -0
  307. package/dist/esm/collection/iterable-collection/iterable-helpers/take-iterable.js +28 -0
  308. package/dist/esm/collection/iterable-collection/iterable-helpers/take-iterable.js.map +1 -0
  309. package/dist/esm/collection/iterable-collection/iterable-helpers/take-until-iterable.js +29 -0
  310. package/dist/esm/collection/iterable-collection/iterable-helpers/take-until-iterable.js.map +1 -0
  311. package/dist/esm/collection/iterable-collection/iterable-helpers/tap-iterable.js +23 -0
  312. package/dist/esm/collection/iterable-collection/iterable-helpers/tap-iterable.js.map +1 -0
  313. package/dist/esm/collection/iterable-collection/iterable-helpers/unique-iterable.js +31 -0
  314. package/dist/esm/collection/iterable-collection/iterable-helpers/unique-iterable.js.map +1 -0
  315. package/dist/esm/collection/iterable-collection/iterable-helpers/update-iterable.js +33 -0
  316. package/dist/esm/collection/iterable-collection/iterable-helpers/update-iterable.js.map +1 -0
  317. package/dist/esm/collection/iterable-collection/iterable-helpers/when-iterable.js +28 -0
  318. package/dist/esm/collection/iterable-collection/iterable-helpers/when-iterable.js.map +1 -0
  319. package/dist/esm/collection/iterable-collection/iterable-helpers/zip-iterable.js +29 -0
  320. package/dist/esm/collection/iterable-collection/iterable-helpers/zip-iterable.js.map +1 -0
  321. package/dist/esm/collection/list-collection/_module.js +2 -0
  322. package/dist/esm/collection/list-collection/_module.js.map +1 -0
  323. package/dist/esm/collection/list-collection/list-collection.js +1260 -0
  324. package/dist/esm/collection/list-collection/list-collection.js.map +1 -0
  325. package/dist/esm/contracts/_module.js +2 -0
  326. package/dist/esm/contracts/_module.js.map +1 -0
  327. package/dist/esm/contracts/collection/_module.js +4 -0
  328. package/dist/esm/contracts/collection/_module.js.map +1 -0
  329. package/dist/esm/contracts/collection/_shared.js +31 -0
  330. package/dist/esm/contracts/collection/_shared.js.map +1 -0
  331. package/dist/esm/contracts/collection/async-collection.contract.js +1 -0
  332. package/dist/esm/contracts/collection/async-collection.contract.js.map +1 -0
  333. package/dist/esm/contracts/collection/collection.contract.js +1 -0
  334. package/dist/esm/contracts/collection/collection.contract.js.map +1 -0
  335. package/dist/esm/types.js +1 -0
  336. package/dist/esm/types.js.map +1 -0
  337. package/dist/types/_module.d.ts +2 -0
  338. package/dist/types/collection/_module.d.ts +4 -0
  339. package/dist/types/collection/_shared.d.ts +16 -0
  340. package/dist/types/collection/async-iterable-collection/_module.d.ts +1 -0
  341. package/dist/types/collection/async-iterable-collection/async-iterable-collection.d.ts +92 -0
  342. package/dist/types/collection/async-iterable-collection/async-iterable-helpers/_module.d.ts +35 -0
  343. package/dist/types/collection/async-iterable-collection/async-iterable-helpers/async-abort-iterable.d.ts +10 -0
  344. package/dist/types/collection/async-iterable-collection/async-iterable-helpers/async-chunk-iterable.d.ts +11 -0
  345. package/dist/types/collection/async-iterable-collection/async-iterable-helpers/async-chunk-whilte-iterable.d.ts +12 -0
  346. package/dist/types/collection/async-iterable-collection/async-iterable-helpers/async-collapse-iterable.d.ts +9 -0
  347. package/dist/types/collection/async-iterable-collection/async-iterable-helpers/async-count-by-iterable.d.ts +11 -0
  348. package/dist/types/collection/async-iterable-collection/async-iterable-helpers/async-cross-join-iterable.d.ts +11 -0
  349. package/dist/types/collection/async-iterable-collection/async-iterable-helpers/async-delay-iterable.d.ts +10 -0
  350. package/dist/types/collection/async-iterable-collection/async-iterable-helpers/async-entries-iterable.d.ts +11 -0
  351. package/dist/types/collection/async-iterable-collection/async-iterable-helpers/async-filter-iterable.d.ts +11 -0
  352. package/dist/types/collection/async-iterable-collection/async-iterable-helpers/async-flat-map-iterable.d.ts +11 -0
  353. package/dist/types/collection/async-iterable-collection/async-iterable-helpers/async-group-by-iterable.d.ts +12 -0
  354. package/dist/types/collection/async-iterable-collection/async-iterable-helpers/async-insert-after-iterable.d.ts +12 -0
  355. package/dist/types/collection/async-iterable-collection/async-iterable-helpers/async-insert-before-iterable.d.ts +12 -0
  356. package/dist/types/collection/async-iterable-collection/async-iterable-helpers/async-map-iterable.d.ts +11 -0
  357. package/dist/types/collection/async-iterable-collection/async-iterable-helpers/async-merge-iterable.d.ts +10 -0
  358. package/dist/types/collection/async-iterable-collection/async-iterable-helpers/async-pad-end-iterable.d.ts +12 -0
  359. package/dist/types/collection/async-iterable-collection/async-iterable-helpers/async-pad-start-iterable.d.ts +12 -0
  360. package/dist/types/collection/async-iterable-collection/async-iterable-helpers/async-partion-iterable.d.ts +12 -0
  361. package/dist/types/collection/async-iterable-collection/async-iterable-helpers/async-repeat-iterable.d.ts +11 -0
  362. package/dist/types/collection/async-iterable-collection/async-iterable-helpers/async-reverse-iterable.d.ts +12 -0
  363. package/dist/types/collection/async-iterable-collection/async-iterable-helpers/async-shuffle-iterable.d.ts +9 -0
  364. package/dist/types/collection/async-iterable-collection/async-iterable-helpers/async-skip-iterable.d.ts +11 -0
  365. package/dist/types/collection/async-iterable-collection/async-iterable-helpers/async-skip-until-iterable.d.ts +11 -0
  366. package/dist/types/collection/async-iterable-collection/async-iterable-helpers/async-slice-iterable.d.ts +12 -0
  367. package/dist/types/collection/async-iterable-collection/async-iterable-helpers/async-sliding-iterable.d.ts +12 -0
  368. package/dist/types/collection/async-iterable-collection/async-iterable-helpers/async-sort-iterable.d.ts +10 -0
  369. package/dist/types/collection/async-iterable-collection/async-iterable-helpers/async-split-iterable.d.ts +12 -0
  370. package/dist/types/collection/async-iterable-collection/async-iterable-helpers/async-take-iterable.d.ts +11 -0
  371. package/dist/types/collection/async-iterable-collection/async-iterable-helpers/async-take-until-iterable.d.ts +11 -0
  372. package/dist/types/collection/async-iterable-collection/async-iterable-helpers/async-tap-iterable.d.ts +10 -0
  373. package/dist/types/collection/async-iterable-collection/async-iterable-helpers/async-timeout-iterable.d.ts +10 -0
  374. package/dist/types/collection/async-iterable-collection/async-iterable-helpers/async-unique-iterable.d.ts +11 -0
  375. package/dist/types/collection/async-iterable-collection/async-iterable-helpers/async-update-iterable.d.ts +12 -0
  376. package/dist/types/collection/async-iterable-collection/async-iterable-helpers/async-when-iterable.d.ts +11 -0
  377. package/dist/types/collection/async-iterable-collection/async-iterable-helpers/async-zip-iterable.d.ts +10 -0
  378. package/dist/types/collection/iterable-collection/_module.d.ts +1 -0
  379. package/dist/types/collection/iterable-collection/iterable-collection.d.ts +89 -0
  380. package/dist/types/collection/iterable-collection/iterable-helpers/_module.d.ts +32 -0
  381. package/dist/types/collection/iterable-collection/iterable-helpers/chunk-iterable.d.ts +8 -0
  382. package/dist/types/collection/iterable-collection/iterable-helpers/chunk-whilte-iterable.d.ts +9 -0
  383. package/dist/types/collection/iterable-collection/iterable-helpers/collapse-iterable.d.ts +6 -0
  384. package/dist/types/collection/iterable-collection/iterable-helpers/count-by-iterable.d.ts +8 -0
  385. package/dist/types/collection/iterable-collection/iterable-helpers/cross-join-iterable.d.ts +8 -0
  386. package/dist/types/collection/iterable-collection/iterable-helpers/entries-iterable.d.ts +7 -0
  387. package/dist/types/collection/iterable-collection/iterable-helpers/filter-iterable.d.ts +8 -0
  388. package/dist/types/collection/iterable-collection/iterable-helpers/flat-map-iterable.d.ts +8 -0
  389. package/dist/types/collection/iterable-collection/iterable-helpers/group-by-iterable.d.ts +9 -0
  390. package/dist/types/collection/iterable-collection/iterable-helpers/insert-after-iterable.d.ts +9 -0
  391. package/dist/types/collection/iterable-collection/iterable-helpers/insert-before-iterable.d.ts +9 -0
  392. package/dist/types/collection/iterable-collection/iterable-helpers/map-iterable.d.ts +8 -0
  393. package/dist/types/collection/iterable-collection/iterable-helpers/merge-iterable.d.ts +6 -0
  394. package/dist/types/collection/iterable-collection/iterable-helpers/pad-end-iterable.d.ts +9 -0
  395. package/dist/types/collection/iterable-collection/iterable-helpers/pad-start-iterable.d.ts +9 -0
  396. package/dist/types/collection/iterable-collection/iterable-helpers/partion-iterable.d.ts +9 -0
  397. package/dist/types/collection/iterable-collection/iterable-helpers/repeat-iterable.d.ts +8 -0
  398. package/dist/types/collection/iterable-collection/iterable-helpers/reverse-iterable.d.ts +9 -0
  399. package/dist/types/collection/iterable-collection/iterable-helpers/shuffle-iterable.d.ts +5 -0
  400. package/dist/types/collection/iterable-collection/iterable-helpers/skip-iterable.d.ts +8 -0
  401. package/dist/types/collection/iterable-collection/iterable-helpers/skip-until-iterable.d.ts +8 -0
  402. package/dist/types/collection/iterable-collection/iterable-helpers/slice-iterable.d.ts +9 -0
  403. package/dist/types/collection/iterable-collection/iterable-helpers/sliding-iterable.d.ts +9 -0
  404. package/dist/types/collection/iterable-collection/iterable-helpers/sort-iterable.d.ts +7 -0
  405. package/dist/types/collection/iterable-collection/iterable-helpers/split-iterable.d.ts +9 -0
  406. package/dist/types/collection/iterable-collection/iterable-helpers/take-iterable.d.ts +8 -0
  407. package/dist/types/collection/iterable-collection/iterable-helpers/take-until-iterable.d.ts +8 -0
  408. package/dist/types/collection/iterable-collection/iterable-helpers/tap-iterable.d.ts +7 -0
  409. package/dist/types/collection/iterable-collection/iterable-helpers/unique-iterable.d.ts +8 -0
  410. package/dist/types/collection/iterable-collection/iterable-helpers/update-iterable.d.ts +9 -0
  411. package/dist/types/collection/iterable-collection/iterable-helpers/when-iterable.d.ts +8 -0
  412. package/dist/types/collection/iterable-collection/iterable-helpers/zip-iterable.d.ts +7 -0
  413. package/dist/types/collection/list-collection/_module.d.ts +1 -0
  414. package/dist/types/collection/list-collection/list-collection.d.ts +86 -0
  415. package/dist/types/contracts/_module.d.ts +1 -0
  416. package/dist/types/contracts/collection/_module.d.ts +3 -0
  417. package/{src/contracts/collection/_shared.ts → dist/types/contracts/collection/_shared.d.ts} +31 -118
  418. package/{src/contracts/collection/async-collection.contract.ts → dist/types/contracts/collection/async-collection.contract.d.ts} +84 -356
  419. package/{src/contracts/collection/collection.contract.ts → dist/types/contracts/collection/collection.contract.d.ts} +54 -311
  420. package/dist/types/types.d.ts +1 -0
  421. package/package.json +5 -2
  422. package/.changeset/README.md +0 -8
  423. package/.changeset/config.json +0 -11
  424. package/.eslintignore +0 -3
  425. package/.eslintrc.json +0 -50
  426. package/.gitattributes +0 -6
  427. package/.github/workflows/main.yaml +0 -54
  428. package/.github/workflows/release.yaml +0 -31
  429. package/.prettierignore +0 -4
  430. package/.prettierrc.json +0 -4
  431. package/.vscode/settings.json +0 -46
  432. package/CHANGELOG.md +0 -7
  433. package/docs-api/.nojekyll +0 -1
  434. package/docs-api/assets/highlight.css +0 -92
  435. package/docs-api/assets/icons.js +0 -18
  436. package/docs-api/assets/icons.svg +0 -1
  437. package/docs-api/assets/main.js +0 -60
  438. package/docs-api/assets/navigation.js +0 -1
  439. package/docs-api/assets/search.js +0 -1
  440. package/docs-api/assets/style.css +0 -1448
  441. package/docs-api/classes/AsyncIterableCollection.html +0 -437
  442. package/docs-api/classes/CollectionError.html +0 -12
  443. package/docs-api/classes/IndexOverflowError.html +0 -12
  444. package/docs-api/classes/ItemNotFoundError.html +0 -12
  445. package/docs-api/classes/IterableCollection.html +0 -434
  446. package/docs-api/classes/ListCollection.html +0 -434
  447. package/docs-api/classes/MultipleItemsFoundError.html +0 -12
  448. package/docs-api/classes/UnexpectedCollectionError.html +0 -12
  449. package/docs-api/functions/isAsyncIterable.html +0 -1
  450. package/docs-api/functions/isIterable.html +0 -1
  451. package/docs-api/functions/range.html +0 -4
  452. package/docs-api/hierarchy.html +0 -1
  453. package/docs-api/index.html +0 -1
  454. package/docs-api/modules.html +0 -60
  455. package/docs-api/types/AsyncCollapse.html +0 -1
  456. package/docs-api/types/AsyncFilter.html +0 -1
  457. package/docs-api/types/AsyncFilter_.html +0 -1
  458. package/docs-api/types/AsyncFindOrSettings.html +0 -1
  459. package/docs-api/types/AsyncFindSettings.html +0 -1
  460. package/docs-api/types/AsyncForEach.html +0 -1
  461. package/docs-api/types/AsyncForEach_.html +0 -1
  462. package/docs-api/types/AsyncGroupBySettings.html +0 -1
  463. package/docs-api/types/AsyncIterableValue.html +0 -1
  464. package/docs-api/types/AsyncLazyable.html +0 -1
  465. package/docs-api/types/AsyncLazyable_.html +0 -1
  466. package/docs-api/types/AsyncMap.html +0 -1
  467. package/docs-api/types/AsyncMap_.html +0 -1
  468. package/docs-api/types/AsyncModifier.html +0 -1
  469. package/docs-api/types/AsyncModifier_.html +0 -1
  470. package/docs-api/types/AsyncReduce.html +0 -1
  471. package/docs-api/types/AsyncReduceSettings.html +0 -1
  472. package/docs-api/types/AsyncReduce_.html +0 -1
  473. package/docs-api/types/AsyncTap.html +0 -1
  474. package/docs-api/types/AsyncTap_.html +0 -1
  475. package/docs-api/types/AsyncTransform.html +0 -1
  476. package/docs-api/types/AsyncTransform_.html +0 -1
  477. package/docs-api/types/Collapse.html +0 -1
  478. package/docs-api/types/Comparator.html +0 -1
  479. package/docs-api/types/EnsureType.html +0 -1
  480. package/docs-api/types/Filter.html +0 -1
  481. package/docs-api/types/FilterGuard.html +0 -1
  482. package/docs-api/types/Filter_.html +0 -1
  483. package/docs-api/types/FindOrSettings.html +0 -1
  484. package/docs-api/types/FindSettings.html +0 -1
  485. package/docs-api/types/ForEach.html +0 -1
  486. package/docs-api/types/GroupBySettings.html +0 -1
  487. package/docs-api/types/IAsyncCollection.html +0 -357
  488. package/docs-api/types/ICollection.html +0 -357
  489. package/docs-api/types/JoinSettings.html +0 -1
  490. package/docs-api/types/Lazyable.html +0 -1
  491. package/docs-api/types/Map.html +0 -1
  492. package/docs-api/types/Modifier.html +0 -1
  493. package/docs-api/types/PageSettings.html +0 -1
  494. package/docs-api/types/RecordItem.html +0 -1
  495. package/docs-api/types/Reduce.html +0 -1
  496. package/docs-api/types/ReduceSettings.html +0 -1
  497. package/docs-api/types/ReverseSettings.html +0 -1
  498. package/docs-api/types/SliceSettings.html +0 -1
  499. package/docs-api/types/SlidingSettings.html +0 -1
  500. package/docs-api/types/Tap.html +0 -1
  501. package/docs-api/types/Transform.html +0 -1
  502. package/docs-api/types/UpdatedItem.html +0 -1
  503. package/src/_module.ts +0 -2
  504. package/src/collection/_module.ts +0 -4
  505. package/src/collection/_shared.ts +0 -45
  506. package/src/collection/async-iterable-collection/_module.ts +0 -1
  507. package/src/collection/async-iterable-collection/async-iterable-collection.test.ts +0 -3195
  508. package/src/collection/async-iterable-collection/async-iterable-collection.ts +0 -1276
  509. package/src/collection/async-iterable-collection/async-iterable-helpers/_module.ts +0 -35
  510. package/src/collection/async-iterable-collection/async-iterable-helpers/async-abort-iterable.ts +0 -25
  511. package/src/collection/async-iterable-collection/async-iterable-helpers/async-chunk-iterable.ts +0 -57
  512. package/src/collection/async-iterable-collection/async-iterable-helpers/async-chunk-whilte-iterable.ts +0 -54
  513. package/src/collection/async-iterable-collection/async-iterable-helpers/async-collapse-iterable.ts +0 -40
  514. package/src/collection/async-iterable-collection/async-iterable-helpers/async-count-by-iterable.ts +0 -58
  515. package/src/collection/async-iterable-collection/async-iterable-helpers/async-cross-join-iterable.ts +0 -69
  516. package/src/collection/async-iterable-collection/async-iterable-helpers/async-delay-iterable.ts +0 -19
  517. package/src/collection/async-iterable-collection/async-iterable-helpers/async-entries-iterable.ts +0 -28
  518. package/src/collection/async-iterable-collection/async-iterable-helpers/async-filter-iterable.ts +0 -42
  519. package/src/collection/async-iterable-collection/async-iterable-helpers/async-flat-map-iterable.ts +0 -44
  520. package/src/collection/async-iterable-collection/async-iterable-helpers/async-group-by-iterable.ts +0 -48
  521. package/src/collection/async-iterable-collection/async-iterable-helpers/async-insert-after-iterable.ts +0 -57
  522. package/src/collection/async-iterable-collection/async-iterable-helpers/async-insert-before-iterable.ts +0 -57
  523. package/src/collection/async-iterable-collection/async-iterable-helpers/async-map-iterable.ts +0 -40
  524. package/src/collection/async-iterable-collection/async-iterable-helpers/async-merge-iterable.ts +0 -35
  525. package/src/collection/async-iterable-collection/async-iterable-helpers/async-pad-end-iterable.ts +0 -41
  526. package/src/collection/async-iterable-collection/async-iterable-helpers/async-pad-start-iterable.ts +0 -41
  527. package/src/collection/async-iterable-collection/async-iterable-helpers/async-partion-iterable.ts +0 -63
  528. package/src/collection/async-iterable-collection/async-iterable-helpers/async-repeat-iterable.ts +0 -40
  529. package/src/collection/async-iterable-collection/async-iterable-helpers/async-reverse-iterable.ts +0 -35
  530. package/src/collection/async-iterable-collection/async-iterable-helpers/async-skip-iterable.ts +0 -41
  531. package/src/collection/async-iterable-collection/async-iterable-helpers/async-skip-until-iterable.ts +0 -55
  532. package/src/collection/async-iterable-collection/async-iterable-helpers/async-sliding-iterable.ts +0 -54
  533. package/src/collection/async-iterable-collection/async-iterable-helpers/async-sort-iterable.ts +0 -18
  534. package/src/collection/async-iterable-collection/async-iterable-helpers/async-split-iterable.ts +0 -64
  535. package/src/collection/async-iterable-collection/async-iterable-helpers/async-take-iterable.ts +0 -41
  536. package/src/collection/async-iterable-collection/async-iterable-helpers/async-take-until-iterable.ts +0 -41
  537. package/src/collection/async-iterable-collection/async-iterable-helpers/async-tap-iterable.ts +0 -34
  538. package/src/collection/async-iterable-collection/async-iterable-helpers/async-timeout-iterable.ts +0 -20
  539. package/src/collection/async-iterable-collection/async-iterable-helpers/async-unique-iterable.ts +0 -49
  540. package/src/collection/async-iterable-collection/async-iterable-helpers/async-update-iterable.ts +0 -64
  541. package/src/collection/async-iterable-collection/async-iterable-helpers/async-when-iterable.ts +0 -43
  542. package/src/collection/async-iterable-collection/async-iterable-helpers/async-zip-iterable.ts +0 -45
  543. package/src/collection/iterable-collection/_module.ts +0 -1
  544. package/src/collection/iterable-collection/iterable-collection.test.ts +0 -2379
  545. package/src/collection/iterable-collection/iterable-collection.ts +0 -1317
  546. package/src/collection/iterable-collection/iterable-helpers/_module.ts +0 -32
  547. package/src/collection/iterable-collection/iterable-helpers/chunk-iterable.ts +0 -49
  548. package/src/collection/iterable-collection/iterable-helpers/chunk-whilte-iterable.ts +0 -51
  549. package/src/collection/iterable-collection/iterable-helpers/collapse-iterable.ts +0 -35
  550. package/src/collection/iterable-collection/iterable-helpers/count-by-iterable.ts +0 -49
  551. package/src/collection/iterable-collection/iterable-helpers/cross-join-iterable.ts +0 -57
  552. package/src/collection/iterable-collection/iterable-helpers/entries-iterable.ts +0 -42
  553. package/src/collection/iterable-collection/iterable-helpers/filter-iterable.ts +0 -39
  554. package/src/collection/iterable-collection/iterable-helpers/flat-map-iterable.ts +0 -35
  555. package/src/collection/iterable-collection/iterable-helpers/group-by-iterable.ts +0 -52
  556. package/src/collection/iterable-collection/iterable-helpers/insert-after-iterable.ts +0 -43
  557. package/src/collection/iterable-collection/iterable-helpers/insert-before-iterable.ts +0 -43
  558. package/src/collection/iterable-collection/iterable-helpers/map-iterable.ts +0 -35
  559. package/src/collection/iterable-collection/iterable-helpers/merge-iterable.ts +0 -31
  560. package/src/collection/iterable-collection/iterable-helpers/pad-end-iterable.ts +0 -52
  561. package/src/collection/iterable-collection/iterable-helpers/pad-start-iterable.ts +0 -52
  562. package/src/collection/iterable-collection/iterable-helpers/partion-iterable.ts +0 -46
  563. package/src/collection/iterable-collection/iterable-helpers/repeat-iterable.ts +0 -36
  564. package/src/collection/iterable-collection/iterable-helpers/reverse-iterable.ts +0 -46
  565. package/src/collection/iterable-collection/iterable-helpers/shuffle-iterable.ts +0 -36
  566. package/src/collection/iterable-collection/iterable-helpers/skip-iterable.ts +0 -37
  567. package/src/collection/iterable-collection/iterable-helpers/skip-until-iterable.ts +0 -41
  568. package/src/collection/iterable-collection/iterable-helpers/slice-iterable.ts +0 -47
  569. package/src/collection/iterable-collection/iterable-helpers/sliding-iterable.ts +0 -49
  570. package/src/collection/iterable-collection/iterable-helpers/sort-iterable.ts +0 -29
  571. package/src/collection/iterable-collection/iterable-helpers/split-iterable.ts +0 -58
  572. package/src/collection/iterable-collection/iterable-helpers/take-iterable.ts +0 -37
  573. package/src/collection/iterable-collection/iterable-helpers/take-until-iterable.ts +0 -38
  574. package/src/collection/iterable-collection/iterable-helpers/tap-iterable.ts +0 -31
  575. package/src/collection/iterable-collection/iterable-helpers/unique-iterable.ts +0 -43
  576. package/src/collection/iterable-collection/iterable-helpers/update-iterable.ts +0 -50
  577. package/src/collection/iterable-collection/iterable-helpers/when-iterable.ts +0 -37
  578. package/src/collection/iterable-collection/iterable-helpers/zip-iterable.ts +0 -41
  579. package/src/collection/list-collection/_module.ts +0 -1
  580. package/src/collection/list-collection/list-collection.test.ts +0 -2280
  581. package/src/collection/list-collection/list-collection.ts +0 -1883
  582. package/src/contracts/_module.ts +0 -1
  583. package/src/contracts/collection/_module.ts +0 -3
  584. package/src/types.ts +0 -2
  585. package/tsconfig.base.json +0 -31
  586. package/tsconfig.cjs.json +0 -12
  587. package/tsconfig.esm.json +0 -12
  588. package/tsconfig.json +0 -10
  589. package/tsconfig.types.json +0 -12
  590. package/vite.config.ts +0 -6
@@ -0,0 +1,40 @@
1
+ import { CollectionError, UnexpectedCollectionError, } from "../../../contracts/collection/_module";
2
+ export class PadEndIterable {
3
+ collection;
4
+ maxLength;
5
+ fillItems;
6
+ makeCollection;
7
+ constructor(collection, maxLength, fillItems, makeCollection) {
8
+ this.collection = collection;
9
+ this.maxLength = maxLength;
10
+ this.fillItems = fillItems;
11
+ this.makeCollection = makeCollection;
12
+ }
13
+ *[Symbol.iterator]() {
14
+ try {
15
+ const fillCollections = this.makeCollection(this.fillItems);
16
+ const fillSize = fillCollections.size();
17
+ const size = this.collection.size();
18
+ const repeat = Math.floor((this.maxLength - size) / fillSize);
19
+ let resultCollection = this.makeCollection([]);
20
+ for (let index = 0; index < repeat; index++) {
21
+ resultCollection = resultCollection.append(fillCollections);
22
+ }
23
+ const restAmount = this.maxLength - (repeat * fillSize + size);
24
+ resultCollection = resultCollection.append(fillCollections.slice({
25
+ start: 0,
26
+ end: restAmount,
27
+ }));
28
+ resultCollection = resultCollection.prepend(this.collection);
29
+ yield* resultCollection;
30
+ }
31
+ catch (error) {
32
+ if (error instanceof CollectionError ||
33
+ error instanceof TypeError) {
34
+ throw error;
35
+ }
36
+ throw new UnexpectedCollectionError(`Unexpected error "${String(error)}" occured`, error);
37
+ }
38
+ }
39
+ }
40
+ //# sourceMappingURL=pad-end-iterable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pad-end-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/iterable-helpers/pad-end-iterable.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EACf,yBAAyB,GAE5B,MAAM,gCAAgC,CAAC;AAExC,MAAM,OAAO,cAAc;IAIX;IACA;IACA;IACA;IAJZ,YACY,UAA+B,EAC/B,SAAiB,EACjB,SAA8B,EAC9B,cAE4B;QAL5B,eAAU,GAAV,UAAU,CAAqB;QAC/B,cAAS,GAAT,SAAS,CAAQ;QACjB,cAAS,GAAT,SAAS,CAAqB;QAC9B,mBAAc,GAAd,cAAc,CAEc;IACrC,CAAC;IAEJ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QACd,IAAI,CAAC;YACD,MAAM,eAAe,GAAG,IAAI,CAAC,cAAc,CAAS,IAAI,CAAC,SAAS,CAAC,CAAC;YACpE,MAAM,QAAQ,GAAG,eAAe,CAAC,IAAI,EAAE,CAAC;YACxC,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;YACpC,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,GAAG,QAAQ,CAAC,CAAC;YAC9D,IAAI,gBAAgB,GAChB,IAAI,CAAC,cAAc,CAAS,EAAE,CAAC,CAAC;YACpC,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC;gBAC1C,gBAAgB,GAAG,gBAAgB,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;YAChE,CAAC;YACD,MAAM,UAAU,GAAG,IAAI,CAAC,SAAS,GAAG,CAAC,MAAM,GAAG,QAAQ,GAAG,IAAI,CAAC,CAAC;YAC/D,gBAAgB,GAAG,gBAAgB,CAAC,MAAM,CACtC,eAAe,CAAC,KAAK,CAAC;gBAClB,KAAK,EAAE,CAAC;gBACR,GAAG,EAAE,UAAU;aAClB,CAAC,CACL,CAAC;YACF,gBAAgB,GAAG,gBAAgB,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YAC7D,KAAK,CAAC,CAAC,gBAAgB,CAAC;QAC5B,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACtB,IACI,KAAK,YAAY,eAAe;gBAChC,KAAK,YAAY,SAAS,EAC5B,CAAC;gBACC,MAAM,KAAK,CAAC;YAChB,CAAC;YACD,MAAM,IAAI,yBAAyB,CAC/B,qBAAqB,MAAM,CAAC,KAAK,CAAC,WAAW,EAC7C,KAAK,CACR,CAAC;QACN,CAAC;IACL,CAAC;CACJ"}
@@ -0,0 +1,40 @@
1
+ import { CollectionError, UnexpectedCollectionError, } from "../../../contracts/collection/_module";
2
+ export class PadStartIterable {
3
+ collection;
4
+ maxLength;
5
+ fillItems;
6
+ makeCollection;
7
+ constructor(collection, maxLength, fillItems, makeCollection) {
8
+ this.collection = collection;
9
+ this.maxLength = maxLength;
10
+ this.fillItems = fillItems;
11
+ this.makeCollection = makeCollection;
12
+ }
13
+ *[Symbol.iterator]() {
14
+ try {
15
+ const fillCollections = this.makeCollection(this.fillItems);
16
+ const fillSize = fillCollections.size();
17
+ const size = this.collection.size();
18
+ const repeat = Math.floor((this.maxLength - size) / fillSize);
19
+ let resultCollection = this.makeCollection([]);
20
+ for (let index = 0; index < repeat; index++) {
21
+ resultCollection = resultCollection.append(fillCollections);
22
+ }
23
+ const restAmount = this.maxLength - (repeat * fillSize + size);
24
+ resultCollection = resultCollection.append(fillCollections.slice({
25
+ start: 0,
26
+ end: restAmount,
27
+ }));
28
+ resultCollection = resultCollection.append(this.collection);
29
+ yield* resultCollection;
30
+ }
31
+ catch (error) {
32
+ if (error instanceof CollectionError ||
33
+ error instanceof TypeError) {
34
+ throw error;
35
+ }
36
+ throw new UnexpectedCollectionError(`Unexpected error "${String(error)}" occured`, error);
37
+ }
38
+ }
39
+ }
40
+ //# sourceMappingURL=pad-start-iterable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pad-start-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/iterable-helpers/pad-start-iterable.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EACf,yBAAyB,GAE5B,MAAM,gCAAgC,CAAC;AAExC,MAAM,OAAO,gBAAgB;IAIb;IACA;IACA;IACA;IAJZ,YACY,UAA+B,EAC/B,SAAiB,EACjB,SAA8B,EAC9B,cAE4B;QAL5B,eAAU,GAAV,UAAU,CAAqB;QAC/B,cAAS,GAAT,SAAS,CAAQ;QACjB,cAAS,GAAT,SAAS,CAAqB;QAC9B,mBAAc,GAAd,cAAc,CAEc;IACrC,CAAC;IAEJ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QACd,IAAI,CAAC;YACD,MAAM,eAAe,GAAG,IAAI,CAAC,cAAc,CAAS,IAAI,CAAC,SAAS,CAAC,CAAC;YACpE,MAAM,QAAQ,GAAG,eAAe,CAAC,IAAI,EAAE,CAAC;YACxC,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;YACpC,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,GAAG,QAAQ,CAAC,CAAC;YAC9D,IAAI,gBAAgB,GAChB,IAAI,CAAC,cAAc,CAAS,EAAE,CAAC,CAAC;YACpC,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC;gBAC1C,gBAAgB,GAAG,gBAAgB,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;YAChE,CAAC;YACD,MAAM,UAAU,GAAG,IAAI,CAAC,SAAS,GAAG,CAAC,MAAM,GAAG,QAAQ,GAAG,IAAI,CAAC,CAAC;YAC/D,gBAAgB,GAAG,gBAAgB,CAAC,MAAM,CACtC,eAAe,CAAC,KAAK,CAAC;gBAClB,KAAK,EAAE,CAAC;gBACR,GAAG,EAAE,UAAU;aAClB,CAAC,CACL,CAAC;YACF,gBAAgB,GAAG,gBAAgB,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YAC5D,KAAK,CAAC,CAAC,gBAAgB,CAAC;QAC5B,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACtB,IACI,KAAK,YAAY,eAAe;gBAChC,KAAK,YAAY,SAAS,EAC5B,CAAC;gBACC,MAAM,KAAK,CAAC;YAChB,CAAC;YACD,MAAM,IAAI,yBAAyB,CAC/B,qBAAqB,MAAM,CAAC,KAAK,CAAC,WAAW,EAC7C,KAAK,CACR,CAAC;QACN,CAAC;IACL,CAAC;CACJ"}
@@ -0,0 +1,36 @@
1
+ import { CollectionError, UnexpectedCollectionError, } from "../../../contracts/collection/_module";
2
+ export class PartionIterable {
3
+ collection;
4
+ filter;
5
+ throwOnNumberLimit;
6
+ makeCollection;
7
+ constructor(collection, filter, throwOnNumberLimit, makeCollection) {
8
+ this.collection = collection;
9
+ this.filter = filter;
10
+ this.throwOnNumberLimit = throwOnNumberLimit;
11
+ this.makeCollection = makeCollection;
12
+ }
13
+ *[Symbol.iterator]() {
14
+ try {
15
+ let chunkA = this.makeCollection([]), chunkB = this.makeCollection([]);
16
+ for (const [index, item] of this.collection.entries(this.throwOnNumberLimit)) {
17
+ if (this.filter(item, index, this.collection)) {
18
+ chunkA = chunkA.append([item]);
19
+ }
20
+ else {
21
+ chunkB = chunkB.append([item]);
22
+ }
23
+ }
24
+ yield chunkA;
25
+ yield chunkB;
26
+ }
27
+ catch (error) {
28
+ if (error instanceof CollectionError ||
29
+ error instanceof TypeError) {
30
+ throw error;
31
+ }
32
+ throw new UnexpectedCollectionError(`Unexpected error "${String(error)}" occured`, error);
33
+ }
34
+ }
35
+ }
36
+ //# sourceMappingURL=partion-iterable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"partion-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/iterable-helpers/partion-iterable.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EAGf,yBAAyB,GAC5B,MAAM,gCAAgC,CAAC;AAExC,MAAM,OAAO,eAAe;IAEZ;IACA;IACA;IACA;IAJZ,YACY,UAA+B,EAC/B,MAA2C,EAC3C,kBAA2B,EAC3B,cAEgB;QALhB,eAAU,GAAV,UAAU,CAAqB;QAC/B,WAAM,GAAN,MAAM,CAAqC;QAC3C,uBAAkB,GAAlB,kBAAkB,CAAS;QAC3B,mBAAc,GAAd,cAAc,CAEE;IACzB,CAAC;IAEJ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QACd,IAAI,CAAC;YACD,IAAI,MAAM,GAAwB,IAAI,CAAC,cAAc,CAAS,EAAE,CAAC,EAC7D,MAAM,GAAwB,IAAI,CAAC,cAAc,CAAS,EAAE,CAAC,CAAC;YAClE,KAAK,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,OAAO,CAC/C,IAAI,CAAC,kBAAkB,CAC1B,EAAE,CAAC;gBACA,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;oBAC5C,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;gBACnC,CAAC;qBAAM,CAAC;oBACJ,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;gBACnC,CAAC;YACL,CAAC;YACD,MAAM,MAAM,CAAC;YACb,MAAM,MAAM,CAAC;QACjB,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACtB,IACI,KAAK,YAAY,eAAe;gBAChC,KAAK,YAAY,SAAS,EAC5B,CAAC;gBACC,MAAM,KAAK,CAAC;YAChB,CAAC;YACD,MAAM,IAAI,yBAAyB,CAC/B,qBAAqB,MAAM,CAAC,KAAK,CAAC,WAAW,EAC7C,KAAK,CACR,CAAC;QACN,CAAC;IACL,CAAC;CACJ"}
@@ -0,0 +1,28 @@
1
+ import { CollectionError, UnexpectedCollectionError, } from "../../../contracts/collection/_module";
2
+ export class RepeatIterable {
3
+ collection;
4
+ amount;
5
+ makeCollection;
6
+ constructor(collection, amount, makeCollection) {
7
+ this.collection = collection;
8
+ this.amount = amount;
9
+ this.makeCollection = makeCollection;
10
+ }
11
+ *[Symbol.iterator]() {
12
+ try {
13
+ let collection = this.makeCollection([]);
14
+ for (let index = 0; index < this.amount - 1; index++) {
15
+ collection = collection.append(this.collection);
16
+ }
17
+ yield* collection;
18
+ }
19
+ catch (error) {
20
+ if (error instanceof CollectionError ||
21
+ error instanceof TypeError) {
22
+ throw error;
23
+ }
24
+ throw new UnexpectedCollectionError(`Unexpected error "${String(error)}" occured`, error);
25
+ }
26
+ }
27
+ }
28
+ //# sourceMappingURL=repeat-iterable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"repeat-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/iterable-helpers/repeat-iterable.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EACf,yBAAyB,GAE5B,MAAM,gCAAgC,CAAC;AAExC,MAAM,OAAO,cAAc;IAEX;IACA;IACA;IAHZ,YACY,UAA+B,EAC/B,MAAc,EACd,cAEgB;QAJhB,eAAU,GAAV,UAAU,CAAqB;QAC/B,WAAM,GAAN,MAAM,CAAQ;QACd,mBAAc,GAAd,cAAc,CAEE;IACzB,CAAC;IAEJ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QACd,IAAI,CAAC;YACD,IAAI,UAAU,GAAG,IAAI,CAAC,cAAc,CAAS,EAAE,CAAC,CAAC;YACjD,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC;gBACnD,UAAU,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YACpD,CAAC;YACD,KAAK,CAAC,CAAC,UAAU,CAAC;QACtB,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACtB,IACI,KAAK,YAAY,eAAe;gBAChC,KAAK,YAAY,SAAS,EAC5B,CAAC;gBACC,MAAM,KAAK,CAAC;YAChB,CAAC;YACD,MAAM,IAAI,yBAAyB,CAC/B,qBAAqB,MAAM,CAAC,KAAK,CAAC,WAAW,EAC7C,KAAK,CACR,CAAC;QACN,CAAC;IACL,CAAC;CACJ"}
@@ -0,0 +1,34 @@
1
+ import { CollectionError, UnexpectedCollectionError, } from "../../../contracts/collection/_module";
2
+ export class ReverseIterable {
3
+ collection;
4
+ chunkSize;
5
+ throwOnNumberLimit;
6
+ makeCollection;
7
+ constructor(collection, chunkSize, throwOnNumberLimit, makeCollection) {
8
+ this.collection = collection;
9
+ this.chunkSize = chunkSize;
10
+ this.throwOnNumberLimit = throwOnNumberLimit;
11
+ this.makeCollection = makeCollection;
12
+ }
13
+ *[Symbol.iterator]() {
14
+ try {
15
+ const collection = this.makeCollection([]);
16
+ yield* this.collection
17
+ .chunk(this.chunkSize)
18
+ .map((item) => this.makeCollection([...item].reverse()), this.throwOnNumberLimit)
19
+ .reduce({
20
+ reduceFn: (collection, item) => collection.prepend(item),
21
+ initialValue: collection,
22
+ throwOnNumberLimit: this.throwOnNumberLimit,
23
+ });
24
+ }
25
+ catch (error) {
26
+ if (error instanceof CollectionError ||
27
+ error instanceof TypeError) {
28
+ throw error;
29
+ }
30
+ throw new UnexpectedCollectionError(`Unexpected error "${String(error)}" occured`, error);
31
+ }
32
+ }
33
+ }
34
+ //# sourceMappingURL=reverse-iterable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reverse-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/iterable-helpers/reverse-iterable.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EACf,yBAAyB,GAE5B,MAAM,gCAAgC,CAAC;AAExC,MAAM,OAAO,eAAe;IAEZ;IACA;IACA;IACA;IAJZ,YACY,UAA+B,EAC/B,SAAiB,EACjB,kBAA2B,EAC3B,cAEgB;QALhB,eAAU,GAAV,UAAU,CAAqB;QAC/B,cAAS,GAAT,SAAS,CAAQ;QACjB,uBAAkB,GAAlB,kBAAkB,CAAS;QAC3B,mBAAc,GAAd,cAAc,CAEE;IACzB,CAAC;IAEJ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QACd,IAAI,CAAC;YACD,MAAM,UAAU,GAAwB,IAAI,CAAC,cAAc,CACvD,EAAE,CACL,CAAC;YACF,KAAK,CAAC,CAAC,IAAI,CAAC,UAAU;iBACjB,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC;iBACrB,GAAG,CACA,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,cAAc,CAAS,CAAC,GAAG,IAAI,CAAC,CAAC,OAAO,EAAE,CAAC,EAC1D,IAAI,CAAC,kBAAkB,CAC1B;iBACA,MAAM,CAAC;gBACJ,QAAQ,EAAE,CAAC,UAAU,EAAE,IAAI,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC;gBACxD,YAAY,EAAE,UAAU;gBACxB,kBAAkB,EAAE,IAAI,CAAC,kBAAkB;aAC9C,CAAC,CAAC;QACX,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACtB,IACI,KAAK,YAAY,eAAe;gBAChC,KAAK,YAAY,SAAS,EAC5B,CAAC;gBACC,MAAM,KAAK,CAAC;YAChB,CAAC;YACD,MAAM,IAAI,yBAAyB,CAC/B,qBAAqB,MAAM,CAAC,KAAK,CAAC,WAAW,EAC7C,KAAK,CACR,CAAC;QACN,CAAC;IACL,CAAC;CACJ"}
@@ -0,0 +1,31 @@
1
+ import { CollectionError, UnexpectedCollectionError, } from "../../../contracts/collection/_shared";
2
+ export class ShuffleIterable {
3
+ iterable;
4
+ constructor(iterable) {
5
+ this.iterable = iterable;
6
+ }
7
+ *[Symbol.iterator]() {
8
+ try {
9
+ const newArray = [...this.iterable];
10
+ for (let i = newArray.length - 1; i > 0; i--) {
11
+ const j = Math.floor(Math.random() * (i + 1));
12
+ const temp = newArray[i];
13
+ if (newArray[j] !== undefined) {
14
+ newArray[i] = newArray[j];
15
+ }
16
+ if (temp !== undefined) {
17
+ newArray[j] = temp;
18
+ }
19
+ }
20
+ yield* newArray;
21
+ }
22
+ catch (error) {
23
+ if (error instanceof CollectionError ||
24
+ error instanceof TypeError) {
25
+ throw error;
26
+ }
27
+ throw new UnexpectedCollectionError(`Unexpected error "${String(error)}" occured`, error);
28
+ }
29
+ }
30
+ }
31
+ //# sourceMappingURL=shuffle-iterable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shuffle-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/iterable-helpers/shuffle-iterable.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EACf,yBAAyB,GAC5B,MAAM,gCAAgC,CAAC;AAExC,MAAM,OAAO,eAAe;IACJ;IAApB,YAAoB,QAA0B;QAA1B,aAAQ,GAAR,QAAQ,CAAkB;IAAG,CAAC;IAElD,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QACd,IAAI,CAAC;YACD,MAAM,QAAQ,GAAG,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC;YACpC,KAAK,IAAI,CAAC,GAAG,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;gBAC3C,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;gBAC9C,MAAM,IAAI,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;gBACzB,IAAI,QAAQ,CAAC,CAAC,CAAC,KAAK,SAAS,EAAE,CAAC;oBAC5B,QAAQ,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;gBAC9B,CAAC;gBACD,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;oBACrB,QAAQ,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;gBACvB,CAAC;YACL,CAAC;YACD,KAAK,CAAC,CAAC,QAAQ,CAAC;QACpB,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACtB,IACI,KAAK,YAAY,eAAe;gBAChC,KAAK,YAAY,SAAS,EAC5B,CAAC;gBACC,MAAM,KAAK,CAAC;YAChB,CAAC;YACD,MAAM,IAAI,yBAAyB,CAC/B,qBAAqB,MAAM,CAAC,KAAK,CAAC,WAAW,EAC7C,KAAK,CACR,CAAC;QACN,CAAC;IACL,CAAC;CACJ"}
@@ -0,0 +1,28 @@
1
+ import { CollectionError, UnexpectedCollectionError, } from "../../../contracts/collection/_module";
2
+ export class SkipIterable {
3
+ collection;
4
+ offset;
5
+ throwOnNumberLimit;
6
+ constructor(collection, offset, throwOnNumberLimit) {
7
+ this.collection = collection;
8
+ this.offset = offset;
9
+ this.throwOnNumberLimit = throwOnNumberLimit;
10
+ }
11
+ *[Symbol.iterator]() {
12
+ try {
13
+ if (this.offset < 0) {
14
+ this.offset =
15
+ this.collection.size(this.throwOnNumberLimit) + this.offset;
16
+ }
17
+ yield* this.collection.skipWhile((_item, index) => index < this.offset, this.throwOnNumberLimit);
18
+ }
19
+ catch (error) {
20
+ if (error instanceof CollectionError ||
21
+ error instanceof TypeError) {
22
+ throw error;
23
+ }
24
+ throw new UnexpectedCollectionError(`Unexpected error "${String(error)}" occured`, error);
25
+ }
26
+ }
27
+ }
28
+ //# sourceMappingURL=skip-iterable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skip-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/iterable-helpers/skip-iterable.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EAEf,yBAAyB,GAC5B,MAAM,gCAAgC,CAAC;AAExC,MAAM,OAAO,YAAY;IAET;IACA;IACA;IAHZ,YACY,UAA+B,EAC/B,MAAc,EACd,kBAA2B;QAF3B,eAAU,GAAV,UAAU,CAAqB;QAC/B,WAAM,GAAN,MAAM,CAAQ;QACd,uBAAkB,GAAlB,kBAAkB,CAAS;IACpC,CAAC;IAEJ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QACd,IAAI,CAAC;YACD,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAClB,IAAI,CAAC,MAAM;oBACP,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC;YACpE,CAAC;YACD,KAAK,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAC5B,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,GAAG,IAAI,CAAC,MAAM,EACrC,IAAI,CAAC,kBAAkB,CAC1B,CAAC;QACN,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACtB,IACI,KAAK,YAAY,eAAe;gBAChC,KAAK,YAAY,SAAS,EAC5B,CAAC;gBACC,MAAM,KAAK,CAAC;YAChB,CAAC;YACD,MAAM,IAAI,yBAAyB,CAC/B,qBAAqB,MAAM,CAAC,KAAK,CAAC,WAAW,EAC7C,KAAK,CACR,CAAC;QACN,CAAC;IACL,CAAC;CACJ"}
@@ -0,0 +1,32 @@
1
+ import { CollectionError, UnexpectedCollectionError, } from "../../../contracts/collection/_module";
2
+ export class SkipUntilIterable {
3
+ collection;
4
+ filter;
5
+ throwOnNumberLimit;
6
+ constructor(collection, filter, throwOnNumberLimit) {
7
+ this.collection = collection;
8
+ this.filter = filter;
9
+ this.throwOnNumberLimit = throwOnNumberLimit;
10
+ }
11
+ *[Symbol.iterator]() {
12
+ try {
13
+ let hasMatched = false;
14
+ for (const [index, item] of this.collection.entries(this.throwOnNumberLimit)) {
15
+ if (!hasMatched) {
16
+ hasMatched = this.filter(item, index, this.collection);
17
+ }
18
+ if (hasMatched) {
19
+ yield item;
20
+ }
21
+ }
22
+ }
23
+ catch (error) {
24
+ if (error instanceof CollectionError ||
25
+ error instanceof TypeError) {
26
+ throw error;
27
+ }
28
+ throw new UnexpectedCollectionError(`Unexpected error "${String(error)}" occured`, error);
29
+ }
30
+ }
31
+ }
32
+ //# sourceMappingURL=skip-until-iterable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skip-until-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/iterable-helpers/skip-until-iterable.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EAGf,yBAAyB,GAC5B,MAAM,gCAAgC,CAAC;AAExC,MAAM,OAAO,iBAAiB;IAEd;IACA;IACA;IAHZ,YACY,UAA+B,EAC/B,MAA2C,EAC3C,kBAA2B;QAF3B,eAAU,GAAV,UAAU,CAAqB;QAC/B,WAAM,GAAN,MAAM,CAAqC;QAC3C,uBAAkB,GAAlB,kBAAkB,CAAS;IACpC,CAAC;IAEJ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QACd,IAAI,CAAC;YACD,IAAI,UAAU,GAAG,KAAK,CAAC;YACvB,KAAK,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,OAAO,CAC/C,IAAI,CAAC,kBAAkB,CAC1B,EAAE,CAAC;gBACA,IAAI,CAAC,UAAU,EAAE,CAAC;oBACd,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;gBAC3D,CAAC;gBACD,IAAI,UAAU,EAAE,CAAC;oBACb,MAAM,IAAI,CAAC;gBACf,CAAC;YACL,CAAC;QACL,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACtB,IACI,KAAK,YAAY,eAAe;gBAChC,KAAK,YAAY,SAAS,EAC5B,CAAC;gBACC,MAAM,KAAK,CAAC;YAChB,CAAC;YACD,MAAM,IAAI,yBAAyB,CAC/B,qBAAqB,MAAM,CAAC,KAAK,CAAC,WAAW,EAC7C,KAAK,CACR,CAAC;QACN,CAAC;IACL,CAAC;CACJ"}
@@ -0,0 +1,42 @@
1
+ import { CollectionError, UnexpectedCollectionError, } from "../../../contracts/collection/_module";
2
+ export class SliceIterable {
3
+ collection;
4
+ start;
5
+ end;
6
+ throwOnNumberLimit;
7
+ constructor(collection, start, end, throwOnNumberLimit) {
8
+ this.collection = collection;
9
+ this.start = start;
10
+ this.end = end;
11
+ this.throwOnNumberLimit = throwOnNumberLimit;
12
+ }
13
+ *[Symbol.iterator]() {
14
+ try {
15
+ const size = this.collection.size();
16
+ let { start, end } = this;
17
+ if (start === undefined) {
18
+ start = 0;
19
+ }
20
+ if (end === undefined) {
21
+ end = size;
22
+ }
23
+ if (start < 0) {
24
+ start = size + start;
25
+ }
26
+ if (end < 0) {
27
+ end = size + end;
28
+ }
29
+ yield* this.collection.filter((_item, index) => {
30
+ return start <= index && index < end;
31
+ }, this.throwOnNumberLimit);
32
+ }
33
+ catch (error) {
34
+ if (error instanceof CollectionError ||
35
+ error instanceof TypeError) {
36
+ throw error;
37
+ }
38
+ throw new UnexpectedCollectionError(`Unexpected error "${String(error)}" occured`, error);
39
+ }
40
+ }
41
+ }
42
+ //# sourceMappingURL=slice-iterable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slice-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/iterable-helpers/slice-iterable.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EACf,yBAAyB,GAE5B,MAAM,gCAAgC,CAAC;AAExC,MAAM,OAAO,aAAa;IAEV;IACA;IACA;IACA;IAJZ,YACY,UAA+B,EAC/B,KAAyB,EACzB,GAAuB,EACvB,kBAA2B;QAH3B,eAAU,GAAV,UAAU,CAAqB;QAC/B,UAAK,GAAL,KAAK,CAAoB;QACzB,QAAG,GAAH,GAAG,CAAoB;QACvB,uBAAkB,GAAlB,kBAAkB,CAAS;IACpC,CAAC;IAEJ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QACd,IAAI,CAAC;YACD,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;YACpC,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;YAC1B,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;gBACtB,KAAK,GAAG,CAAC,CAAC;YACd,CAAC;YACD,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;gBACpB,GAAG,GAAG,IAAI,CAAC;YACf,CAAC;YACD,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC;gBACZ,KAAK,GAAG,IAAI,GAAG,KAAK,CAAC;YACzB,CAAC;YACD,IAAI,GAAG,GAAG,CAAC,EAAE,CAAC;gBACV,GAAG,GAAG,IAAI,GAAG,GAAG,CAAC;YACrB,CAAC;YACD,KAAK,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;gBAC3C,OAAO,KAAK,IAAI,KAAK,IAAI,KAAK,GAAG,GAAG,CAAC;YACzC,CAAC,EAAE,IAAI,CAAC,kBAAkB,CAAC,CAAC;QAChC,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACtB,IACI,KAAK,YAAY,eAAe;gBAChC,KAAK,YAAY,SAAS,EAC5B,CAAC;gBACC,MAAM,KAAK,CAAC;YAChB,CAAC;YACD,MAAM,IAAI,yBAAyB,CAC/B,qBAAqB,MAAM,CAAC,KAAK,CAAC,WAAW,EAC7C,KAAK,CACR,CAAC;QACN,CAAC;IACL,CAAC;CACJ"}
@@ -0,0 +1,41 @@
1
+ import { CollectionError, UnexpectedCollectionError, } from "../../../contracts/collection/_module";
2
+ export class SlidingIteralbe {
3
+ collection;
4
+ chunkSize;
5
+ step;
6
+ throwOnNumberLimit;
7
+ constructor(collection, chunkSize, step, throwOnNumberLimit) {
8
+ this.collection = collection;
9
+ this.chunkSize = chunkSize;
10
+ this.step = step;
11
+ this.throwOnNumberLimit = throwOnNumberLimit;
12
+ }
13
+ *[Symbol.iterator]() {
14
+ try {
15
+ if (this.step <= 0) {
16
+ return;
17
+ }
18
+ const size = this.collection.size(this.throwOnNumberLimit);
19
+ for (let index = 0; index < size; index += this.step) {
20
+ const start = index;
21
+ const end = index + this.chunkSize;
22
+ yield this.collection.slice({
23
+ start,
24
+ end,
25
+ throwOnNumberLimit: this.throwOnNumberLimit,
26
+ });
27
+ if (end >= size) {
28
+ break;
29
+ }
30
+ }
31
+ }
32
+ catch (error) {
33
+ if (error instanceof CollectionError ||
34
+ error instanceof TypeError) {
35
+ throw error;
36
+ }
37
+ throw new UnexpectedCollectionError(`Unexpected error "${String(error)}" occured`, error);
38
+ }
39
+ }
40
+ }
41
+ //# sourceMappingURL=sliding-iterable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sliding-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/iterable-helpers/sliding-iterable.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EAEf,yBAAyB,GAC5B,MAAM,gCAAgC,CAAC;AAExC,MAAM,OAAO,eAAe;IAEZ;IACA;IACA;IACA;IAJZ,YACY,UAA+B,EAC/B,SAAiB,EACjB,IAAY,EACZ,kBAA2B;QAH3B,eAAU,GAAV,UAAU,CAAqB;QAC/B,cAAS,GAAT,SAAS,CAAQ;QACjB,SAAI,GAAJ,IAAI,CAAQ;QACZ,uBAAkB,GAAlB,kBAAkB,CAAS;IACpC,CAAC;IAEJ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QACd,IAAI,CAAC;YACD,IAAI,IAAI,CAAC,IAAI,IAAI,CAAC,EAAE,CAAC;gBACjB,OAAO;YACX,CAAC;YACD,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;YAE3D,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,IAAI,EAAE,KAAK,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;gBACnD,MAAM,KAAK,GAAG,KAAK,CAAC;gBACpB,MAAM,GAAG,GAAG,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC;gBAEnC,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;oBACxB,KAAK;oBACL,GAAG;oBACH,kBAAkB,EAAE,IAAI,CAAC,kBAAkB;iBAC9C,CAAC,CAAC;gBAEH,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;oBACd,MAAM;gBACV,CAAC;YACL,CAAC;QACL,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACtB,IACI,KAAK,YAAY,eAAe;gBAChC,KAAK,YAAY,SAAS,EAC5B,CAAC;gBACC,MAAM,KAAK,CAAC;YAChB,CAAC;YACD,MAAM,IAAI,yBAAyB,CAC/B,qBAAqB,MAAM,CAAC,KAAK,CAAC,WAAW,EAC7C,KAAK,CACR,CAAC;QACN,CAAC;IACL,CAAC;CACJ"}
@@ -0,0 +1,22 @@
1
+ import { CollectionError, UnexpectedCollectionError, } from "../../../contracts/collection/_module";
2
+ export class SortIterable {
3
+ iterable;
4
+ compare;
5
+ constructor(iterable, compare) {
6
+ this.iterable = iterable;
7
+ this.compare = compare;
8
+ }
9
+ *[Symbol.iterator]() {
10
+ try {
11
+ yield* [...this.iterable].sort(this.compare);
12
+ }
13
+ catch (error) {
14
+ if (error instanceof CollectionError ||
15
+ error instanceof TypeError) {
16
+ throw error;
17
+ }
18
+ throw new UnexpectedCollectionError(`Unexpected error "${String(error)}" occured`, error);
19
+ }
20
+ }
21
+ }
22
+ //# sourceMappingURL=sort-iterable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sort-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/iterable-helpers/sort-iterable.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EACf,yBAAyB,GAE5B,MAAM,gCAAgC,CAAC;AAExC,MAAM,OAAO,YAAY;IAET;IACA;IAFZ,YACY,QAA0B,EAC1B,OAA4B;QAD5B,aAAQ,GAAR,QAAQ,CAAkB;QAC1B,YAAO,GAAP,OAAO,CAAqB;IACrC,CAAC;IAEJ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QACd,IAAI,CAAC;YACD,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACjD,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACtB,IACI,KAAK,YAAY,eAAe;gBAChC,KAAK,YAAY,SAAS,EAC5B,CAAC;gBACC,MAAM,KAAK,CAAC;YAChB,CAAC;YACD,MAAM,IAAI,yBAAyB,CAC/B,qBAAqB,MAAM,CAAC,KAAK,CAAC,WAAW,EAC7C,KAAK,CACR,CAAC;QACN,CAAC;IACL,CAAC;CACJ"}
@@ -0,0 +1,45 @@
1
+ import { CollectionError, UnexpectedCollectionError, } from "../../../contracts/collection/_module";
2
+ export class SplitIterable {
3
+ collection;
4
+ chunkAmount;
5
+ throwOnNumberLimit;
6
+ makeCollection;
7
+ constructor(collection, chunkAmount, throwOnNumberLimit, makeCollection) {
8
+ this.collection = collection;
9
+ this.chunkAmount = chunkAmount;
10
+ this.throwOnNumberLimit = throwOnNumberLimit;
11
+ this.makeCollection = makeCollection;
12
+ }
13
+ *[Symbol.iterator]() {
14
+ try {
15
+ const size = this.collection.size(this.throwOnNumberLimit), minChunkSize = Math.floor(size / this.chunkAmount), restSize = size % this.chunkAmount, chunkSizes = Array.from({
16
+ length: this.chunkAmount,
17
+ }).fill(minChunkSize);
18
+ for (let i = 1; i <= restSize; i++) {
19
+ const chunkIndex = (i - 1) % this.chunkAmount;
20
+ if (chunkSizes[chunkIndex]) {
21
+ chunkSizes[chunkIndex] = chunkSizes[chunkIndex] + 1;
22
+ }
23
+ }
24
+ const iterator = this.collection.iterator();
25
+ for (const chunkSize of chunkSizes) {
26
+ let collection = this.makeCollection([]);
27
+ for (let i = 0; i < chunkSize; i++) {
28
+ const item = iterator.next();
29
+ if (item.value !== undefined) {
30
+ collection = collection.append([item.value]);
31
+ }
32
+ }
33
+ yield collection;
34
+ }
35
+ }
36
+ catch (error) {
37
+ if (error instanceof CollectionError ||
38
+ error instanceof TypeError) {
39
+ throw error;
40
+ }
41
+ throw new UnexpectedCollectionError(`Unexpected error "${String(error)}" occured`, error);
42
+ }
43
+ }
44
+ }
45
+ //# sourceMappingURL=split-iterable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"split-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/iterable-helpers/split-iterable.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EAEf,yBAAyB,GAC5B,MAAM,gCAAgC,CAAC;AAExC,MAAM,OAAO,aAAa;IAEV;IACA;IACA;IACA;IAJZ,YACY,UAA+B,EAC/B,WAAmB,EACnB,kBAA2B,EAC3B,cAEgB;QALhB,eAAU,GAAV,UAAU,CAAqB;QAC/B,gBAAW,GAAX,WAAW,CAAQ;QACnB,uBAAkB,GAAlB,kBAAkB,CAAS;QAC3B,mBAAc,GAAd,cAAc,CAEE;IACzB,CAAC;IAEJ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QACd,IAAI,CAAC;YACD,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC,EACtD,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,EAClD,QAAQ,GAAG,IAAI,GAAG,IAAI,CAAC,WAAW,EAClC,UAAU,GAAG,KAAK,CAAC,IAAI,CAAS;gBAC5B,MAAM,EAAE,IAAI,CAAC,WAAW;aAC3B,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;YAE1B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,QAAQ,EAAE,CAAC,EAAE,EAAE,CAAC;gBACjC,MAAM,UAAU,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;gBAC9C,IAAI,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC;oBACzB,UAAU,CAAC,UAAU,CAAC,GAAG,UAAU,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;gBACxD,CAAC;YACL,CAAC;YAED,MAAM,QAAQ,GAAG,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;YAC5C,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;gBACjC,IAAI,UAAU,GACV,IAAI,CAAC,cAAc,CAAS,EAAE,CAAC,CAAC;gBACpC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,EAAE,CAAC,EAAE,EAAE,CAAC;oBACjC,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC;oBAC7B,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;wBAC3B,UAAU,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;oBACjD,CAAC;gBACL,CAAC;gBACD,MAAM,UAAU,CAAC;YACrB,CAAC;QACL,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACtB,IACI,KAAK,YAAY,eAAe;gBAChC,KAAK,YAAY,SAAS,EAC5B,CAAC;gBACC,MAAM,KAAK,CAAC;YAChB,CAAC;YACD,MAAM,IAAI,yBAAyB,CAC/B,qBAAqB,MAAM,CAAC,KAAK,CAAC,WAAW,EAC7C,KAAK,CACR,CAAC;QACN,CAAC;IACL,CAAC;CACJ"}
@@ -0,0 +1,28 @@
1
+ import { CollectionError, UnexpectedCollectionError, } from "../../../contracts/collection/_module";
2
+ export class TakeIterable {
3
+ collection;
4
+ limit;
5
+ throwOnNumberLimit;
6
+ constructor(collection, limit, throwOnNumberLimit) {
7
+ this.collection = collection;
8
+ this.limit = limit;
9
+ this.throwOnNumberLimit = throwOnNumberLimit;
10
+ }
11
+ *[Symbol.iterator]() {
12
+ try {
13
+ if (this.limit < 0) {
14
+ this.limit =
15
+ this.collection.size(this.throwOnNumberLimit) + this.limit;
16
+ }
17
+ yield* this.collection.takeWhile((_item, index) => index < this.limit, this.throwOnNumberLimit);
18
+ }
19
+ catch (error) {
20
+ if (error instanceof CollectionError ||
21
+ error instanceof TypeError) {
22
+ throw error;
23
+ }
24
+ throw new UnexpectedCollectionError(`Unexpected error "${String(error)}" occured`, error);
25
+ }
26
+ }
27
+ }
28
+ //# sourceMappingURL=take-iterable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"take-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/iterable-helpers/take-iterable.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EAEf,yBAAyB,GAC5B,MAAM,gCAAgC,CAAC;AAExC,MAAM,OAAO,YAAY;IAET;IACA;IACA;IAHZ,YACY,UAA+B,EAC/B,KAAa,EACb,kBAA2B;QAF3B,eAAU,GAAV,UAAU,CAAqB;QAC/B,UAAK,GAAL,KAAK,CAAQ;QACb,uBAAkB,GAAlB,kBAAkB,CAAS;IACpC,CAAC;IAEJ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QACd,IAAI,CAAC;YACD,IAAI,IAAI,CAAC,KAAK,GAAG,CAAC,EAAE,CAAC;gBACjB,IAAI,CAAC,KAAK;oBACN,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC;YACnE,CAAC;YACD,KAAK,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,SAAS,CAC5B,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,EACpC,IAAI,CAAC,kBAAkB,CAC1B,CAAC;QACN,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACtB,IACI,KAAK,YAAY,eAAe;gBAChC,KAAK,YAAY,SAAS,EAC5B,CAAC;gBACC,MAAM,KAAK,CAAC;YAChB,CAAC;YACD,MAAM,IAAI,yBAAyB,CAC/B,qBAAqB,MAAM,CAAC,KAAK,CAAC,WAAW,EAC7C,KAAK,CACR,CAAC;QACN,CAAC;IACL,CAAC;CACJ"}
@@ -0,0 +1,29 @@
1
+ import { CollectionError, UnexpectedCollectionError, } from "../../../contracts/collection/_module";
2
+ export class TakeUntilIterable {
3
+ collection;
4
+ filter;
5
+ throwOnNumberLimit;
6
+ constructor(collection, filter, throwOnNumberLimit) {
7
+ this.collection = collection;
8
+ this.filter = filter;
9
+ this.throwOnNumberLimit = throwOnNumberLimit;
10
+ }
11
+ *[Symbol.iterator]() {
12
+ try {
13
+ for (const [index, item] of this.collection.entries(this.throwOnNumberLimit)) {
14
+ if (this.filter(item, index, this.collection)) {
15
+ break;
16
+ }
17
+ yield item;
18
+ }
19
+ }
20
+ catch (error) {
21
+ if (error instanceof CollectionError ||
22
+ error instanceof TypeError) {
23
+ throw error;
24
+ }
25
+ throw new UnexpectedCollectionError(`Unexpected error "${String(error)}" occured`, error);
26
+ }
27
+ }
28
+ }
29
+ //# sourceMappingURL=take-until-iterable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"take-until-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/iterable-helpers/take-until-iterable.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EAGf,yBAAyB,GAC5B,MAAM,gCAAgC,CAAC;AAExC,MAAM,OAAO,iBAAiB;IAEd;IACA;IACA;IAHZ,YACY,UAA+B,EAC/B,MAA2C,EAC3C,kBAA2B;QAF3B,eAAU,GAAV,UAAU,CAAqB;QAC/B,WAAM,GAAN,MAAM,CAAqC;QAC3C,uBAAkB,GAAlB,kBAAkB,CAAS;IACpC,CAAC;IAEJ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QACd,IAAI,CAAC;YACD,KAAK,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,OAAO,CAC/C,IAAI,CAAC,kBAAkB,CAC1B,EAAE,CAAC;gBACA,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;oBAC5C,MAAM;gBACV,CAAC;gBACD,MAAM,IAAI,CAAC;YACf,CAAC;QACL,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACtB,IACI,KAAK,YAAY,eAAe;gBAChC,KAAK,YAAY,SAAS,EAC5B,CAAC;gBACC,MAAM,KAAK,CAAC;YAChB,CAAC;YACD,MAAM,IAAI,yBAAyB,CAC/B,qBAAqB,MAAM,CAAC,KAAK,CAAC,WAAW,EAC7C,KAAK,CACR,CAAC;QACN,CAAC;IACL,CAAC;CACJ"}
@@ -0,0 +1,23 @@
1
+ import { CollectionError, UnexpectedCollectionError, } from "../../../contracts/collection/_module";
2
+ export class TapIterable {
3
+ collection;
4
+ callback;
5
+ constructor(collection, callback) {
6
+ this.collection = collection;
7
+ this.callback = callback;
8
+ }
9
+ *[Symbol.iterator]() {
10
+ try {
11
+ this.callback(this.collection);
12
+ yield* this.collection;
13
+ }
14
+ catch (error) {
15
+ if (error instanceof CollectionError ||
16
+ error instanceof TypeError) {
17
+ throw error;
18
+ }
19
+ throw new UnexpectedCollectionError(`Unexpected error "${String(error)}" occured`, error);
20
+ }
21
+ }
22
+ }
23
+ //# sourceMappingURL=tap-iterable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tap-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/iterable-helpers/tap-iterable.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EAGf,yBAAyB,GAC5B,MAAM,gCAAgC,CAAC;AAExC,MAAM,OAAO,WAAW;IAER;IACA;IAFZ,YACY,UAA+B,EAC/B,QAAkC;QADlC,eAAU,GAAV,UAAU,CAAqB;QAC/B,aAAQ,GAAR,QAAQ,CAA0B;IAC3C,CAAC;IAEJ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QACd,IAAI,CAAC;YACD,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YAC/B,KAAK,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;QAC3B,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACtB,IACI,KAAK,YAAY,eAAe;gBAChC,KAAK,YAAY,SAAS,EAC5B,CAAC;gBACC,MAAM,KAAK,CAAC;YAChB,CAAC;YACD,MAAM,IAAI,yBAAyB,CAC/B,qBAAqB,MAAM,CAAC,KAAK,CAAC,WAAW,EAC7C,KAAK,CACR,CAAC;QACN,CAAC;IACL,CAAC;CACJ"}
@@ -0,0 +1,31 @@
1
+ import { CollectionError, UnexpectedCollectionError, } from "../../../contracts/collection/_module";
2
+ export class UniqueIterable {
3
+ collection;
4
+ callback;
5
+ throwOnNumberLimit;
6
+ constructor(collection, callback = (item) => item, throwOnNumberLimit) {
7
+ this.collection = collection;
8
+ this.callback = callback;
9
+ this.throwOnNumberLimit = throwOnNumberLimit;
10
+ }
11
+ *[Symbol.iterator]() {
12
+ try {
13
+ const set = new Set([]);
14
+ for (const [index, item] of this.collection.entries(this.throwOnNumberLimit)) {
15
+ const item_ = this.callback(item, index, this.collection);
16
+ if (!set.has(item_)) {
17
+ yield item;
18
+ }
19
+ set.add(item_);
20
+ }
21
+ }
22
+ catch (error) {
23
+ if (error instanceof CollectionError ||
24
+ error instanceof TypeError) {
25
+ throw error;
26
+ }
27
+ throw new UnexpectedCollectionError(`Unexpected error "${String(error)}" occured`, error);
28
+ }
29
+ }
30
+ }
31
+ //# sourceMappingURL=unique-iterable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unique-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/iterable-helpers/unique-iterable.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EAGf,yBAAyB,GAC5B,MAAM,gCAAgC,CAAC;AAExC,MAAM,OAAO,cAAc;IAEX;IACA;IAGA;IALZ,YACY,UAA+B,EAC/B,WAAsD,CAAC,IAAI,EAAE,EAAE,CAEnE,IAAW,EACP,kBAA2B;QAJ3B,eAAU,GAAV,UAAU,CAAqB;QAC/B,aAAQ,GAAR,QAAQ,CAED;QACP,uBAAkB,GAAlB,kBAAkB,CAAS;IACpC,CAAC;IAEJ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QACd,IAAI,CAAC;YACD,MAAM,GAAG,GAAG,IAAI,GAAG,CAAU,EAAE,CAAC,CAAC;YAEjC,KAAK,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,OAAO,CAC/C,IAAI,CAAC,kBAAkB,CAC1B,EAAE,CAAC;gBACA,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;gBAC1D,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;oBAClB,MAAM,IAAI,CAAC;gBACf,CAAC;gBACD,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YACnB,CAAC;QACL,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACtB,IACI,KAAK,YAAY,eAAe;gBAChC,KAAK,YAAY,SAAS,EAC5B,CAAC;gBACC,MAAM,KAAK,CAAC;YAChB,CAAC;YACD,MAAM,IAAI,yBAAyB,CAC/B,qBAAqB,MAAM,CAAC,KAAK,CAAC,WAAW,EAC7C,KAAK,CACR,CAAC;QACN,CAAC;IACL,CAAC;CACJ"}