@daiso-tech/core 0.1.4 → 0.2.0
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.
- package/README.md +1 -1
- package/dist/cjs/_shared/utilities.js +19 -0
- package/dist/cjs/_shared/utilities.js.map +1 -0
- package/dist/cjs/collection/_shared.js +4 -2
- package/dist/cjs/collection/_shared.js.map +1 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/_module.js +1 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/_module.js.map +1 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-chunk-iterable.js +8 -7
- package/dist/cjs/collection/async-iterable-collection/_shared/async-chunk-iterable.js.map +1 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/{async-chunk-whilte-iterable.js → async-chunk-while-iterable.js} +14 -16
- package/dist/cjs/collection/async-iterable-collection/_shared/async-chunk-while-iterable.js.map +1 -0
- package/dist/cjs/collection/async-iterable-collection/_shared/async-collapse-iterable.js +1 -2
- package/dist/cjs/collection/async-iterable-collection/_shared/async-collapse-iterable.js.map +1 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-count-by-iterable.js +3 -6
- package/dist/cjs/collection/async-iterable-collection/_shared/async-count-by-iterable.js.map +1 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-cross-join-iterable.js +19 -18
- package/dist/cjs/collection/async-iterable-collection/_shared/async-cross-join-iterable.js.map +1 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-entries-iterable.js +1 -8
- package/dist/cjs/collection/async-iterable-collection/_shared/async-entries-iterable.js.map +1 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-filter-iterable.js +6 -9
- package/dist/cjs/collection/async-iterable-collection/_shared/async-filter-iterable.js.map +1 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-flat-map-iterable.js +3 -6
- package/dist/cjs/collection/async-iterable-collection/_shared/async-flat-map-iterable.js.map +1 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-group-by-iterable.js +12 -13
- package/dist/cjs/collection/async-iterable-collection/_shared/async-group-by-iterable.js.map +1 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-insert-after-iterable.js +5 -12
- package/dist/cjs/collection/async-iterable-collection/_shared/async-insert-after-iterable.js.map +1 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-insert-before-iterable.js +5 -12
- package/dist/cjs/collection/async-iterable-collection/_shared/async-insert-before-iterable.js.map +1 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-map-iterable.js +3 -6
- package/dist/cjs/collection/async-iterable-collection/_shared/async-map-iterable.js.map +1 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-merge-iterable.js +1 -2
- package/dist/cjs/collection/async-iterable-collection/_shared/async-merge-iterable.js.map +1 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-pad-end-iterable.js +1 -4
- package/dist/cjs/collection/async-iterable-collection/_shared/async-pad-end-iterable.js.map +1 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-pad-start-iterable.js +1 -4
- package/dist/cjs/collection/async-iterable-collection/_shared/async-pad-start-iterable.js.map +1 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-partion-iterable.js +12 -19
- package/dist/cjs/collection/async-iterable-collection/_shared/async-partion-iterable.js.map +1 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-repeat-iterable.js +2 -3
- package/dist/cjs/collection/async-iterable-collection/_shared/async-repeat-iterable.js.map +1 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-reverse-iterable.js +3 -10
- package/dist/cjs/collection/async-iterable-collection/_shared/async-reverse-iterable.js.map +1 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-shuffle-iterable.js +4 -2
- package/dist/cjs/collection/async-iterable-collection/_shared/async-shuffle-iterable.js.map +1 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-skip-iterable.js +4 -9
- package/dist/cjs/collection/async-iterable-collection/_shared/async-skip-iterable.js.map +1 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-skip-until-iterable.js +5 -12
- package/dist/cjs/collection/async-iterable-collection/_shared/async-skip-until-iterable.js.map +1 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-slice-iterable.js +2 -4
- package/dist/cjs/collection/async-iterable-collection/_shared/async-slice-iterable.js.map +1 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-sliding-iterable.js +4 -11
- package/dist/cjs/collection/async-iterable-collection/_shared/async-sliding-iterable.js.map +1 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-split-iterable.js +7 -9
- package/dist/cjs/collection/async-iterable-collection/_shared/async-split-iterable.js.map +1 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-take-iterable.js +4 -9
- package/dist/cjs/collection/async-iterable-collection/_shared/async-take-iterable.js.map +1 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-take-until-iterable.js +6 -9
- package/dist/cjs/collection/async-iterable-collection/_shared/async-take-until-iterable.js.map +1 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-tap-iterable.js +1 -2
- package/dist/cjs/collection/async-iterable-collection/_shared/async-tap-iterable.js.map +1 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-unique-iterable.js +2 -5
- package/dist/cjs/collection/async-iterable-collection/_shared/async-unique-iterable.js.map +1 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-update-iterable.js +6 -9
- package/dist/cjs/collection/async-iterable-collection/_shared/async-update-iterable.js.map +1 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-when-iterable.js +1 -2
- package/dist/cjs/collection/async-iterable-collection/_shared/async-when-iterable.js.map +1 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-zip-iterable.js.map +1 -1
- package/dist/cjs/collection/async-iterable-collection/async-iterable-collection.js +173 -228
- package/dist/cjs/collection/async-iterable-collection/async-iterable-collection.js.map +1 -1
- package/dist/cjs/collection/iterable-collection/_shared/_module.js +1 -1
- package/dist/cjs/collection/iterable-collection/_shared/_module.js.map +1 -1
- package/dist/cjs/collection/iterable-collection/_shared/chunk-iterable.js +8 -7
- package/dist/cjs/collection/iterable-collection/_shared/chunk-iterable.js.map +1 -1
- package/dist/cjs/collection/iterable-collection/_shared/{chunk-whilte-iterable.js → chunk-while-iterable.js} +12 -14
- package/dist/cjs/collection/iterable-collection/_shared/chunk-while-iterable.js.map +1 -0
- package/dist/cjs/collection/iterable-collection/_shared/collapse-iterable.js +1 -2
- package/dist/cjs/collection/iterable-collection/_shared/collapse-iterable.js.map +1 -1
- package/dist/cjs/collection/iterable-collection/_shared/count-by-iterable.js +3 -6
- package/dist/cjs/collection/iterable-collection/_shared/count-by-iterable.js.map +1 -1
- package/dist/cjs/collection/iterable-collection/_shared/cross-join-iterable.js +26 -20
- package/dist/cjs/collection/iterable-collection/_shared/cross-join-iterable.js.map +1 -1
- package/dist/cjs/collection/iterable-collection/_shared/entries-iterable.js +2 -9
- package/dist/cjs/collection/iterable-collection/_shared/entries-iterable.js.map +1 -1
- package/dist/cjs/collection/iterable-collection/_shared/filter-iterable.js +3 -6
- package/dist/cjs/collection/iterable-collection/_shared/filter-iterable.js.map +1 -1
- package/dist/cjs/collection/iterable-collection/_shared/flat-map-iterable.js +3 -6
- package/dist/cjs/collection/iterable-collection/_shared/flat-map-iterable.js.map +1 -1
- package/dist/cjs/collection/iterable-collection/_shared/group-by-iterable.js +10 -12
- package/dist/cjs/collection/iterable-collection/_shared/group-by-iterable.js.map +1 -1
- package/dist/cjs/collection/iterable-collection/_shared/insert-after-iterable.js +3 -6
- package/dist/cjs/collection/iterable-collection/_shared/insert-after-iterable.js.map +1 -1
- package/dist/cjs/collection/iterable-collection/_shared/insert-before-iterable.js +3 -6
- package/dist/cjs/collection/iterable-collection/_shared/insert-before-iterable.js.map +1 -1
- package/dist/cjs/collection/iterable-collection/_shared/map-iterable.js +3 -6
- package/dist/cjs/collection/iterable-collection/_shared/map-iterable.js.map +1 -1
- package/dist/cjs/collection/iterable-collection/_shared/merge-iterable.js +1 -2
- package/dist/cjs/collection/iterable-collection/_shared/merge-iterable.js.map +1 -1
- package/dist/cjs/collection/iterable-collection/_shared/pad-end-iterable.js +2 -6
- package/dist/cjs/collection/iterable-collection/_shared/pad-end-iterable.js.map +1 -1
- package/dist/cjs/collection/iterable-collection/_shared/pad-start-iterable.js +2 -6
- package/dist/cjs/collection/iterable-collection/_shared/pad-start-iterable.js.map +1 -1
- package/dist/cjs/collection/iterable-collection/_shared/partion-iterable.js +9 -11
- package/dist/cjs/collection/iterable-collection/_shared/partion-iterable.js.map +1 -1
- package/dist/cjs/collection/iterable-collection/_shared/repeat-iterable.js +2 -3
- package/dist/cjs/collection/iterable-collection/_shared/repeat-iterable.js.map +1 -1
- package/dist/cjs/collection/iterable-collection/_shared/reverse-iterable.js +4 -12
- package/dist/cjs/collection/iterable-collection/_shared/reverse-iterable.js.map +1 -1
- package/dist/cjs/collection/iterable-collection/_shared/shuffle-iterable.js +5 -4
- package/dist/cjs/collection/iterable-collection/_shared/shuffle-iterable.js.map +1 -1
- package/dist/cjs/collection/iterable-collection/_shared/skip-iterable.js +4 -9
- package/dist/cjs/collection/iterable-collection/_shared/skip-iterable.js.map +1 -1
- package/dist/cjs/collection/iterable-collection/_shared/skip-until-iterable.js +3 -6
- package/dist/cjs/collection/iterable-collection/_shared/skip-until-iterable.js.map +1 -1
- package/dist/cjs/collection/iterable-collection/_shared/slice-iterable.js +3 -6
- package/dist/cjs/collection/iterable-collection/_shared/slice-iterable.js.map +1 -1
- package/dist/cjs/collection/iterable-collection/_shared/sliding-iterable.js +4 -11
- package/dist/cjs/collection/iterable-collection/_shared/sliding-iterable.js.map +1 -1
- package/dist/cjs/collection/iterable-collection/_shared/sort-iterable.js +1 -2
- package/dist/cjs/collection/iterable-collection/_shared/sort-iterable.js.map +1 -1
- package/dist/cjs/collection/iterable-collection/_shared/split-iterable.js +7 -9
- package/dist/cjs/collection/iterable-collection/_shared/split-iterable.js.map +1 -1
- package/dist/cjs/collection/iterable-collection/_shared/take-iterable.js +4 -9
- package/dist/cjs/collection/iterable-collection/_shared/take-iterable.js.map +1 -1
- package/dist/cjs/collection/iterable-collection/_shared/take-until-iterable.js +3 -6
- package/dist/cjs/collection/iterable-collection/_shared/take-until-iterable.js.map +1 -1
- package/dist/cjs/collection/iterable-collection/_shared/tap-iterable.js +1 -2
- package/dist/cjs/collection/iterable-collection/_shared/tap-iterable.js.map +1 -1
- package/dist/cjs/collection/iterable-collection/_shared/unique-iterable.js +3 -6
- package/dist/cjs/collection/iterable-collection/_shared/unique-iterable.js.map +1 -1
- package/dist/cjs/collection/iterable-collection/_shared/update-iterable.js +3 -6
- package/dist/cjs/collection/iterable-collection/_shared/update-iterable.js.map +1 -1
- package/dist/cjs/collection/iterable-collection/_shared/when-iterable.js +1 -2
- package/dist/cjs/collection/iterable-collection/_shared/when-iterable.js.map +1 -1
- package/dist/cjs/collection/iterable-collection/_shared/zip-iterable.js +1 -2
- package/dist/cjs/collection/iterable-collection/_shared/zip-iterable.js.map +1 -1
- package/dist/cjs/collection/iterable-collection/iterable-collection.js +161 -251
- package/dist/cjs/collection/iterable-collection/iterable-collection.js.map +1 -1
- package/dist/cjs/collection/list-collection/list-collection.js +213 -299
- package/dist/cjs/collection/list-collection/list-collection.js.map +1 -1
- package/dist/cjs/contracts/collection/_shared.js +17 -10
- package/dist/cjs/contracts/collection/_shared.js.map +1 -1
- package/dist/esm/_shared/utilities.js +15 -0
- package/dist/esm/_shared/utilities.js.map +1 -0
- package/dist/esm/collection/_shared.js +4 -2
- package/dist/esm/collection/_shared.js.map +1 -1
- package/dist/esm/collection/async-iterable-collection/_shared/_module.js +1 -1
- package/dist/esm/collection/async-iterable-collection/_shared/_module.js.map +1 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-chunk-iterable.js +8 -7
- package/dist/esm/collection/async-iterable-collection/_shared/async-chunk-iterable.js.map +1 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-chunk-while-iterable.js +37 -0
- package/dist/esm/collection/async-iterable-collection/_shared/async-chunk-while-iterable.js.map +1 -0
- package/dist/esm/collection/async-iterable-collection/_shared/async-collapse-iterable.js +1 -2
- package/dist/esm/collection/async-iterable-collection/_shared/async-collapse-iterable.js.map +1 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-count-by-iterable.js +3 -6
- package/dist/esm/collection/async-iterable-collection/_shared/async-count-by-iterable.js.map +1 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-cross-join-iterable.js +19 -18
- package/dist/esm/collection/async-iterable-collection/_shared/async-cross-join-iterable.js.map +1 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-entries-iterable.js +1 -8
- package/dist/esm/collection/async-iterable-collection/_shared/async-entries-iterable.js.map +1 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-filter-iterable.js +6 -9
- package/dist/esm/collection/async-iterable-collection/_shared/async-filter-iterable.js.map +1 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-flat-map-iterable.js +3 -6
- package/dist/esm/collection/async-iterable-collection/_shared/async-flat-map-iterable.js.map +1 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-group-by-iterable.js +12 -13
- package/dist/esm/collection/async-iterable-collection/_shared/async-group-by-iterable.js.map +1 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-insert-after-iterable.js +6 -13
- package/dist/esm/collection/async-iterable-collection/_shared/async-insert-after-iterable.js.map +1 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-insert-before-iterable.js +6 -13
- package/dist/esm/collection/async-iterable-collection/_shared/async-insert-before-iterable.js.map +1 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-map-iterable.js +3 -6
- package/dist/esm/collection/async-iterable-collection/_shared/async-map-iterable.js.map +1 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-merge-iterable.js +1 -2
- package/dist/esm/collection/async-iterable-collection/_shared/async-merge-iterable.js.map +1 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-pad-end-iterable.js +1 -4
- package/dist/esm/collection/async-iterable-collection/_shared/async-pad-end-iterable.js.map +1 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-pad-start-iterable.js +1 -4
- package/dist/esm/collection/async-iterable-collection/_shared/async-pad-start-iterable.js.map +1 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-partion-iterable.js +13 -20
- package/dist/esm/collection/async-iterable-collection/_shared/async-partion-iterable.js.map +1 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-repeat-iterable.js +2 -3
- package/dist/esm/collection/async-iterable-collection/_shared/async-repeat-iterable.js.map +1 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-reverse-iterable.js +3 -10
- package/dist/esm/collection/async-iterable-collection/_shared/async-reverse-iterable.js.map +1 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-shuffle-iterable.js +4 -2
- package/dist/esm/collection/async-iterable-collection/_shared/async-shuffle-iterable.js.map +1 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-skip-iterable.js +4 -9
- package/dist/esm/collection/async-iterable-collection/_shared/async-skip-iterable.js.map +1 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-skip-until-iterable.js +6 -13
- package/dist/esm/collection/async-iterable-collection/_shared/async-skip-until-iterable.js.map +1 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-slice-iterable.js +2 -4
- package/dist/esm/collection/async-iterable-collection/_shared/async-slice-iterable.js.map +1 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-sliding-iterable.js +4 -11
- package/dist/esm/collection/async-iterable-collection/_shared/async-sliding-iterable.js.map +1 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-split-iterable.js +7 -9
- package/dist/esm/collection/async-iterable-collection/_shared/async-split-iterable.js.map +1 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-take-iterable.js +4 -9
- package/dist/esm/collection/async-iterable-collection/_shared/async-take-iterable.js.map +1 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-take-until-iterable.js +6 -9
- package/dist/esm/collection/async-iterable-collection/_shared/async-take-until-iterable.js.map +1 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-tap-iterable.js +1 -2
- package/dist/esm/collection/async-iterable-collection/_shared/async-tap-iterable.js.map +1 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-unique-iterable.js +2 -5
- package/dist/esm/collection/async-iterable-collection/_shared/async-unique-iterable.js.map +1 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-update-iterable.js +6 -9
- package/dist/esm/collection/async-iterable-collection/_shared/async-update-iterable.js.map +1 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-when-iterable.js +1 -2
- package/dist/esm/collection/async-iterable-collection/_shared/async-when-iterable.js.map +1 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-zip-iterable.js.map +1 -1
- package/dist/esm/collection/async-iterable-collection/async-iterable-collection.js +174 -229
- package/dist/esm/collection/async-iterable-collection/async-iterable-collection.js.map +1 -1
- package/dist/esm/collection/iterable-collection/_shared/_module.js +1 -1
- package/dist/esm/collection/iterable-collection/_shared/_module.js.map +1 -1
- package/dist/esm/collection/iterable-collection/_shared/chunk-iterable.js +8 -7
- package/dist/esm/collection/iterable-collection/_shared/chunk-iterable.js.map +1 -1
- package/dist/esm/collection/iterable-collection/_shared/{chunk-whilte-iterable.js → chunk-while-iterable.js} +12 -14
- package/dist/esm/collection/iterable-collection/_shared/chunk-while-iterable.js.map +1 -0
- package/dist/esm/collection/iterable-collection/_shared/collapse-iterable.js +1 -2
- package/dist/esm/collection/iterable-collection/_shared/collapse-iterable.js.map +1 -1
- package/dist/esm/collection/iterable-collection/_shared/count-by-iterable.js +3 -6
- package/dist/esm/collection/iterable-collection/_shared/count-by-iterable.js.map +1 -1
- package/dist/esm/collection/iterable-collection/_shared/cross-join-iterable.js +24 -18
- package/dist/esm/collection/iterable-collection/_shared/cross-join-iterable.js.map +1 -1
- package/dist/esm/collection/iterable-collection/_shared/entries-iterable.js +3 -10
- package/dist/esm/collection/iterable-collection/_shared/entries-iterable.js.map +1 -1
- package/dist/esm/collection/iterable-collection/_shared/filter-iterable.js +3 -6
- package/dist/esm/collection/iterable-collection/_shared/filter-iterable.js.map +1 -1
- package/dist/esm/collection/iterable-collection/_shared/flat-map-iterable.js +3 -6
- package/dist/esm/collection/iterable-collection/_shared/flat-map-iterable.js.map +1 -1
- package/dist/esm/collection/iterable-collection/_shared/group-by-iterable.js +10 -12
- package/dist/esm/collection/iterable-collection/_shared/group-by-iterable.js.map +1 -1
- package/dist/esm/collection/iterable-collection/_shared/insert-after-iterable.js +3 -6
- package/dist/esm/collection/iterable-collection/_shared/insert-after-iterable.js.map +1 -1
- package/dist/esm/collection/iterable-collection/_shared/insert-before-iterable.js +3 -6
- package/dist/esm/collection/iterable-collection/_shared/insert-before-iterable.js.map +1 -1
- package/dist/esm/collection/iterable-collection/_shared/map-iterable.js +3 -6
- package/dist/esm/collection/iterable-collection/_shared/map-iterable.js.map +1 -1
- package/dist/esm/collection/iterable-collection/_shared/merge-iterable.js +1 -2
- package/dist/esm/collection/iterable-collection/_shared/merge-iterable.js.map +1 -1
- package/dist/esm/collection/iterable-collection/_shared/pad-end-iterable.js +2 -6
- package/dist/esm/collection/iterable-collection/_shared/pad-end-iterable.js.map +1 -1
- package/dist/esm/collection/iterable-collection/_shared/pad-start-iterable.js +2 -6
- package/dist/esm/collection/iterable-collection/_shared/pad-start-iterable.js.map +1 -1
- package/dist/esm/collection/iterable-collection/_shared/partion-iterable.js +9 -11
- package/dist/esm/collection/iterable-collection/_shared/partion-iterable.js.map +1 -1
- package/dist/esm/collection/iterable-collection/_shared/repeat-iterable.js +2 -3
- package/dist/esm/collection/iterable-collection/_shared/repeat-iterable.js.map +1 -1
- package/dist/esm/collection/iterable-collection/_shared/reverse-iterable.js +4 -12
- package/dist/esm/collection/iterable-collection/_shared/reverse-iterable.js.map +1 -1
- package/dist/esm/collection/iterable-collection/_shared/shuffle-iterable.js +5 -4
- package/dist/esm/collection/iterable-collection/_shared/shuffle-iterable.js.map +1 -1
- package/dist/esm/collection/iterable-collection/_shared/skip-iterable.js +4 -9
- package/dist/esm/collection/iterable-collection/_shared/skip-iterable.js.map +1 -1
- package/dist/esm/collection/iterable-collection/_shared/skip-until-iterable.js +3 -6
- package/dist/esm/collection/iterable-collection/_shared/skip-until-iterable.js.map +1 -1
- package/dist/esm/collection/iterable-collection/_shared/slice-iterable.js +3 -6
- package/dist/esm/collection/iterable-collection/_shared/slice-iterable.js.map +1 -1
- package/dist/esm/collection/iterable-collection/_shared/sliding-iterable.js +4 -11
- package/dist/esm/collection/iterable-collection/_shared/sliding-iterable.js.map +1 -1
- package/dist/esm/collection/iterable-collection/_shared/sort-iterable.js +1 -2
- package/dist/esm/collection/iterable-collection/_shared/sort-iterable.js.map +1 -1
- package/dist/esm/collection/iterable-collection/_shared/split-iterable.js +7 -9
- package/dist/esm/collection/iterable-collection/_shared/split-iterable.js.map +1 -1
- package/dist/esm/collection/iterable-collection/_shared/take-iterable.js +4 -9
- package/dist/esm/collection/iterable-collection/_shared/take-iterable.js.map +1 -1
- package/dist/esm/collection/iterable-collection/_shared/take-until-iterable.js +3 -6
- package/dist/esm/collection/iterable-collection/_shared/take-until-iterable.js.map +1 -1
- package/dist/esm/collection/iterable-collection/_shared/tap-iterable.js +1 -2
- package/dist/esm/collection/iterable-collection/_shared/tap-iterable.js.map +1 -1
- package/dist/esm/collection/iterable-collection/_shared/unique-iterable.js +3 -6
- package/dist/esm/collection/iterable-collection/_shared/unique-iterable.js.map +1 -1
- package/dist/esm/collection/iterable-collection/_shared/update-iterable.js +3 -6
- package/dist/esm/collection/iterable-collection/_shared/update-iterable.js.map +1 -1
- package/dist/esm/collection/iterable-collection/_shared/when-iterable.js +1 -2
- package/dist/esm/collection/iterable-collection/_shared/when-iterable.js.map +1 -1
- package/dist/esm/collection/iterable-collection/_shared/zip-iterable.js +1 -2
- package/dist/esm/collection/iterable-collection/_shared/zip-iterable.js.map +1 -1
- package/dist/esm/collection/iterable-collection/iterable-collection.js +162 -252
- package/dist/esm/collection/iterable-collection/iterable-collection.js.map +1 -1
- package/dist/esm/collection/list-collection/list-collection.js +214 -300
- package/dist/esm/collection/list-collection/list-collection.js.map +1 -1
- package/dist/esm/contracts/collection/_shared.js +12 -6
- package/dist/esm/contracts/collection/_shared.js.map +1 -1
- package/dist/types/_shared/types.d.ts +5 -0
- package/dist/types/_shared/utilities.d.ts +3 -0
- package/dist/types/collection/async-iterable-collection/_shared/_module.d.ts +1 -1
- package/dist/types/collection/async-iterable-collection/_shared/async-chunk-iterable.d.ts +2 -1
- package/dist/types/collection/async-iterable-collection/_shared/async-chunk-while-iterable.d.ts +12 -0
- package/dist/types/collection/async-iterable-collection/_shared/async-count-by-iterable.d.ts +3 -3
- package/dist/types/collection/async-iterable-collection/_shared/async-cross-join-iterable.d.ts +6 -5
- package/dist/types/collection/async-iterable-collection/_shared/async-entries-iterable.d.ts +3 -4
- package/dist/types/collection/async-iterable-collection/_shared/async-filter-iterable.d.ts +2 -3
- package/dist/types/collection/async-iterable-collection/_shared/async-flat-map-iterable.d.ts +1 -2
- package/dist/types/collection/async-iterable-collection/_shared/async-group-by-iterable.d.ts +4 -4
- package/dist/types/collection/async-iterable-collection/_shared/async-insert-after-iterable.d.ts +4 -4
- package/dist/types/collection/async-iterable-collection/_shared/async-insert-before-iterable.d.ts +4 -4
- package/dist/types/collection/async-iterable-collection/_shared/async-map-iterable.d.ts +1 -2
- package/dist/types/collection/async-iterable-collection/_shared/async-merge-iterable.d.ts +1 -1
- package/dist/types/collection/async-iterable-collection/_shared/async-pad-end-iterable.d.ts +2 -1
- package/dist/types/collection/async-iterable-collection/_shared/async-pad-start-iterable.d.ts +2 -1
- package/dist/types/collection/async-iterable-collection/_shared/async-partion-iterable.d.ts +4 -4
- package/dist/types/collection/async-iterable-collection/_shared/async-repeat-iterable.d.ts +2 -1
- package/dist/types/collection/async-iterable-collection/_shared/async-reverse-iterable.d.ts +3 -3
- package/dist/types/collection/async-iterable-collection/_shared/async-shuffle-iterable.d.ts +2 -1
- package/dist/types/collection/async-iterable-collection/_shared/async-skip-iterable.d.ts +1 -2
- package/dist/types/collection/async-iterable-collection/_shared/async-skip-until-iterable.d.ts +2 -3
- package/dist/types/collection/async-iterable-collection/_shared/async-slice-iterable.d.ts +1 -2
- package/dist/types/collection/async-iterable-collection/_shared/async-sliding-iterable.d.ts +1 -2
- package/dist/types/collection/async-iterable-collection/_shared/async-split-iterable.d.ts +3 -3
- package/dist/types/collection/async-iterable-collection/_shared/async-take-iterable.d.ts +1 -2
- package/dist/types/collection/async-iterable-collection/_shared/async-take-until-iterable.d.ts +2 -3
- package/dist/types/collection/async-iterable-collection/_shared/async-unique-iterable.d.ts +1 -2
- package/dist/types/collection/async-iterable-collection/_shared/async-update-iterable.d.ts +5 -6
- package/dist/types/collection/async-iterable-collection/_shared/async-zip-iterable.d.ts +2 -1
- package/dist/types/collection/async-iterable-collection/async-iterable-collection.d.ts +56 -54
- package/dist/types/collection/iterable-collection/_shared/_module.d.ts +1 -1
- package/dist/types/collection/iterable-collection/_shared/{chunk-whilte-iterable.d.ts → chunk-while-iterable.d.ts} +1 -2
- package/dist/types/collection/iterable-collection/_shared/count-by-iterable.d.ts +3 -3
- package/dist/types/collection/iterable-collection/_shared/cross-join-iterable.d.ts +5 -8
- package/dist/types/collection/iterable-collection/_shared/entries-iterable.d.ts +2 -3
- package/dist/types/collection/iterable-collection/_shared/filter-iterable.d.ts +1 -2
- package/dist/types/collection/iterable-collection/_shared/flat-map-iterable.d.ts +1 -2
- package/dist/types/collection/iterable-collection/_shared/group-by-iterable.d.ts +3 -3
- package/dist/types/collection/iterable-collection/_shared/insert-after-iterable.d.ts +1 -2
- package/dist/types/collection/iterable-collection/_shared/insert-before-iterable.d.ts +1 -2
- package/dist/types/collection/iterable-collection/_shared/map-iterable.d.ts +1 -2
- package/dist/types/collection/iterable-collection/_shared/partion-iterable.d.ts +1 -2
- package/dist/types/collection/iterable-collection/_shared/reverse-iterable.d.ts +1 -2
- package/dist/types/collection/iterable-collection/_shared/shuffle-iterable.d.ts +2 -1
- package/dist/types/collection/iterable-collection/_shared/skip-iterable.d.ts +1 -2
- package/dist/types/collection/iterable-collection/_shared/skip-until-iterable.d.ts +1 -2
- package/dist/types/collection/iterable-collection/_shared/slice-iterable.d.ts +1 -2
- package/dist/types/collection/iterable-collection/_shared/sliding-iterable.d.ts +1 -2
- package/dist/types/collection/iterable-collection/_shared/split-iterable.d.ts +1 -2
- package/dist/types/collection/iterable-collection/_shared/take-iterable.d.ts +1 -2
- package/dist/types/collection/iterable-collection/_shared/take-until-iterable.d.ts +1 -2
- package/dist/types/collection/iterable-collection/_shared/unique-iterable.d.ts +1 -2
- package/dist/types/collection/iterable-collection/_shared/update-iterable.d.ts +4 -5
- package/dist/types/collection/iterable-collection/_shared/zip-iterable.d.ts +1 -1
- package/dist/types/collection/iterable-collection/iterable-collection.d.ts +56 -54
- package/dist/types/collection/list-collection/list-collection.d.ts +57 -54
- package/dist/types/contracts/collection/_shared.d.ts +14 -158
- package/dist/types/contracts/collection/async-collection.contract.d.ts +430 -284
- package/dist/types/contracts/collection/collection.contract.d.ts +417 -260
- package/package.json +2 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-chunk-whilte-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/_shared/chunk-whilte-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-chunk-whilte-iterable.js +0 -39
- package/dist/esm/collection/async-iterable-collection/_shared/async-chunk-whilte-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/_shared/chunk-whilte-iterable.js.map +0 -1
- package/dist/types/collection/async-iterable-collection/_shared/async-chunk-whilte-iterable.d.ts +0 -12
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { type AsyncPredicate, type AsyncMap, type IAsyncCollection, type
|
|
1
|
+
import { type AsyncPredicate, type AsyncMap, type IAsyncCollection, type ChangendItem } from "../../../contracts/collection/_module";
|
|
2
2
|
/**
|
|
3
3
|
* @internal
|
|
4
4
|
*/
|
|
5
|
-
export declare class AsyncUpdateIterable<TInput, TFilterOutput extends TInput, TMapOutput> implements AsyncIterable<
|
|
5
|
+
export declare class AsyncUpdateIterable<TInput, TFilterOutput extends TInput, TMapOutput> implements AsyncIterable<ChangendItem<TInput, TFilterOutput, TMapOutput>> {
|
|
6
6
|
private collection;
|
|
7
|
-
private
|
|
7
|
+
private predicateFn;
|
|
8
8
|
private mapFn;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
[Symbol.asyncIterator](): AsyncIterator<UpdatedItem<TInput, TFilterOutput, TMapOutput>>;
|
|
9
|
+
constructor(collection: IAsyncCollection<TInput>, predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>, TFilterOutput>, mapFn: AsyncMap<TFilterOutput, IAsyncCollection<TInput>, TMapOutput>);
|
|
10
|
+
[Symbol.asyncIterator](): AsyncIterator<ChangendItem<TInput, TFilterOutput, TMapOutput>>;
|
|
12
11
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module Collections
|
|
3
3
|
*/
|
|
4
|
-
import { type AsyncCollapse, type AsyncPredicate, type
|
|
5
|
-
import { EnsureType } from "../../_shared/types";
|
|
4
|
+
import { type AsyncCollapse, type AsyncPredicate, type AsyncForEach, type AsyncMap, type AsyncModifier, type AsyncTap, type AsyncTransform, type Comparator, type IAsyncCollection, type ChangendItem, type AsyncReduce, type CrossJoinResult } from "../../contracts/collection/_module";
|
|
5
|
+
import { type AsyncIterableValue, type AsyncLazyable, type EnsureType } from "../../_shared/types";
|
|
6
|
+
import { type RecordItem } from "../../_shared/types";
|
|
6
7
|
/**
|
|
7
8
|
* All methods that return <i>{@link IAsyncCollection}</i> are executed lazly which means they will be executed when the <i>AsyncIterableCollection</i> is iterated with <i>forEach</i> method or "for await of" loop.
|
|
8
9
|
* The rest of the methods are executed eagerly.
|
|
@@ -10,7 +11,6 @@ import { EnsureType } from "../../_shared/types";
|
|
|
10
11
|
*/
|
|
11
12
|
export declare class AsyncIterableCollection<TInput> implements IAsyncCollection<TInput> {
|
|
12
13
|
private iterable;
|
|
13
|
-
private static THROW_ON_NUMBER_LIMIT;
|
|
14
14
|
private static DEFAULT_CHUNK_SIZE;
|
|
15
15
|
private static makeCollection;
|
|
16
16
|
/**
|
|
@@ -19,32 +19,34 @@ export declare class AsyncIterableCollection<TInput> implements IAsyncCollection
|
|
|
19
19
|
constructor(iterable?: AsyncIterableValue<TInput>);
|
|
20
20
|
[Symbol.asyncIterator](): AsyncIterator<TInput>;
|
|
21
21
|
toIterator(): AsyncIterator<TInput, void>;
|
|
22
|
-
entries(
|
|
23
|
-
keys(
|
|
22
|
+
entries(): IAsyncCollection<RecordItem<number, TInput>>;
|
|
23
|
+
keys(): IAsyncCollection<number>;
|
|
24
24
|
values(): IAsyncCollection<TInput>;
|
|
25
|
-
filter<TOutput extends TInput>(
|
|
26
|
-
reject<TOutput extends TInput>(
|
|
27
|
-
map<TOutput>(mapFn: AsyncMap<TInput, IAsyncCollection<TInput>, TOutput
|
|
28
|
-
reduce
|
|
29
|
-
|
|
25
|
+
filter<TOutput extends TInput>(predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>, TOutput>): IAsyncCollection<TOutput>;
|
|
26
|
+
reject<TOutput extends TInput>(predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>, TOutput>): IAsyncCollection<Exclude<TInput, TOutput>>;
|
|
27
|
+
map<TOutput>(mapFn: AsyncMap<TInput, IAsyncCollection<TInput>, TOutput>): IAsyncCollection<TOutput>;
|
|
28
|
+
reduce(reduceFn: AsyncReduce<TInput, IAsyncCollection<TInput>, TInput>): Promise<TInput>;
|
|
29
|
+
reduce(reduceFn: AsyncReduce<TInput, IAsyncCollection<TInput>, TInput>, initialValue: TInput): Promise<TInput>;
|
|
30
|
+
reduce<TOutput>(reduceFn: AsyncReduce<TInput, IAsyncCollection<TInput>, TOutput>, initialValue: TOutput): Promise<TOutput>;
|
|
31
|
+
join(separator?: string): Promise<EnsureType<TInput, string>>;
|
|
30
32
|
collapse(): IAsyncCollection<AsyncCollapse<TInput>>;
|
|
31
|
-
flatMap<TOutput>(mapFn: AsyncMap<TInput, IAsyncCollection<TInput>, Iterable<TOutput
|
|
32
|
-
|
|
33
|
-
page(
|
|
33
|
+
flatMap<TOutput>(mapFn: AsyncMap<TInput, IAsyncCollection<TInput>, Iterable<TOutput>>): IAsyncCollection<TOutput>;
|
|
34
|
+
change<TFilterOutput extends TInput, TMapOutput>(predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>, TFilterOutput>, mapFn: AsyncMap<TFilterOutput, IAsyncCollection<TInput>, TMapOutput>): IAsyncCollection<ChangendItem<TInput, TFilterOutput, TMapOutput>>;
|
|
35
|
+
page(page: number, pageSize: number): IAsyncCollection<TInput>;
|
|
34
36
|
sum(): Promise<EnsureType<TInput, number>>;
|
|
35
37
|
average(): Promise<EnsureType<TInput, number>>;
|
|
36
|
-
median(
|
|
38
|
+
median(): Promise<EnsureType<TInput, number>>;
|
|
37
39
|
min(): Promise<EnsureType<TInput, number>>;
|
|
38
40
|
max(): Promise<EnsureType<TInput, number>>;
|
|
39
|
-
percentage(
|
|
40
|
-
some<TOutput extends TInput>(
|
|
41
|
-
every<TOutput extends TInput>(
|
|
42
|
-
take(limit: number
|
|
43
|
-
takeUntil(
|
|
44
|
-
takeWhile(
|
|
45
|
-
skip(offset: number
|
|
46
|
-
skipUntil(
|
|
47
|
-
skipWhile(
|
|
41
|
+
percentage(predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>>): Promise<number>;
|
|
42
|
+
some<TOutput extends TInput>(predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>, TOutput>): Promise<boolean>;
|
|
43
|
+
every<TOutput extends TInput>(predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>, TOutput>): Promise<boolean>;
|
|
44
|
+
take(limit: number): IAsyncCollection<TInput>;
|
|
45
|
+
takeUntil(predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>>): IAsyncCollection<TInput>;
|
|
46
|
+
takeWhile(predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>>): IAsyncCollection<TInput>;
|
|
47
|
+
skip(offset: number): IAsyncCollection<TInput>;
|
|
48
|
+
skipUntil(predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>>): IAsyncCollection<TInput>;
|
|
49
|
+
skipWhile(predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>>): IAsyncCollection<TInput>;
|
|
48
50
|
when<TExtended = TInput>(condition: boolean, callback: AsyncModifier<IAsyncCollection<TInput>, IAsyncCollection<TExtended>>): IAsyncCollection<TInput | TExtended>;
|
|
49
51
|
whenEmpty<TExtended = TInput>(callback: AsyncModifier<IAsyncCollection<TInput>, IAsyncCollection<TExtended>>): IAsyncCollection<TInput | TExtended>;
|
|
50
52
|
whenNot<TExtended = TInput>(condition: boolean, callback: AsyncModifier<IAsyncCollection<TInput>, IAsyncCollection<TExtended>>): IAsyncCollection<TInput | TExtended>;
|
|
@@ -52,50 +54,50 @@ export declare class AsyncIterableCollection<TInput> implements IAsyncCollection
|
|
|
52
54
|
pipe<TOutput = TInput>(callback: AsyncTransform<IAsyncCollection<TInput>, TOutput>): Promise<TOutput>;
|
|
53
55
|
tap(callback: AsyncTap<IAsyncCollection<TInput>>): IAsyncCollection<TInput>;
|
|
54
56
|
chunk(chunkSize: number): IAsyncCollection<IAsyncCollection<TInput>>;
|
|
55
|
-
chunkWhile(
|
|
56
|
-
split(chunkAmount: number
|
|
57
|
-
partition(
|
|
58
|
-
sliding(
|
|
59
|
-
groupBy<TOutput = TInput>(
|
|
60
|
-
countBy<TOutput = TInput>(
|
|
61
|
-
unique<TOutput = TInput>(
|
|
57
|
+
chunkWhile(predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>>): IAsyncCollection<IAsyncCollection<TInput>>;
|
|
58
|
+
split(chunkAmount: number): IAsyncCollection<IAsyncCollection<TInput>>;
|
|
59
|
+
partition(predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>>): IAsyncCollection<IAsyncCollection<TInput>>;
|
|
60
|
+
sliding(chunkSize: number, step?: number): IAsyncCollection<IAsyncCollection<TInput>>;
|
|
61
|
+
groupBy<TOutput = TInput>(selectFn?: AsyncMap<TInput, IAsyncCollection<TInput>, TOutput>): IAsyncCollection<RecordItem<TOutput, IAsyncCollection<TInput>>>;
|
|
62
|
+
countBy<TOutput = TInput>(selectFn?: AsyncMap<TInput, IAsyncCollection<TInput>, TOutput>): IAsyncCollection<RecordItem<TOutput, number>>;
|
|
63
|
+
unique<TOutput = TInput>(selectFn?: AsyncMap<TInput, IAsyncCollection<TInput>, TOutput>): IAsyncCollection<TInput>;
|
|
62
64
|
difference<TOutput = TInput>(iterable: AsyncIterableValue<TInput>, selectFn?: AsyncMap<TInput, IAsyncCollection<TInput>, TOutput>): IAsyncCollection<TInput>;
|
|
63
65
|
repeat(amount: number): IAsyncCollection<TInput>;
|
|
64
66
|
padStart<TExtended = TInput>(maxLength: number, fillItems: AsyncIterableValue<TExtended>): IAsyncCollection<TInput | TExtended>;
|
|
65
67
|
padEnd<TExtended = TInput>(maxLength: number, fillItems: AsyncIterableValue<TExtended>): IAsyncCollection<TInput | TExtended>;
|
|
66
|
-
slice(
|
|
68
|
+
slice(start?: number, end?: number): IAsyncCollection<TInput>;
|
|
67
69
|
prepend<TExtended = TInput>(iterable: AsyncIterableValue<TInput | TExtended>): IAsyncCollection<TInput | TExtended>;
|
|
68
70
|
append<TExtended = TInput>(iterable: AsyncIterableValue<TInput | TExtended>): IAsyncCollection<TInput | TExtended>;
|
|
69
|
-
insertBefore<TExtended = TInput>(
|
|
70
|
-
insertAfter<TExtended = TInput>(
|
|
71
|
-
crossJoin<TExtended
|
|
71
|
+
insertBefore<TExtended = TInput>(predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>>, iterable: AsyncIterableValue<TInput | TExtended>): IAsyncCollection<TInput | TExtended>;
|
|
72
|
+
insertAfter<TExtended = TInput>(predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>>, iterable: AsyncIterableValue<TInput | TExtended>): IAsyncCollection<TInput | TExtended>;
|
|
73
|
+
crossJoin<TExtended>(iterable: AsyncIterableValue<TExtended>): IAsyncCollection<CrossJoinResult<TInput, TExtended>>;
|
|
72
74
|
zip<TExtended>(iterable: AsyncIterableValue<TExtended>): IAsyncCollection<RecordItem<TInput, TExtended>>;
|
|
73
75
|
sort(comparator?: Comparator<TInput> | undefined): IAsyncCollection<TInput>;
|
|
74
|
-
reverse(
|
|
75
|
-
shuffle(): IAsyncCollection<TInput>;
|
|
76
|
-
first<TOutput extends TInput>(
|
|
77
|
-
firstOr<TOutput extends TInput, TExtended = TInput>(
|
|
78
|
-
firstOrFail<TOutput extends TInput>(
|
|
79
|
-
last<TOutput extends TInput>(
|
|
80
|
-
lastOr<TOutput extends TInput, TExtended = TInput>(
|
|
81
|
-
lastOrFail<TOutput extends TInput>(
|
|
82
|
-
before(
|
|
83
|
-
beforeOr<TExtended = TInput>(defaultValue: AsyncLazyable<TExtended>,
|
|
84
|
-
beforeOrFail(
|
|
85
|
-
after(
|
|
86
|
-
afterOr<TExtended = TInput>(defaultValue: AsyncLazyable<TExtended>,
|
|
87
|
-
afterOrFail(
|
|
88
|
-
sole<TOutput extends TInput>(
|
|
76
|
+
reverse(chunkSize?: number): IAsyncCollection<TInput>;
|
|
77
|
+
shuffle(mathRandom?: () => number): IAsyncCollection<TInput>;
|
|
78
|
+
first<TOutput extends TInput>(predicateFn?: AsyncPredicate<TInput, IAsyncCollection<TInput>, TOutput>): Promise<TOutput | null>;
|
|
79
|
+
firstOr<TOutput extends TInput, TExtended = TInput>(defaultValue: AsyncLazyable<TExtended>, predicateFn?: AsyncPredicate<TInput, IAsyncCollection<TInput>, TOutput>): Promise<TOutput | TExtended>;
|
|
80
|
+
firstOrFail<TOutput extends TInput>(predicateFn?: AsyncPredicate<TInput, IAsyncCollection<TInput>, TOutput>): Promise<TOutput>;
|
|
81
|
+
last<TOutput extends TInput>(predicateFn?: AsyncPredicate<TInput, IAsyncCollection<TInput>, TOutput>): Promise<TOutput | null>;
|
|
82
|
+
lastOr<TOutput extends TInput, TExtended = TInput>(defaultValue: AsyncLazyable<TExtended>, predicateFn?: AsyncPredicate<TInput, IAsyncCollection<TInput>, TOutput>): Promise<TOutput | TExtended>;
|
|
83
|
+
lastOrFail<TOutput extends TInput>(predicateFn?: AsyncPredicate<TInput, IAsyncCollection<TInput>, TOutput>): Promise<TOutput>;
|
|
84
|
+
before(predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>>): Promise<TInput | null>;
|
|
85
|
+
beforeOr<TExtended = TInput>(defaultValue: AsyncLazyable<TExtended>, predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>>): Promise<TInput | TExtended>;
|
|
86
|
+
beforeOrFail(predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>>): Promise<TInput>;
|
|
87
|
+
after(predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>>): Promise<TInput | null>;
|
|
88
|
+
afterOr<TExtended = TInput>(defaultValue: AsyncLazyable<TExtended>, predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>>): Promise<TInput | TExtended>;
|
|
89
|
+
afterOrFail(predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>>): Promise<TInput>;
|
|
90
|
+
sole<TOutput extends TInput>(predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>, TOutput>): Promise<TOutput>;
|
|
89
91
|
nth(step: number): IAsyncCollection<TInput>;
|
|
90
92
|
delay(timeInMs: number): IAsyncCollection<TInput>;
|
|
91
93
|
abort(signal: AbortSignal): IAsyncCollection<TInput>;
|
|
92
94
|
timeout(timeInMs: number): IAsyncCollection<TInput>;
|
|
93
|
-
count(
|
|
94
|
-
size(
|
|
95
|
+
count(predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>>): Promise<number>;
|
|
96
|
+
size(): Promise<number>;
|
|
95
97
|
isEmpty(): Promise<boolean>;
|
|
96
98
|
isNotEmpty(): Promise<boolean>;
|
|
97
|
-
searchFirst(
|
|
98
|
-
searchLast(
|
|
99
|
-
forEach(callback: AsyncForEach<TInput, IAsyncCollection<TInput
|
|
99
|
+
searchFirst(predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>>): Promise<number>;
|
|
100
|
+
searchLast(predicateFn: AsyncPredicate<TInput, IAsyncCollection<TInput>>): Promise<number>;
|
|
101
|
+
forEach(callback: AsyncForEach<TInput, IAsyncCollection<TInput>>): Promise<void>;
|
|
100
102
|
toArray(): Promise<TInput[]>;
|
|
101
103
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from "../../../collection/iterable-collection/_shared/chunk-iterable";
|
|
2
|
-
export * from "../../../collection/iterable-collection/_shared/chunk-
|
|
2
|
+
export * from "../../../collection/iterable-collection/_shared/chunk-while-iterable";
|
|
3
3
|
export * from "../../../collection/iterable-collection/_shared/collapse-iterable";
|
|
4
4
|
export * from "../../../collection/iterable-collection/_shared/count-by-iterable";
|
|
5
5
|
export * from "../../../collection/iterable-collection/_shared/cross-join-iterable";
|
|
@@ -5,8 +5,7 @@ import { type Predicate, type ICollection } from "../../../contracts/collection/
|
|
|
5
5
|
export declare class ChunkWhileIterable<TInput> implements Iterable<ICollection<TInput>> {
|
|
6
6
|
private collection;
|
|
7
7
|
private predicateFn;
|
|
8
|
-
private throwOnIndexOverflow;
|
|
9
8
|
private makeCollection;
|
|
10
|
-
constructor(collection: ICollection<TInput>, predicateFn: Predicate<TInput, ICollection<TInput>>,
|
|
9
|
+
constructor(collection: ICollection<TInput>, predicateFn: Predicate<TInput, ICollection<TInput>>, makeCollection: <TInput>(iterable: Iterable<TInput>) => ICollection<TInput>);
|
|
11
10
|
[Symbol.iterator](): Iterator<ICollection<TInput>>;
|
|
12
11
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { type ICollection, type Map
|
|
1
|
+
import { type ICollection, type Map } from "../../../contracts/collection/_module";
|
|
2
|
+
import { type RecordItem } from "../../../_shared/types";
|
|
2
3
|
/**
|
|
3
4
|
* @internal
|
|
4
5
|
*/
|
|
5
6
|
export declare class CountByIterable<TInput, TOutput = TInput> implements Iterable<RecordItem<TOutput, number>> {
|
|
6
7
|
private collection;
|
|
7
8
|
private selectFn;
|
|
8
|
-
|
|
9
|
-
constructor(collection: ICollection<TInput>, selectFn: Map<TInput, ICollection<TInput>, TOutput>, throwOnIndexOverflow: boolean);
|
|
9
|
+
constructor(collection: ICollection<TInput>, selectFn?: Map<TInput, ICollection<TInput>, TOutput>);
|
|
10
10
|
[Symbol.iterator](): Iterator<RecordItem<TOutput, number>>;
|
|
11
11
|
}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
* @internal
|
|
4
|
-
*/
|
|
5
|
-
export declare class CrossJoinIterable<TInput, TExtended = TInput> implements Iterable<ICollection<TInput | TExtended>> {
|
|
1
|
+
import { CrossJoinResult, ICollection } from "../../../contracts/collection/_module";
|
|
2
|
+
export declare class CrossJoinIterable<TInput, TExtended = TInput> implements Iterable<CrossJoinResult<TInput, TExtended>> {
|
|
6
3
|
private collection;
|
|
7
|
-
private
|
|
4
|
+
private iterable;
|
|
8
5
|
private makeCollection;
|
|
9
|
-
constructor(collection: ICollection<TInput>,
|
|
10
|
-
[Symbol.iterator](): Iterator<
|
|
6
|
+
constructor(collection: ICollection<TInput>, iterable: Iterable<TExtended>, makeCollection: <TInput>(iterable: Iterable<TInput>) => ICollection<TInput>);
|
|
7
|
+
[Symbol.iterator](): Iterator<CrossJoinResult<TInput, TExtended>>;
|
|
11
8
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { type RecordItem } from "../../../
|
|
1
|
+
import { type RecordItem } from "../../../_shared/types";
|
|
2
2
|
/**
|
|
3
3
|
* @internal
|
|
4
4
|
*/
|
|
5
5
|
export declare class EntriesIterable<TInput> implements Iterable<RecordItem<number, TInput>> {
|
|
6
6
|
private iterable;
|
|
7
|
-
|
|
8
|
-
constructor(iterable: Iterable<TInput>, throwOnIndexOverflow: boolean);
|
|
7
|
+
constructor(iterable: Iterable<TInput>);
|
|
9
8
|
[Symbol.iterator](): Iterator<RecordItem<number, TInput>>;
|
|
10
9
|
}
|
|
@@ -5,7 +5,6 @@ import { type Predicate, type ICollection } from "../../../contracts/collection/
|
|
|
5
5
|
export declare class FilterIterable<TInput, TOutput extends TInput> implements Iterable<TOutput> {
|
|
6
6
|
private collection;
|
|
7
7
|
private predicateFn;
|
|
8
|
-
|
|
9
|
-
constructor(collection: ICollection<TInput>, predicateFn: Predicate<TInput, ICollection<TInput>, TOutput>, throwOnIndexOverflow: boolean);
|
|
8
|
+
constructor(collection: ICollection<TInput>, predicateFn: Predicate<TInput, ICollection<TInput>, TOutput>);
|
|
10
9
|
[Symbol.iterator](): Iterator<TOutput>;
|
|
11
10
|
}
|
|
@@ -5,7 +5,6 @@ import { type ICollection, type Map } from "../../../contracts/collection/_modul
|
|
|
5
5
|
export declare class FlatMapIterable<TInput, TOutput> implements Iterable<TOutput> {
|
|
6
6
|
private collection;
|
|
7
7
|
private mapFn;
|
|
8
|
-
|
|
9
|
-
constructor(collection: ICollection<TInput>, mapFn: Map<TInput, ICollection<TInput>, Iterable<TOutput>>, throwOnIndexOverflow: boolean);
|
|
8
|
+
constructor(collection: ICollection<TInput>, mapFn: Map<TInput, ICollection<TInput>, Iterable<TOutput>>);
|
|
10
9
|
[Symbol.iterator](): Iterator<TOutput>;
|
|
11
10
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { type ICollection, type Map
|
|
1
|
+
import { type ICollection, type Map } from "../../../contracts/collection/_module";
|
|
2
|
+
import { type RecordItem } from "../../../_shared/types";
|
|
2
3
|
/**
|
|
3
4
|
* @internal
|
|
4
5
|
*/
|
|
5
6
|
export declare class GroupByIterable<TInput, TOutput = TInput> implements Iterable<RecordItem<TOutput, ICollection<TInput>>> {
|
|
6
7
|
private collection;
|
|
7
8
|
private selectFn;
|
|
8
|
-
private throwOnIndexOverflow;
|
|
9
9
|
private makeCollection;
|
|
10
|
-
constructor(collection: ICollection<TInput>, selectFn: Map<TInput, ICollection<TInput>, TOutput>,
|
|
10
|
+
constructor(collection: ICollection<TInput>, selectFn: Map<TInput, ICollection<TInput>, TOutput>, makeCollection: <TInput>(iterable: Iterable<TInput>) => ICollection<TInput>);
|
|
11
11
|
[Symbol.iterator](): Iterator<RecordItem<TOutput, ICollection<TInput>>>;
|
|
12
12
|
}
|
|
@@ -6,7 +6,6 @@ export declare class InsertAfterIterable<TInput, TExtended> implements Iterable<
|
|
|
6
6
|
private collection;
|
|
7
7
|
private predicateFn;
|
|
8
8
|
private iterable;
|
|
9
|
-
|
|
10
|
-
constructor(collection: ICollection<TInput>, predicateFn: Predicate<TInput, ICollection<TInput>>, iterable: Iterable<TInput | TExtended>, throwOnIndexOverflow: boolean);
|
|
9
|
+
constructor(collection: ICollection<TInput>, predicateFn: Predicate<TInput, ICollection<TInput>>, iterable: Iterable<TInput | TExtended>);
|
|
11
10
|
[Symbol.iterator](): Iterator<TInput | TExtended>;
|
|
12
11
|
}
|
|
@@ -6,7 +6,6 @@ export declare class InsertBeforeIterable<TInput, TExtended> implements Iterable
|
|
|
6
6
|
private collection;
|
|
7
7
|
private predicateFn;
|
|
8
8
|
private iterable;
|
|
9
|
-
|
|
10
|
-
constructor(collection: ICollection<TInput>, predicateFn: Predicate<TInput, ICollection<TInput>>, iterable: Iterable<TInput | TExtended>, throwOnIndexOverflow: boolean);
|
|
9
|
+
constructor(collection: ICollection<TInput>, predicateFn: Predicate<TInput, ICollection<TInput>>, iterable: Iterable<TInput | TExtended>);
|
|
11
10
|
[Symbol.iterator](): Iterator<TInput | TExtended>;
|
|
12
11
|
}
|
|
@@ -5,7 +5,6 @@ import { type ICollection, type Map } from "../../../contracts/collection/_modul
|
|
|
5
5
|
export declare class MapIterable<TInput, TOutput> implements Iterable<TOutput> {
|
|
6
6
|
private collection;
|
|
7
7
|
private mapFn;
|
|
8
|
-
|
|
9
|
-
constructor(collection: ICollection<TInput>, mapFn: Map<TInput, ICollection<TInput>, TOutput>, throwOnIndexOverflow: boolean);
|
|
8
|
+
constructor(collection: ICollection<TInput>, mapFn: Map<TInput, ICollection<TInput>, TOutput>);
|
|
10
9
|
[Symbol.iterator](): Iterator<TOutput>;
|
|
11
10
|
}
|
|
@@ -5,8 +5,7 @@ import { type Predicate, type ICollection } from "../../../contracts/collection/
|
|
|
5
5
|
export declare class PartionIterable<TInput> implements Iterable<ICollection<TInput>> {
|
|
6
6
|
private collection;
|
|
7
7
|
private predicateFn;
|
|
8
|
-
private throwOnIndexOverflow;
|
|
9
8
|
private makeCollection;
|
|
10
|
-
constructor(collection: ICollection<TInput>, predicateFn: Predicate<TInput, ICollection<TInput>>,
|
|
9
|
+
constructor(collection: ICollection<TInput>, predicateFn: Predicate<TInput, ICollection<TInput>>, makeCollection: <TInput>(iterable: Iterable<TInput>) => ICollection<TInput>);
|
|
11
10
|
[Symbol.iterator](): Iterator<ICollection<TInput>>;
|
|
12
11
|
}
|
|
@@ -5,8 +5,7 @@ import { type ICollection } from "../../../contracts/collection/_module";
|
|
|
5
5
|
export declare class ReverseIterable<TInput> implements Iterable<TInput> {
|
|
6
6
|
private collection;
|
|
7
7
|
private chunkSize;
|
|
8
|
-
private throwOnIndexOverflow;
|
|
9
8
|
private makeCollection;
|
|
10
|
-
constructor(collection: ICollection<TInput>, chunkSize: number,
|
|
9
|
+
constructor(collection: ICollection<TInput>, chunkSize: number, makeCollection: <TInput>(iterable: Iterable<TInput>) => ICollection<TInput>);
|
|
11
10
|
[Symbol.iterator](): Iterator<TInput>;
|
|
12
11
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare class ShuffleIterable<TInput> implements Iterable<TInput> {
|
|
5
5
|
private iterable;
|
|
6
|
-
|
|
6
|
+
private readonly mathRandom;
|
|
7
|
+
constructor(iterable: Iterable<TInput>, mathRandom: () => number);
|
|
7
8
|
[Symbol.iterator](): Iterator<TInput>;
|
|
8
9
|
}
|
|
@@ -5,7 +5,6 @@ import { type ICollection } from "../../../contracts/collection/_module";
|
|
|
5
5
|
export declare class SkipIterable<TInput> implements Iterable<TInput> {
|
|
6
6
|
private collection;
|
|
7
7
|
private offset;
|
|
8
|
-
|
|
9
|
-
constructor(collection: ICollection<TInput>, offset: number, throwOnIndexOverflow: boolean);
|
|
8
|
+
constructor(collection: ICollection<TInput>, offset: number);
|
|
10
9
|
[Symbol.iterator](): Iterator<TInput>;
|
|
11
10
|
}
|
|
@@ -5,7 +5,6 @@ import { type Predicate, type ICollection } from "../../../contracts/collection/
|
|
|
5
5
|
export declare class SkipUntilIterable<TInput> implements Iterable<TInput> {
|
|
6
6
|
private collection;
|
|
7
7
|
private predicateFn;
|
|
8
|
-
|
|
9
|
-
constructor(collection: ICollection<TInput>, predicateFn: Predicate<TInput, ICollection<TInput>>, throwOnIndexOverflow: boolean);
|
|
8
|
+
constructor(collection: ICollection<TInput>, predicateFn: Predicate<TInput, ICollection<TInput>>);
|
|
10
9
|
[Symbol.iterator](): Iterator<TInput>;
|
|
11
10
|
}
|
|
@@ -6,7 +6,6 @@ export declare class SliceIterable<TInput> implements Iterable<TInput> {
|
|
|
6
6
|
private collection;
|
|
7
7
|
private start;
|
|
8
8
|
private end;
|
|
9
|
-
|
|
10
|
-
constructor(collection: ICollection<TInput>, start: number | undefined, end: number | undefined, throwOnIndexOverflow: boolean);
|
|
9
|
+
constructor(collection: ICollection<TInput>, start: number | undefined, end: number | undefined);
|
|
11
10
|
[Symbol.iterator](): Iterator<TInput>;
|
|
12
11
|
}
|
|
@@ -6,7 +6,6 @@ export declare class SlidingIteralbe<TInput> implements Iterable<ICollection<TIn
|
|
|
6
6
|
private collection;
|
|
7
7
|
private chunkSize;
|
|
8
8
|
private step;
|
|
9
|
-
|
|
10
|
-
constructor(collection: ICollection<TInput>, chunkSize: number, step: number, throwOnIndexOverflow: boolean);
|
|
9
|
+
constructor(collection: ICollection<TInput>, chunkSize: number, step: number);
|
|
11
10
|
[Symbol.iterator](): Iterator<ICollection<TInput>>;
|
|
12
11
|
}
|
|
@@ -5,8 +5,7 @@ import { type ICollection } from "../../../contracts/collection/_module";
|
|
|
5
5
|
export declare class SplitIterable<TInput> implements Iterable<ICollection<TInput>> {
|
|
6
6
|
private collection;
|
|
7
7
|
private chunkAmount;
|
|
8
|
-
private throwOnIndexOverflow;
|
|
9
8
|
private makeCollection;
|
|
10
|
-
constructor(collection: ICollection<TInput>, chunkAmount: number,
|
|
9
|
+
constructor(collection: ICollection<TInput>, chunkAmount: number, makeCollection: <TInput>(iterable: Iterable<TInput>) => ICollection<TInput>);
|
|
11
10
|
[Symbol.iterator](): Iterator<ICollection<TInput>>;
|
|
12
11
|
}
|
|
@@ -5,7 +5,6 @@ import { type ICollection } from "../../../contracts/collection/_module";
|
|
|
5
5
|
export declare class TakeIterable<TInput> implements Iterable<TInput> {
|
|
6
6
|
private collection;
|
|
7
7
|
private limit;
|
|
8
|
-
|
|
9
|
-
constructor(collection: ICollection<TInput>, limit: number, throwOnIndexOverflow: boolean);
|
|
8
|
+
constructor(collection: ICollection<TInput>, limit: number);
|
|
10
9
|
[Symbol.iterator](): Iterator<TInput>;
|
|
11
10
|
}
|
|
@@ -5,7 +5,6 @@ import { type Predicate, type ICollection } from "../../../contracts/collection/
|
|
|
5
5
|
export declare class TakeUntilIterable<TInput> implements Iterable<TInput> {
|
|
6
6
|
private collection;
|
|
7
7
|
private predicateFn;
|
|
8
|
-
|
|
9
|
-
constructor(collection: ICollection<TInput>, predicateFn: Predicate<TInput, ICollection<TInput>>, throwOnIndexOverflow: boolean);
|
|
8
|
+
constructor(collection: ICollection<TInput>, predicateFn: Predicate<TInput, ICollection<TInput>>);
|
|
10
9
|
[Symbol.iterator](): Iterator<TInput>;
|
|
11
10
|
}
|
|
@@ -5,7 +5,6 @@ import { type ICollection, type Map } from "../../../contracts/collection/_modul
|
|
|
5
5
|
export declare class UniqueIterable<TInput, TOutput> implements Iterable<TInput> {
|
|
6
6
|
private collection;
|
|
7
7
|
private callback;
|
|
8
|
-
|
|
9
|
-
constructor(collection: ICollection<TInput>, callback: Map<TInput, ICollection<TInput>, TOutput>, throwOnIndexOverflow: boolean);
|
|
8
|
+
constructor(collection: ICollection<TInput>, callback?: Map<TInput, ICollection<TInput>, TOutput>);
|
|
10
9
|
[Symbol.iterator](): Iterator<TInput>;
|
|
11
10
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { type Predicate, type ICollection, type Map, type
|
|
1
|
+
import { type Predicate, type ICollection, type Map, type ChangendItem } from "../../../contracts/collection/_module";
|
|
2
2
|
/**
|
|
3
3
|
* @internal
|
|
4
4
|
*/
|
|
5
|
-
export declare class UpdateIterable<TInput, TFilterOutput extends TInput, TMapOutput> implements Iterable<
|
|
5
|
+
export declare class UpdateIterable<TInput, TFilterOutput extends TInput, TMapOutput> implements Iterable<ChangendItem<TInput, TFilterOutput, TMapOutput>> {
|
|
6
6
|
private collection;
|
|
7
7
|
private predicateFn;
|
|
8
8
|
private mapFn;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
[Symbol.iterator](): Iterator<UpdatedItem<TInput, TFilterOutput, TMapOutput>>;
|
|
9
|
+
constructor(collection: ICollection<TInput>, predicateFn: Predicate<TInput, ICollection<TInput>, TFilterOutput>, mapFn: Map<TFilterOutput, ICollection<TInput>, TMapOutput>);
|
|
10
|
+
[Symbol.iterator](): Iterator<ChangendItem<TInput, TFilterOutput, TMapOutput>>;
|
|
12
11
|
}
|