@daiso-tech/core 0.1.2 → 0.1.3
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 +29 -0
- package/dist/cjs/{types.js.map → _shared/types.js.map} +1 -1
- package/dist/cjs/collection/_shared.js.map +1 -1
- package/dist/cjs/collection/async-iterable-collection/{async-iterable-helpers → _shared}/_module.js +35 -35
- package/dist/cjs/collection/async-iterable-collection/_shared/_module.js.map +1 -0
- package/dist/cjs/collection/async-iterable-collection/_shared/async-abort-iterable.js.map +1 -0
- package/dist/cjs/collection/async-iterable-collection/_shared/async-chunk-iterable.js.map +1 -0
- package/dist/cjs/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-chunk-whilte-iterable.js +4 -4
- package/dist/cjs/collection/async-iterable-collection/_shared/async-chunk-whilte-iterable.js.map +1 -0
- package/dist/cjs/collection/async-iterable-collection/_shared/async-collapse-iterable.js.map +1 -0
- package/dist/cjs/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-count-by-iterable.js +4 -4
- package/dist/cjs/collection/async-iterable-collection/_shared/async-count-by-iterable.js.map +1 -0
- package/dist/cjs/collection/async-iterable-collection/_shared/async-cross-join-iterable.js.map +1 -0
- package/dist/cjs/collection/async-iterable-collection/_shared/async-delay-iterable.js.map +1 -0
- package/dist/cjs/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-entries-iterable.js +5 -4
- package/dist/cjs/collection/async-iterable-collection/_shared/async-entries-iterable.js.map +1 -0
- package/dist/cjs/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-filter-iterable.js +4 -4
- package/dist/cjs/collection/async-iterable-collection/_shared/async-filter-iterable.js.map +1 -0
- package/dist/cjs/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-flat-map-iterable.js +7 -7
- package/dist/cjs/collection/async-iterable-collection/_shared/async-flat-map-iterable.js.map +1 -0
- package/dist/cjs/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-group-by-iterable.js +4 -4
- package/dist/cjs/collection/async-iterable-collection/_shared/async-group-by-iterable.js.map +1 -0
- package/dist/cjs/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-insert-after-iterable.js +4 -4
- package/dist/cjs/collection/async-iterable-collection/_shared/async-insert-after-iterable.js.map +1 -0
- package/dist/cjs/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-insert-before-iterable.js +4 -4
- package/dist/cjs/collection/async-iterable-collection/_shared/async-insert-before-iterable.js.map +1 -0
- package/dist/cjs/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-map-iterable.js +7 -7
- package/dist/cjs/collection/async-iterable-collection/_shared/async-map-iterable.js.map +1 -0
- package/dist/cjs/collection/async-iterable-collection/_shared/async-merge-iterable.js.map +1 -0
- package/dist/cjs/collection/async-iterable-collection/_shared/async-pad-end-iterable.js.map +1 -0
- package/dist/cjs/collection/async-iterable-collection/_shared/async-pad-start-iterable.js.map +1 -0
- package/dist/cjs/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-partion-iterable.js +4 -4
- package/dist/cjs/collection/async-iterable-collection/_shared/async-partion-iterable.js.map +1 -0
- package/dist/cjs/collection/async-iterable-collection/_shared/async-repeat-iterable.js.map +1 -0
- package/dist/cjs/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-reverse-iterable.js +5 -5
- package/dist/cjs/collection/async-iterable-collection/_shared/async-reverse-iterable.js.map +1 -0
- package/dist/cjs/collection/async-iterable-collection/_shared/async-shuffle-iterable.js.map +1 -0
- package/dist/cjs/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-skip-iterable.js +5 -5
- package/dist/cjs/collection/async-iterable-collection/_shared/async-skip-iterable.js.map +1 -0
- package/dist/cjs/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-skip-until-iterable.js +4 -4
- package/dist/cjs/collection/async-iterable-collection/_shared/async-skip-until-iterable.js.map +1 -0
- package/dist/cjs/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-slice-iterable.js +4 -4
- package/dist/cjs/collection/async-iterable-collection/_shared/async-slice-iterable.js.map +1 -0
- package/dist/cjs/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-sliding-iterable.js +5 -5
- package/dist/cjs/collection/async-iterable-collection/_shared/async-sliding-iterable.js.map +1 -0
- package/dist/cjs/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-sort-iterable.js +4 -4
- package/dist/cjs/collection/async-iterable-collection/_shared/async-sort-iterable.js.map +1 -0
- package/dist/cjs/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-split-iterable.js +5 -5
- package/dist/cjs/collection/async-iterable-collection/_shared/async-split-iterable.js.map +1 -0
- package/dist/cjs/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-take-iterable.js +5 -5
- package/dist/cjs/collection/async-iterable-collection/_shared/async-take-iterable.js.map +1 -0
- package/dist/cjs/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-take-until-iterable.js +4 -4
- package/dist/cjs/collection/async-iterable-collection/_shared/async-take-until-iterable.js.map +1 -0
- package/dist/cjs/collection/async-iterable-collection/_shared/async-tap-iterable.js.map +1 -0
- package/dist/cjs/collection/async-iterable-collection/_shared/async-timeout-iterable.js.map +1 -0
- package/dist/cjs/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-unique-iterable.js +3 -3
- package/dist/cjs/collection/async-iterable-collection/_shared/async-unique-iterable.js.map +1 -0
- package/dist/cjs/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-update-iterable.js +7 -7
- package/dist/cjs/collection/async-iterable-collection/_shared/async-update-iterable.js.map +1 -0
- package/dist/cjs/collection/async-iterable-collection/_shared/async-when-iterable.js.map +1 -0
- package/dist/cjs/collection/async-iterable-collection/_shared/async-zip-iterable.js.map +1 -0
- package/dist/cjs/collection/async-iterable-collection/async-iterable-collection.js +121 -100
- package/dist/cjs/collection/async-iterable-collection/async-iterable-collection.js.map +1 -1
- package/dist/cjs/collection/iterable-collection/_shared/_module.js +49 -0
- package/dist/cjs/collection/iterable-collection/_shared/_module.js.map +1 -0
- package/dist/cjs/collection/iterable-collection/_shared/chunk-iterable.js.map +1 -0
- package/dist/cjs/collection/iterable-collection/{iterable-helpers → _shared}/chunk-whilte-iterable.js +7 -7
- package/dist/cjs/collection/iterable-collection/_shared/chunk-whilte-iterable.js.map +1 -0
- package/dist/cjs/collection/iterable-collection/_shared/collapse-iterable.js.map +1 -0
- package/dist/cjs/collection/iterable-collection/{iterable-helpers → _shared}/count-by-iterable.js +7 -7
- package/dist/cjs/collection/iterable-collection/_shared/count-by-iterable.js.map +1 -0
- package/dist/cjs/collection/iterable-collection/_shared/cross-join-iterable.js.map +1 -0
- package/dist/cjs/collection/iterable-collection/{iterable-helpers → _shared}/entries-iterable.js +4 -4
- package/dist/cjs/collection/iterable-collection/_shared/entries-iterable.js.map +1 -0
- package/dist/cjs/collection/iterable-collection/{iterable-helpers → _shared}/filter-iterable.js +7 -7
- package/dist/cjs/collection/iterable-collection/_shared/filter-iterable.js.map +1 -0
- package/dist/cjs/collection/iterable-collection/{iterable-helpers → _shared}/flat-map-iterable.js +7 -7
- package/dist/cjs/collection/iterable-collection/_shared/flat-map-iterable.js.map +1 -0
- package/dist/cjs/collection/iterable-collection/{iterable-helpers → _shared}/group-by-iterable.js +7 -7
- package/dist/cjs/collection/iterable-collection/_shared/group-by-iterable.js.map +1 -0
- package/dist/cjs/collection/iterable-collection/{iterable-helpers → _shared}/insert-after-iterable.js +8 -7
- package/dist/cjs/collection/iterable-collection/_shared/insert-after-iterable.js.map +1 -0
- package/dist/cjs/collection/iterable-collection/{iterable-helpers → _shared}/insert-before-iterable.js +8 -7
- package/dist/cjs/collection/iterable-collection/_shared/insert-before-iterable.js.map +1 -0
- package/dist/cjs/collection/iterable-collection/{iterable-helpers → _shared}/map-iterable.js +7 -7
- package/dist/cjs/collection/iterable-collection/_shared/map-iterable.js.map +1 -0
- package/dist/cjs/collection/iterable-collection/_shared/merge-iterable.js.map +1 -0
- package/dist/cjs/collection/iterable-collection/_shared/pad-end-iterable.js.map +1 -0
- package/dist/cjs/collection/iterable-collection/_shared/pad-start-iterable.js.map +1 -0
- package/dist/cjs/collection/iterable-collection/{iterable-helpers → _shared}/partion-iterable.js +7 -7
- package/dist/cjs/collection/iterable-collection/_shared/partion-iterable.js.map +1 -0
- package/dist/cjs/collection/iterable-collection/_shared/repeat-iterable.js.map +1 -0
- package/dist/cjs/collection/iterable-collection/{iterable-helpers → _shared}/reverse-iterable.js +5 -5
- package/dist/cjs/collection/iterable-collection/_shared/reverse-iterable.js.map +1 -0
- package/dist/cjs/collection/iterable-collection/_shared/shuffle-iterable.js.map +1 -0
- package/dist/cjs/collection/iterable-collection/{iterable-helpers → _shared}/skip-iterable.js +6 -5
- package/dist/cjs/collection/iterable-collection/_shared/skip-iterable.js.map +1 -0
- package/dist/cjs/collection/iterable-collection/{iterable-helpers → _shared}/skip-until-iterable.js +7 -7
- package/dist/cjs/collection/iterable-collection/_shared/skip-until-iterable.js.map +1 -0
- package/dist/cjs/collection/iterable-collection/{iterable-helpers → _shared}/slice-iterable.js +4 -4
- package/dist/cjs/collection/iterable-collection/_shared/slice-iterable.js.map +1 -0
- package/dist/cjs/collection/iterable-collection/{iterable-helpers → _shared}/sliding-iterable.js +5 -5
- package/dist/cjs/collection/iterable-collection/_shared/sliding-iterable.js.map +1 -0
- package/dist/cjs/collection/iterable-collection/{iterable-helpers → _shared}/sort-iterable.js +4 -4
- package/dist/cjs/collection/iterable-collection/_shared/sort-iterable.js.map +1 -0
- package/dist/cjs/collection/iterable-collection/{iterable-helpers → _shared}/split-iterable.js +5 -5
- package/dist/cjs/collection/iterable-collection/_shared/split-iterable.js.map +1 -0
- package/dist/cjs/collection/iterable-collection/{iterable-helpers → _shared}/take-iterable.js +6 -5
- package/dist/cjs/collection/iterable-collection/_shared/take-iterable.js.map +1 -0
- package/dist/cjs/collection/iterable-collection/{iterable-helpers → _shared}/take-until-iterable.js +7 -7
- package/dist/cjs/collection/iterable-collection/_shared/take-until-iterable.js.map +1 -0
- package/dist/cjs/collection/iterable-collection/_shared/tap-iterable.js.map +1 -0
- package/dist/cjs/collection/iterable-collection/{iterable-helpers → _shared}/unique-iterable.js +4 -4
- package/dist/cjs/collection/iterable-collection/_shared/unique-iterable.js.map +1 -0
- package/dist/cjs/collection/iterable-collection/{iterable-helpers → _shared}/update-iterable.js +10 -10
- package/dist/cjs/collection/iterable-collection/_shared/update-iterable.js.map +1 -0
- package/dist/cjs/collection/iterable-collection/_shared/when-iterable.js.map +1 -0
- package/dist/cjs/collection/iterable-collection/_shared/zip-iterable.js.map +1 -0
- package/dist/cjs/collection/iterable-collection/iterable-collection.js +137 -111
- package/dist/cjs/collection/iterable-collection/iterable-collection.js.map +1 -1
- package/dist/cjs/collection/list-collection/list-collection.js +105 -73
- package/dist/cjs/collection/list-collection/list-collection.js.map +1 -1
- package/dist/cjs/contracts/_module.js +1 -1
- package/dist/cjs/contracts/_module.js.map +1 -1
- package/dist/cjs/contracts/collection/_module.js.map +1 -1
- package/dist/cjs/contracts/collection/_shared.js +1 -1
- package/dist/cjs/contracts/collection/_shared.js.map +1 -1
- package/dist/esm/{types.js.map → _shared/types.js.map} +1 -1
- package/dist/esm/collection/_shared.js.map +1 -1
- package/dist/esm/collection/async-iterable-collection/_shared/_module.js +36 -0
- package/dist/esm/collection/async-iterable-collection/_shared/_module.js.map +1 -0
- package/dist/esm/collection/async-iterable-collection/_shared/async-abort-iterable.js.map +1 -0
- package/dist/esm/collection/async-iterable-collection/_shared/async-chunk-iterable.js.map +1 -0
- package/dist/esm/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-chunk-whilte-iterable.js +4 -4
- package/dist/esm/collection/async-iterable-collection/_shared/async-chunk-whilte-iterable.js.map +1 -0
- package/dist/esm/collection/async-iterable-collection/_shared/async-collapse-iterable.js.map +1 -0
- package/dist/esm/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-count-by-iterable.js +4 -4
- package/dist/esm/collection/async-iterable-collection/_shared/async-count-by-iterable.js.map +1 -0
- package/dist/esm/collection/async-iterable-collection/_shared/async-cross-join-iterable.js.map +1 -0
- package/dist/esm/collection/async-iterable-collection/_shared/async-delay-iterable.js.map +1 -0
- package/dist/esm/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-entries-iterable.js +5 -4
- package/dist/esm/collection/async-iterable-collection/_shared/async-entries-iterable.js.map +1 -0
- package/dist/esm/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-filter-iterable.js +4 -4
- package/dist/esm/collection/async-iterable-collection/_shared/async-filter-iterable.js.map +1 -0
- package/dist/esm/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-flat-map-iterable.js +7 -7
- package/dist/esm/collection/async-iterable-collection/_shared/async-flat-map-iterable.js.map +1 -0
- package/dist/esm/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-group-by-iterable.js +4 -4
- package/dist/esm/collection/async-iterable-collection/_shared/async-group-by-iterable.js.map +1 -0
- package/dist/esm/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-insert-after-iterable.js +4 -4
- package/dist/esm/collection/async-iterable-collection/_shared/async-insert-after-iterable.js.map +1 -0
- package/dist/esm/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-insert-before-iterable.js +4 -4
- package/dist/esm/collection/async-iterable-collection/_shared/async-insert-before-iterable.js.map +1 -0
- package/dist/esm/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-map-iterable.js +7 -7
- package/dist/esm/collection/async-iterable-collection/_shared/async-map-iterable.js.map +1 -0
- package/dist/esm/collection/async-iterable-collection/_shared/async-merge-iterable.js.map +1 -0
- package/dist/esm/collection/async-iterable-collection/_shared/async-pad-end-iterable.js.map +1 -0
- package/dist/esm/collection/async-iterable-collection/_shared/async-pad-start-iterable.js.map +1 -0
- package/dist/esm/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-partion-iterable.js +4 -4
- package/dist/esm/collection/async-iterable-collection/_shared/async-partion-iterable.js.map +1 -0
- package/dist/esm/collection/async-iterable-collection/_shared/async-repeat-iterable.js.map +1 -0
- package/dist/esm/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-reverse-iterable.js +5 -5
- package/dist/esm/collection/async-iterable-collection/_shared/async-reverse-iterable.js.map +1 -0
- package/dist/esm/collection/async-iterable-collection/_shared/async-shuffle-iterable.js.map +1 -0
- package/dist/esm/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-skip-iterable.js +5 -5
- package/dist/esm/collection/async-iterable-collection/_shared/async-skip-iterable.js.map +1 -0
- package/dist/esm/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-skip-until-iterable.js +4 -4
- package/dist/esm/collection/async-iterable-collection/_shared/async-skip-until-iterable.js.map +1 -0
- package/dist/esm/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-slice-iterable.js +4 -4
- package/dist/esm/collection/async-iterable-collection/_shared/async-slice-iterable.js.map +1 -0
- package/dist/esm/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-sliding-iterable.js +5 -5
- package/dist/esm/collection/async-iterable-collection/_shared/async-sliding-iterable.js.map +1 -0
- package/dist/esm/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-sort-iterable.js +4 -4
- package/dist/esm/collection/async-iterable-collection/_shared/async-sort-iterable.js.map +1 -0
- package/dist/esm/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-split-iterable.js +5 -5
- package/dist/esm/collection/async-iterable-collection/_shared/async-split-iterable.js.map +1 -0
- package/dist/esm/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-take-iterable.js +5 -5
- package/dist/esm/collection/async-iterable-collection/_shared/async-take-iterable.js.map +1 -0
- package/dist/esm/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-take-until-iterable.js +4 -4
- package/dist/esm/collection/async-iterable-collection/_shared/async-take-until-iterable.js.map +1 -0
- package/dist/esm/collection/async-iterable-collection/_shared/async-tap-iterable.js.map +1 -0
- package/dist/esm/collection/async-iterable-collection/_shared/async-timeout-iterable.js.map +1 -0
- package/dist/esm/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-unique-iterable.js +3 -3
- package/dist/esm/collection/async-iterable-collection/_shared/async-unique-iterable.js.map +1 -0
- package/dist/esm/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-update-iterable.js +7 -7
- package/dist/esm/collection/async-iterable-collection/_shared/async-update-iterable.js.map +1 -0
- package/dist/esm/collection/async-iterable-collection/_shared/async-when-iterable.js.map +1 -0
- package/dist/esm/collection/async-iterable-collection/_shared/async-zip-iterable.js.map +1 -0
- package/dist/esm/collection/async-iterable-collection/async-iterable-collection.js +121 -100
- package/dist/esm/collection/async-iterable-collection/async-iterable-collection.js.map +1 -1
- package/dist/esm/collection/iterable-collection/_shared/_module.js +33 -0
- package/dist/esm/collection/iterable-collection/_shared/_module.js.map +1 -0
- package/dist/esm/collection/iterable-collection/_shared/chunk-iterable.js.map +1 -0
- package/dist/esm/collection/iterable-collection/{iterable-helpers → _shared}/chunk-whilte-iterable.js +7 -7
- package/dist/esm/collection/iterable-collection/_shared/chunk-whilte-iterable.js.map +1 -0
- package/dist/esm/collection/iterable-collection/_shared/collapse-iterable.js.map +1 -0
- package/dist/esm/collection/iterable-collection/{iterable-helpers → _shared}/count-by-iterable.js +7 -7
- package/dist/esm/collection/iterable-collection/_shared/count-by-iterable.js.map +1 -0
- package/dist/esm/collection/iterable-collection/_shared/cross-join-iterable.js.map +1 -0
- package/dist/esm/collection/iterable-collection/{iterable-helpers → _shared}/entries-iterable.js +4 -4
- package/dist/esm/collection/iterable-collection/_shared/entries-iterable.js.map +1 -0
- package/dist/esm/collection/iterable-collection/{iterable-helpers → _shared}/filter-iterable.js +7 -7
- package/dist/esm/collection/iterable-collection/_shared/filter-iterable.js.map +1 -0
- package/dist/esm/collection/iterable-collection/{iterable-helpers → _shared}/flat-map-iterable.js +7 -7
- package/dist/esm/collection/iterable-collection/_shared/flat-map-iterable.js.map +1 -0
- package/dist/esm/collection/iterable-collection/{iterable-helpers → _shared}/group-by-iterable.js +7 -7
- package/dist/esm/collection/iterable-collection/_shared/group-by-iterable.js.map +1 -0
- package/dist/esm/collection/iterable-collection/{iterable-helpers → _shared}/insert-after-iterable.js +8 -7
- package/dist/esm/collection/iterable-collection/_shared/insert-after-iterable.js.map +1 -0
- package/dist/esm/collection/iterable-collection/{iterable-helpers → _shared}/insert-before-iterable.js +8 -7
- package/dist/esm/collection/iterable-collection/_shared/insert-before-iterable.js.map +1 -0
- package/dist/esm/collection/iterable-collection/{iterable-helpers → _shared}/map-iterable.js +7 -7
- package/dist/esm/collection/iterable-collection/_shared/map-iterable.js.map +1 -0
- package/dist/esm/collection/iterable-collection/_shared/merge-iterable.js.map +1 -0
- package/dist/esm/collection/iterable-collection/_shared/pad-end-iterable.js.map +1 -0
- package/dist/esm/collection/iterable-collection/_shared/pad-start-iterable.js.map +1 -0
- package/dist/esm/collection/iterable-collection/{iterable-helpers → _shared}/partion-iterable.js +7 -7
- package/dist/esm/collection/iterable-collection/_shared/partion-iterable.js.map +1 -0
- package/dist/esm/collection/iterable-collection/_shared/repeat-iterable.js.map +1 -0
- package/dist/esm/collection/iterable-collection/{iterable-helpers → _shared}/reverse-iterable.js +5 -5
- package/dist/esm/collection/iterable-collection/_shared/reverse-iterable.js.map +1 -0
- package/dist/esm/collection/iterable-collection/_shared/shuffle-iterable.js.map +1 -0
- package/dist/esm/collection/iterable-collection/{iterable-helpers → _shared}/skip-iterable.js +6 -5
- package/dist/esm/collection/iterable-collection/_shared/skip-iterable.js.map +1 -0
- package/dist/esm/collection/iterable-collection/{iterable-helpers → _shared}/skip-until-iterable.js +7 -7
- package/dist/esm/collection/iterable-collection/_shared/skip-until-iterable.js.map +1 -0
- package/dist/esm/collection/iterable-collection/{iterable-helpers → _shared}/slice-iterable.js +4 -4
- package/dist/esm/collection/iterable-collection/_shared/slice-iterable.js.map +1 -0
- package/dist/esm/collection/iterable-collection/{iterable-helpers → _shared}/sliding-iterable.js +5 -5
- package/dist/esm/collection/iterable-collection/_shared/sliding-iterable.js.map +1 -0
- package/dist/esm/collection/iterable-collection/{iterable-helpers → _shared}/sort-iterable.js +4 -4
- package/dist/esm/collection/iterable-collection/_shared/sort-iterable.js.map +1 -0
- package/dist/esm/collection/iterable-collection/{iterable-helpers → _shared}/split-iterable.js +5 -5
- package/dist/esm/collection/iterable-collection/_shared/split-iterable.js.map +1 -0
- package/dist/esm/collection/iterable-collection/{iterable-helpers → _shared}/take-iterable.js +6 -5
- package/dist/esm/collection/iterable-collection/_shared/take-iterable.js.map +1 -0
- package/dist/esm/collection/iterable-collection/{iterable-helpers → _shared}/take-until-iterable.js +7 -7
- package/dist/esm/collection/iterable-collection/_shared/take-until-iterable.js.map +1 -0
- package/dist/esm/collection/iterable-collection/_shared/tap-iterable.js.map +1 -0
- package/dist/esm/collection/iterable-collection/{iterable-helpers → _shared}/unique-iterable.js +4 -4
- package/dist/esm/collection/iterable-collection/_shared/unique-iterable.js.map +1 -0
- package/dist/esm/collection/iterable-collection/{iterable-helpers → _shared}/update-iterable.js +10 -10
- package/dist/esm/collection/iterable-collection/_shared/update-iterable.js.map +1 -0
- package/dist/esm/collection/iterable-collection/_shared/when-iterable.js.map +1 -0
- package/dist/esm/collection/iterable-collection/_shared/zip-iterable.js.map +1 -0
- package/dist/esm/collection/iterable-collection/iterable-collection.js +137 -111
- package/dist/esm/collection/iterable-collection/iterable-collection.js.map +1 -1
- package/dist/esm/collection/list-collection/list-collection.js +105 -73
- package/dist/esm/collection/list-collection/list-collection.js.map +1 -1
- package/dist/esm/contracts/_module.js +1 -1
- package/dist/esm/contracts/_module.js.map +1 -1
- package/dist/esm/contracts/collection/_module.js.map +1 -1
- package/dist/esm/contracts/collection/_shared.js +1 -1
- package/dist/esm/contracts/collection/_shared.js.map +1 -1
- package/dist/types/collection/_shared.d.ts +9 -3
- package/dist/types/collection/async-iterable-collection/_shared/_module.d.ts +35 -0
- package/dist/types/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-chunk-whilte-iterable.d.ts +3 -3
- package/dist/types/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-count-by-iterable.d.ts +2 -2
- package/dist/types/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-entries-iterable.d.ts +2 -2
- package/dist/types/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-filter-iterable.d.ts +3 -3
- package/dist/types/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-flat-map-iterable.d.ts +3 -3
- package/dist/types/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-group-by-iterable.d.ts +2 -2
- package/dist/types/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-insert-after-iterable.d.ts +3 -3
- package/dist/types/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-insert-before-iterable.d.ts +3 -3
- package/dist/types/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-map-iterable.d.ts +3 -3
- package/dist/types/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-partion-iterable.d.ts +3 -3
- package/dist/types/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-reverse-iterable.d.ts +2 -2
- package/dist/types/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-skip-iterable.d.ts +2 -2
- package/dist/types/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-skip-until-iterable.d.ts +3 -3
- package/dist/types/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-slice-iterable.d.ts +2 -2
- package/dist/types/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-sliding-iterable.d.ts +2 -2
- package/dist/types/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-sort-iterable.d.ts +2 -2
- package/dist/types/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-split-iterable.d.ts +2 -2
- package/dist/types/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-take-iterable.d.ts +2 -2
- package/dist/types/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-take-until-iterable.d.ts +3 -3
- package/dist/types/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-unique-iterable.d.ts +2 -2
- package/dist/types/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-update-iterable.d.ts +4 -4
- package/dist/types/collection/async-iterable-collection/async-iterable-collection.d.ts +53 -44
- package/dist/types/collection/iterable-collection/_shared/_module.d.ts +32 -0
- package/dist/types/collection/iterable-collection/{iterable-helpers → _shared}/chunk-iterable.d.ts +3 -0
- package/dist/types/collection/iterable-collection/_shared/chunk-whilte-iterable.d.ts +12 -0
- package/dist/types/collection/iterable-collection/{iterable-helpers → _shared}/collapse-iterable.d.ts +3 -0
- package/dist/types/collection/iterable-collection/{iterable-helpers → _shared}/count-by-iterable.d.ts +6 -3
- package/dist/types/collection/iterable-collection/{iterable-helpers → _shared}/cross-join-iterable.d.ts +3 -0
- package/dist/types/collection/iterable-collection/{iterable-helpers → _shared}/entries-iterable.d.ts +5 -2
- package/dist/types/collection/iterable-collection/_shared/filter-iterable.d.ts +11 -0
- package/dist/types/collection/iterable-collection/{iterable-helpers → _shared}/flat-map-iterable.d.ts +6 -3
- package/dist/types/collection/iterable-collection/{iterable-helpers → _shared}/group-by-iterable.d.ts +6 -3
- package/dist/types/collection/iterable-collection/_shared/insert-after-iterable.d.ts +12 -0
- package/dist/types/collection/iterable-collection/_shared/insert-before-iterable.d.ts +12 -0
- package/dist/types/collection/iterable-collection/{iterable-helpers → _shared}/map-iterable.d.ts +6 -3
- package/dist/types/collection/iterable-collection/{iterable-helpers → _shared}/merge-iterable.d.ts +3 -0
- package/dist/types/collection/iterable-collection/{iterable-helpers → _shared}/pad-end-iterable.d.ts +3 -0
- package/dist/types/collection/iterable-collection/{iterable-helpers → _shared}/pad-start-iterable.d.ts +3 -0
- package/dist/types/collection/iterable-collection/_shared/partion-iterable.d.ts +12 -0
- package/dist/types/collection/iterable-collection/{iterable-helpers → _shared}/repeat-iterable.d.ts +3 -0
- package/dist/types/collection/iterable-collection/{iterable-helpers → _shared}/reverse-iterable.d.ts +5 -2
- package/dist/types/collection/iterable-collection/{iterable-helpers → _shared}/shuffle-iterable.d.ts +3 -0
- package/dist/types/collection/iterable-collection/{iterable-helpers → _shared}/skip-iterable.d.ts +5 -2
- package/dist/types/collection/iterable-collection/_shared/skip-until-iterable.d.ts +11 -0
- package/dist/types/collection/iterable-collection/{iterable-helpers → _shared}/slice-iterable.d.ts +5 -2
- package/dist/types/collection/iterable-collection/{iterable-helpers → _shared}/sliding-iterable.d.ts +5 -2
- package/dist/types/collection/iterable-collection/{iterable-helpers → _shared}/sort-iterable.d.ts +5 -2
- package/dist/types/collection/iterable-collection/{iterable-helpers → _shared}/split-iterable.d.ts +5 -2
- package/dist/types/collection/iterable-collection/{iterable-helpers → _shared}/take-iterable.d.ts +5 -2
- package/dist/types/collection/iterable-collection/_shared/take-until-iterable.d.ts +11 -0
- package/dist/types/collection/iterable-collection/{iterable-helpers → _shared}/tap-iterable.d.ts +3 -0
- package/dist/types/collection/iterable-collection/{iterable-helpers → _shared}/unique-iterable.d.ts +5 -2
- package/dist/types/collection/iterable-collection/_shared/update-iterable.d.ts +12 -0
- package/dist/types/collection/iterable-collection/{iterable-helpers → _shared}/when-iterable.d.ts +3 -0
- package/dist/types/collection/iterable-collection/{iterable-helpers → _shared}/zip-iterable.d.ts +3 -0
- package/dist/types/collection/iterable-collection/iterable-collection.d.ts +53 -44
- package/dist/types/collection/list-collection/list-collection.d.ts +52 -44
- package/dist/types/contracts/_module.d.ts +1 -1
- package/dist/types/contracts/collection/_module.d.ts +3 -0
- package/dist/types/contracts/collection/_shared.d.ts +123 -170
- package/dist/types/contracts/collection/async-collection.contract.d.ts +606 -211
- package/dist/types/contracts/collection/collection.contract.d.ts +546 -155
- package/package.json +5 -5
- package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/_module.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-abort-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-chunk-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-chunk-whilte-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-collapse-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-count-by-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-cross-join-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-delay-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-entries-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-filter-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-flat-map-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-group-by-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-insert-after-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-insert-before-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-map-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-merge-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-pad-end-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-pad-start-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-partion-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-repeat-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-reverse-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-shuffle-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-skip-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-skip-until-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-slice-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-sliding-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-sort-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-split-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-take-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-take-until-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-tap-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-timeout-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-unique-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-update-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-when-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/async-iterable-helpers/async-zip-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/iterable-helpers/_module.js +0 -49
- package/dist/cjs/collection/iterable-collection/iterable-helpers/_module.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/iterable-helpers/chunk-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/iterable-helpers/chunk-whilte-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/iterable-helpers/collapse-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/iterable-helpers/count-by-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/iterable-helpers/cross-join-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/iterable-helpers/entries-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/iterable-helpers/filter-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/iterable-helpers/flat-map-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/iterable-helpers/group-by-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/iterable-helpers/insert-after-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/iterable-helpers/insert-before-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/iterable-helpers/map-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/iterable-helpers/merge-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/iterable-helpers/pad-end-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/iterable-helpers/pad-start-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/iterable-helpers/partion-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/iterable-helpers/repeat-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/iterable-helpers/reverse-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/iterable-helpers/shuffle-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/iterable-helpers/skip-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/iterable-helpers/skip-until-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/iterable-helpers/slice-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/iterable-helpers/sliding-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/iterable-helpers/sort-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/iterable-helpers/split-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/iterable-helpers/take-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/iterable-helpers/take-until-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/iterable-helpers/tap-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/iterable-helpers/unique-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/iterable-helpers/update-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/iterable-helpers/when-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/iterable-helpers/zip-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/_module.js +0 -36
- package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/_module.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-abort-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-chunk-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-chunk-whilte-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-collapse-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-count-by-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-cross-join-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-delay-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-entries-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-filter-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-flat-map-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-group-by-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-insert-after-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-insert-before-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-map-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-merge-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-pad-end-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-pad-start-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-partion-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-repeat-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-reverse-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-shuffle-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-skip-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-skip-until-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-slice-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-sliding-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-sort-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-split-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-take-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-take-until-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-tap-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-timeout-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-unique-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-update-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-when-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/async-iterable-helpers/async-zip-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/iterable-helpers/_module.js +0 -33
- package/dist/esm/collection/iterable-collection/iterable-helpers/_module.js.map +0 -1
- package/dist/esm/collection/iterable-collection/iterable-helpers/chunk-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/iterable-helpers/chunk-whilte-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/iterable-helpers/collapse-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/iterable-helpers/count-by-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/iterable-helpers/cross-join-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/iterable-helpers/entries-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/iterable-helpers/filter-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/iterable-helpers/flat-map-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/iterable-helpers/group-by-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/iterable-helpers/insert-after-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/iterable-helpers/insert-before-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/iterable-helpers/map-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/iterable-helpers/merge-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/iterable-helpers/pad-end-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/iterable-helpers/pad-start-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/iterable-helpers/partion-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/iterable-helpers/repeat-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/iterable-helpers/reverse-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/iterable-helpers/shuffle-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/iterable-helpers/skip-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/iterable-helpers/skip-until-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/iterable-helpers/slice-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/iterable-helpers/sliding-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/iterable-helpers/sort-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/iterable-helpers/split-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/iterable-helpers/take-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/iterable-helpers/take-until-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/iterable-helpers/tap-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/iterable-helpers/unique-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/iterable-helpers/update-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/iterable-helpers/when-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/iterable-helpers/zip-iterable.js.map +0 -1
- package/dist/types/collection/async-iterable-collection/async-iterable-helpers/_module.d.ts +0 -35
- package/dist/types/collection/iterable-collection/iterable-helpers/_module.d.ts +0 -32
- package/dist/types/collection/iterable-collection/iterable-helpers/chunk-whilte-iterable.d.ts +0 -9
- package/dist/types/collection/iterable-collection/iterable-helpers/filter-iterable.d.ts +0 -8
- package/dist/types/collection/iterable-collection/iterable-helpers/insert-after-iterable.d.ts +0 -9
- package/dist/types/collection/iterable-collection/iterable-helpers/insert-before-iterable.d.ts +0 -9
- package/dist/types/collection/iterable-collection/iterable-helpers/partion-iterable.d.ts +0 -9
- package/dist/types/collection/iterable-collection/iterable-helpers/skip-until-iterable.d.ts +0 -8
- package/dist/types/collection/iterable-collection/iterable-helpers/take-until-iterable.d.ts +0 -8
- package/dist/types/collection/iterable-collection/iterable-helpers/update-iterable.d.ts +0 -9
- /package/dist/cjs/{types.js → _shared/types.js} +0 -0
- /package/dist/cjs/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-abort-iterable.js +0 -0
- /package/dist/cjs/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-chunk-iterable.js +0 -0
- /package/dist/cjs/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-collapse-iterable.js +0 -0
- /package/dist/cjs/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-cross-join-iterable.js +0 -0
- /package/dist/cjs/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-delay-iterable.js +0 -0
- /package/dist/cjs/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-merge-iterable.js +0 -0
- /package/dist/cjs/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-pad-end-iterable.js +0 -0
- /package/dist/cjs/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-pad-start-iterable.js +0 -0
- /package/dist/cjs/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-repeat-iterable.js +0 -0
- /package/dist/cjs/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-shuffle-iterable.js +0 -0
- /package/dist/cjs/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-tap-iterable.js +0 -0
- /package/dist/cjs/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-timeout-iterable.js +0 -0
- /package/dist/cjs/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-when-iterable.js +0 -0
- /package/dist/cjs/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-zip-iterable.js +0 -0
- /package/dist/cjs/collection/iterable-collection/{iterable-helpers → _shared}/chunk-iterable.js +0 -0
- /package/dist/cjs/collection/iterable-collection/{iterable-helpers → _shared}/collapse-iterable.js +0 -0
- /package/dist/cjs/collection/iterable-collection/{iterable-helpers → _shared}/cross-join-iterable.js +0 -0
- /package/dist/cjs/collection/iterable-collection/{iterable-helpers → _shared}/merge-iterable.js +0 -0
- /package/dist/cjs/collection/iterable-collection/{iterable-helpers → _shared}/pad-end-iterable.js +0 -0
- /package/dist/cjs/collection/iterable-collection/{iterable-helpers → _shared}/pad-start-iterable.js +0 -0
- /package/dist/cjs/collection/iterable-collection/{iterable-helpers → _shared}/repeat-iterable.js +0 -0
- /package/dist/cjs/collection/iterable-collection/{iterable-helpers → _shared}/shuffle-iterable.js +0 -0
- /package/dist/cjs/collection/iterable-collection/{iterable-helpers → _shared}/tap-iterable.js +0 -0
- /package/dist/cjs/collection/iterable-collection/{iterable-helpers → _shared}/when-iterable.js +0 -0
- /package/dist/cjs/collection/iterable-collection/{iterable-helpers → _shared}/zip-iterable.js +0 -0
- /package/dist/esm/{types.js → _shared/types.js} +0 -0
- /package/dist/esm/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-abort-iterable.js +0 -0
- /package/dist/esm/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-chunk-iterable.js +0 -0
- /package/dist/esm/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-collapse-iterable.js +0 -0
- /package/dist/esm/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-cross-join-iterable.js +0 -0
- /package/dist/esm/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-delay-iterable.js +0 -0
- /package/dist/esm/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-merge-iterable.js +0 -0
- /package/dist/esm/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-pad-end-iterable.js +0 -0
- /package/dist/esm/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-pad-start-iterable.js +0 -0
- /package/dist/esm/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-repeat-iterable.js +0 -0
- /package/dist/esm/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-shuffle-iterable.js +0 -0
- /package/dist/esm/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-tap-iterable.js +0 -0
- /package/dist/esm/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-timeout-iterable.js +0 -0
- /package/dist/esm/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-when-iterable.js +0 -0
- /package/dist/esm/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-zip-iterable.js +0 -0
- /package/dist/esm/collection/iterable-collection/{iterable-helpers → _shared}/chunk-iterable.js +0 -0
- /package/dist/esm/collection/iterable-collection/{iterable-helpers → _shared}/collapse-iterable.js +0 -0
- /package/dist/esm/collection/iterable-collection/{iterable-helpers → _shared}/cross-join-iterable.js +0 -0
- /package/dist/esm/collection/iterable-collection/{iterable-helpers → _shared}/merge-iterable.js +0 -0
- /package/dist/esm/collection/iterable-collection/{iterable-helpers → _shared}/pad-end-iterable.js +0 -0
- /package/dist/esm/collection/iterable-collection/{iterable-helpers → _shared}/pad-start-iterable.js +0 -0
- /package/dist/esm/collection/iterable-collection/{iterable-helpers → _shared}/repeat-iterable.js +0 -0
- /package/dist/esm/collection/iterable-collection/{iterable-helpers → _shared}/shuffle-iterable.js +0 -0
- /package/dist/esm/collection/iterable-collection/{iterable-helpers → _shared}/tap-iterable.js +0 -0
- /package/dist/esm/collection/iterable-collection/{iterable-helpers → _shared}/when-iterable.js +0 -0
- /package/dist/esm/collection/iterable-collection/{iterable-helpers → _shared}/zip-iterable.js +0 -0
- /package/dist/types/{types.d.ts → _shared/types.d.ts} +0 -0
- /package/dist/types/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-abort-iterable.d.ts +0 -0
- /package/dist/types/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-chunk-iterable.d.ts +0 -0
- /package/dist/types/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-collapse-iterable.d.ts +0 -0
- /package/dist/types/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-cross-join-iterable.d.ts +0 -0
- /package/dist/types/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-delay-iterable.d.ts +0 -0
- /package/dist/types/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-merge-iterable.d.ts +0 -0
- /package/dist/types/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-pad-end-iterable.d.ts +0 -0
- /package/dist/types/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-pad-start-iterable.d.ts +0 -0
- /package/dist/types/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-repeat-iterable.d.ts +0 -0
- /package/dist/types/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-shuffle-iterable.d.ts +0 -0
- /package/dist/types/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-tap-iterable.d.ts +0 -0
- /package/dist/types/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-timeout-iterable.d.ts +0 -0
- /package/dist/types/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-when-iterable.d.ts +0 -0
- /package/dist/types/collection/async-iterable-collection/{async-iterable-helpers → _shared}/async-zip-iterable.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_module.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/_shared/_module.ts"],"names":[],"mappings":"AAAA,cAAc,yDAAyD,CAAC;AACxE,cAAc,gEAAgE,CAAC;AAC/E,cAAc,4DAA4D,CAAC;AAC3E,cAAc,4DAA4D,CAAC;AAC3E,cAAc,8DAA8D,CAAC;AAC7E,cAAc,2DAA2D,CAAC;AAC1E,cAAc,0DAA0D,CAAC;AACzE,cAAc,4DAA4D,CAAC;AAC3E,cAAc,4DAA4D,CAAC;AAC3E,cAAc,gEAAgE,CAAC;AAC/E,cAAc,iEAAiE,CAAC;AAChF,cAAc,uDAAuD,CAAC;AACtE,cAAc,yDAAyD,CAAC;AACxE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,6DAA6D,CAAC;AAC5E,cAAc,2DAA2D,CAAC;AAC1E,cAAc,0DAA0D,CAAC;AACzE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,2DAA2D,CAAC;AAC1E,cAAc,wDAAwD,CAAC;AACvE,cAAc,8DAA8D,CAAC;AAC7E,cAAc,yDAAyD,CAAC;AACxE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,wDAAwD,CAAC;AACvE,cAAc,yDAAyD,CAAC;AACxE,cAAc,wDAAwD,CAAC;AACvE,cAAc,8DAA8D,CAAC;AAC7E,cAAc,uDAAuD,CAAC;AACtE,cAAc,0DAA0D,CAAC;AACzE,cAAc,0DAA0D,CAAC;AACzE,cAAc,wDAAwD,CAAC;AACvE,cAAc,uDAAuD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chunk-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/_shared/chunk-iterable.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EAEf,yBAAyB,GAC5B,MAAM,gCAAgC,CAAC;AAKxC,MAAM,OAAO,aAAa;IAEV;IACA;IACS;IAHrB,YACY,UAA+B,EAC/B,SAAiB,EACR,cAEO;QAJhB,eAAU,GAAV,UAAU,CAAqB;QAC/B,cAAS,GAAT,SAAS,CAAQ;QACR,mBAAc,GAAd,cAAc,CAEP;IACzB,CAAC;IAEJ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QACd,IAAI,CAAC;YACD,IAAI,KAAK,GAAwB,IAAI,CAAC,cAAc,CAAS,EAAE,CAAC,EAC5D,gBAAgB,GAAG,CAAC,EACpB,gBAAgB,GAAG,IAAI,CAAC;YAC5B,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;gBACjC,gBAAgB,IAAI,IAAI,CAAC,SAAS,CAAC;gBACnC,MAAM,QAAQ,GAAG,gBAAgB,KAAK,CAAC,CAAC;gBACxC,IAAI,CAAC,gBAAgB,IAAI,QAAQ,EAAE,CAAC;oBAChC,MAAM,KAAK,CAAC;oBACZ,KAAK,GAAG,IAAI,CAAC,cAAc,CAAS,EAAE,CAAC,CAAC;gBAC5C,CAAC;gBACD,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;gBAC7B,gBAAgB,EAAE,CAAC;gBACnB,gBAAgB,GAAG,KAAK,CAAC;YAC7B,CAAC;YACD,MAAM,OAAO,GAAG,gBAAgB,KAAK,CAAC,CAAC;YACvC,IAAI,OAAO,EAAE,CAAC;gBACV,MAAM,KAAK,CAAC;YAChB,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"}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { CollectionError, UnexpectedCollectionError, } from "../../../contracts/collection/_module";
|
|
2
2
|
export class ChunkWhileIterable {
|
|
3
3
|
collection;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
predicateFn;
|
|
5
|
+
throwOnIndexOverflow;
|
|
6
6
|
makeCollection;
|
|
7
|
-
constructor(collection,
|
|
7
|
+
constructor(collection, predicateFn, throwOnIndexOverflow, makeCollection) {
|
|
8
8
|
this.collection = collection;
|
|
9
|
-
this.
|
|
10
|
-
this.
|
|
9
|
+
this.predicateFn = predicateFn;
|
|
10
|
+
this.throwOnIndexOverflow = throwOnIndexOverflow;
|
|
11
11
|
this.makeCollection = makeCollection;
|
|
12
12
|
}
|
|
13
13
|
*[Symbol.iterator]() {
|
|
14
14
|
try {
|
|
15
15
|
let collection = this.makeCollection([]);
|
|
16
|
-
for (const [index, item] of this.collection.entries(this.
|
|
16
|
+
for (const [index, item] of this.collection.entries(this.throwOnIndexOverflow)) {
|
|
17
17
|
if (index === 0) {
|
|
18
18
|
collection = collection.append([item]);
|
|
19
19
|
}
|
|
20
|
-
else if (this.
|
|
20
|
+
else if (this.predicateFn(item, index, collection)) {
|
|
21
21
|
collection = collection.append([item]);
|
|
22
22
|
}
|
|
23
23
|
else {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chunk-whilte-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/_shared/chunk-whilte-iterable.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EAGf,yBAAyB,GAC5B,MAAM,gCAAgC,CAAC;AAKxC,MAAM,OAAO,kBAAkB;IAIf;IACA;IACA;IACA;IAJZ,YACY,UAA+B,EAC/B,WAAmD,EACnD,oBAA6B,EAC7B,cAEgB;QALhB,eAAU,GAAV,UAAU,CAAqB;QAC/B,gBAAW,GAAX,WAAW,CAAwC;QACnD,yBAAoB,GAApB,oBAAoB,CAAS;QAC7B,mBAAc,GAAd,cAAc,CAEE;IACzB,CAAC;IAEJ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QACd,IAAI,CAAC;YACD,IAAI,UAAU,GAAwB,IAAI,CAAC,cAAc,CACrD,EAAE,CACL,CAAC;YACF,KAAK,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,OAAO,CAC/C,IAAI,CAAC,oBAAoB,CAC5B,EAAE,CAAC;gBACA,IAAI,KAAK,KAAK,CAAC,EAAE,CAAC;oBACd,UAAU,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;gBAC3C,CAAC;qBAAM,IAAI,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE,UAAU,CAAC,EAAE,CAAC;oBACnD,UAAU,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;gBAC3C,CAAC;qBAAM,CAAC;oBACJ,MAAM,UAAU,CAAC;oBACjB,UAAU,GAAG,IAAI,CAAC,cAAc,CAAS,CAAC,IAAI,CAAC,CAAC,CAAC;gBACrD,CAAC;YACL,CAAC;YACD,MAAM,UAAU,CAAC;QACrB,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 @@
|
|
|
1
|
+
{"version":3,"file":"collapse-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/_shared/collapse-iterable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAEH,eAAe,EAEf,yBAAyB,GAC5B,MAAM,gCAAgC,CAAC;AAKxC,MAAM,OAAO,gBAAgB;IACL;IAApB,YAAoB,UAA+B;QAA/B,eAAU,GAAV,UAAU,CAAqB;IAAG,CAAC;IAEvD,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QACd,IAAI,CAAC;YACD,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;gBACjC,IAAI,UAAU,CAAS,IAAI,CAAC,EAAE,CAAC;oBAE3B,KAAK,CAAC,CAAC,IAAW,CAAC;gBACvB,CAAC;qBAAM,CAAC;oBACJ,MAAM,IAAwB,CAAC;gBACnC,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"}
|
package/dist/esm/collection/iterable-collection/{iterable-helpers → _shared}/count-by-iterable.js
RENAMED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { CollectionError, UnexpectedCollectionError, } from "../../../contracts/collection/_module";
|
|
2
2
|
export class CountByIterable {
|
|
3
3
|
collection;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
constructor(collection,
|
|
4
|
+
selectFn;
|
|
5
|
+
throwOnIndexOverflow;
|
|
6
|
+
constructor(collection, selectFn = (item) => item, throwOnIndexOverflow) {
|
|
7
7
|
this.collection = collection;
|
|
8
|
-
this.
|
|
9
|
-
this.
|
|
8
|
+
this.selectFn = selectFn;
|
|
9
|
+
this.throwOnIndexOverflow = throwOnIndexOverflow;
|
|
10
10
|
}
|
|
11
11
|
*[Symbol.iterator]() {
|
|
12
12
|
try {
|
|
13
13
|
const map = new Map();
|
|
14
|
-
for (const [index, item] of this.collection.entries(this.
|
|
15
|
-
const key = this.
|
|
14
|
+
for (const [index, item] of this.collection.entries(this.throwOnIndexOverflow)) {
|
|
15
|
+
const key = this.selectFn(item, index, this.collection);
|
|
16
16
|
if (!map.has(key)) {
|
|
17
17
|
map.set(key, 0);
|
|
18
18
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"count-by-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/_shared/count-by-iterable.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EAIf,yBAAyB,GAC5B,MAAM,gCAAgC,CAAC;AAKxC,MAAM,OAAO,eAAe;IAIZ;IACA;IAGA;IALZ,YACY,UAA+B,EAC/B,WAAsD,CAAC,IAAI,EAAE,EAAE,CAEnE,IAAW,EACP,oBAA6B;QAJ7B,eAAU,GAAV,UAAU,CAAqB;QAC/B,aAAQ,GAAR,QAAQ,CAED;QACP,yBAAoB,GAApB,oBAAoB,CAAS;IACtC,CAAC;IAEJ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QACd,IAAI,CAAC;YACD,MAAM,GAAG,GAAG,IAAI,GAAG,EAAmB,CAAC;YACvC,KAAK,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,OAAO,CAC/C,IAAI,CAAC,oBAAoB,CAC5B,EAAE,CAAC;gBACA,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;gBACxD,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;oBAChB,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;gBACpB,CAAC;gBACD,MAAM,OAAO,GAAG,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;gBAC7B,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;oBACxB,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,OAAO,GAAG,CAAC,CAAC,CAAC;gBAC9B,CAAC;YACL,CAAC;YACD,KAAK,CAAC,CAAC,GAAG,CAAC;QACf,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 @@
|
|
|
1
|
+
{"version":3,"file":"cross-join-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/_shared/cross-join-iterable.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EAEf,yBAAyB,GAC5B,MAAM,gCAAgC,CAAC;AAKxC,MAAM,OAAO,iBAAiB;IAId;IACA;IACA;IAHZ,YACY,UAA+B,EAC/B,SAAqC,EACrC,cAEgB;QAJhB,eAAU,GAAV,UAAU,CAAqB;QAC/B,cAAS,GAAT,SAAS,CAA4B;QACrC,mBAAc,GAAd,cAAc,CAEE;IACzB,CAAC;IAEJ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QACd,IAAI,CAAC;YACD,KAAK,CAAC,CAAC,IAAI,CAAC,cAAc,CAAkC;gBACxD,IAAI,CAAC,UAAU;gBACf,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAyB,CAAC,QAAQ,EAAE,EAAE,CACvD,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,CAChC;aACJ,CAAC,CAAC,MAAM,CAA+C;gBACpD,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;oBACf,OAAO,CAAC;yBACH,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CACP,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;wBACR,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;oBACzB,CAAC,CAAC,CACL;yBACA,MAAM,CAA+C;wBAClD,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;wBAC/B,YAAY,EAAE,IAAI,CAAC,cAAc,CAE/B,EAAE,CAAC;qBACR,CAAC,CAAC;gBACX,CAAC;gBACD,YAAY,EAAE,IAAI,CAAC,cAAc,CAE/B,CAAC,IAAI,CAAC,cAAc,CAAqB,EAAE,CAAC,CAAC,CAAC;aACnD,CAAC,CAAC;QACP,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"}
|
package/dist/esm/collection/iterable-collection/{iterable-helpers → _shared}/entries-iterable.js
RENAMED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { CollectionError, IndexOverflowError, UnexpectedCollectionError, } from "../../../contracts/collection/_shared";
|
|
2
2
|
export class EntriesIterable {
|
|
3
3
|
iterable;
|
|
4
|
-
|
|
5
|
-
constructor(iterable,
|
|
4
|
+
throwOnIndexOverflow;
|
|
5
|
+
constructor(iterable, throwOnIndexOverflow) {
|
|
6
6
|
this.iterable = iterable;
|
|
7
|
-
this.
|
|
7
|
+
this.throwOnIndexOverflow = throwOnIndexOverflow;
|
|
8
8
|
}
|
|
9
9
|
*[Symbol.iterator]() {
|
|
10
10
|
try {
|
|
11
11
|
let index = 0;
|
|
12
12
|
for (const item of this.iterable) {
|
|
13
|
-
if (this.
|
|
13
|
+
if (this.throwOnIndexOverflow &&
|
|
14
14
|
index === Number.MAX_SAFE_INTEGER) {
|
|
15
15
|
throw new IndexOverflowError("Index has overflowed");
|
|
16
16
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entries-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/_shared/entries-iterable.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,eAAe,EACf,kBAAkB,EAClB,yBAAyB,GAC5B,MAAM,gCAAgC,CAAC;AAKxC,MAAM,OAAO,eAAe;IAIZ;IACA;IAFZ,YACY,QAA0B,EAC1B,oBAA6B;QAD7B,aAAQ,GAAR,QAAQ,CAAkB;QAC1B,yBAAoB,GAApB,oBAAoB,CAAS;IACtC,CAAC;IAEJ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QACd,IAAI,CAAC;YACD,IAAI,KAAK,GAAG,CAAC,CAAC;YACd,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;gBAC/B,IACI,IAAI,CAAC,oBAAoB;oBACzB,KAAK,KAAK,MAAM,CAAC,gBAAgB,EACnC,CAAC;oBACC,MAAM,IAAI,kBAAkB,CAAC,sBAAsB,CAAC,CAAC;gBACzD,CAAC;gBACD,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;gBACpB,KAAK,EAAE,CAAC;YACZ,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"}
|
package/dist/esm/collection/iterable-collection/{iterable-helpers → _shared}/filter-iterable.js
RENAMED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { CollectionError, UnexpectedCollectionError, } from "../../../contracts/collection/_module";
|
|
2
2
|
export class FilterIterable {
|
|
3
3
|
collection;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
constructor(collection,
|
|
4
|
+
predicateFn;
|
|
5
|
+
throwOnIndexOverflow;
|
|
6
|
+
constructor(collection, predicateFn, throwOnIndexOverflow) {
|
|
7
7
|
this.collection = collection;
|
|
8
|
-
this.
|
|
9
|
-
this.
|
|
8
|
+
this.predicateFn = predicateFn;
|
|
9
|
+
this.throwOnIndexOverflow = throwOnIndexOverflow;
|
|
10
10
|
}
|
|
11
11
|
*[Symbol.iterator]() {
|
|
12
12
|
try {
|
|
13
|
-
for (const [index, item] of this.collection.entries(this.
|
|
14
|
-
if (this.
|
|
13
|
+
for (const [index, item] of this.collection.entries(this.throwOnIndexOverflow)) {
|
|
14
|
+
if (this.predicateFn(item, index, this.collection)) {
|
|
15
15
|
yield item;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/_shared/filter-iterable.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EAGf,yBAAyB,GAC5B,MAAM,gCAAgC,CAAC;AAKxC,MAAM,OAAO,cAAc;IAIX;IACA;IACA;IAHZ,YACY,UAA+B,EAC/B,WAA4D,EAC5D,oBAA6B;QAF7B,eAAU,GAAV,UAAU,CAAqB;QAC/B,gBAAW,GAAX,WAAW,CAAiD;QAC5D,yBAAoB,GAApB,oBAAoB,CAAS;IACtC,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,oBAAoB,CAC5B,EAAE,CAAC;gBACA,IAAI,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;oBACjD,MAAM,IAAe,CAAC;gBAC1B,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"}
|
package/dist/esm/collection/iterable-collection/{iterable-helpers → _shared}/flat-map-iterable.js
RENAMED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { CollectionError, UnexpectedCollectionError, } from "../../../contracts/collection/_module";
|
|
2
2
|
export class FlatMapIterable {
|
|
3
3
|
collection;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
constructor(collection,
|
|
4
|
+
mapFn;
|
|
5
|
+
throwOnIndexOverflow;
|
|
6
|
+
constructor(collection, mapFn, throwOnIndexOverflow) {
|
|
7
7
|
this.collection = collection;
|
|
8
|
-
this.
|
|
9
|
-
this.
|
|
8
|
+
this.mapFn = mapFn;
|
|
9
|
+
this.throwOnIndexOverflow = throwOnIndexOverflow;
|
|
10
10
|
}
|
|
11
11
|
*[Symbol.iterator]() {
|
|
12
12
|
try {
|
|
13
|
-
for (const [index, item] of this.collection.entries(this.
|
|
14
|
-
yield* this.
|
|
13
|
+
for (const [index, item] of this.collection.entries(this.throwOnIndexOverflow)) {
|
|
14
|
+
yield* this.mapFn(item, index, this.collection);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
catch (error) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flat-map-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/_shared/flat-map-iterable.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EAGf,yBAAyB,GAC5B,MAAM,gCAAgC,CAAC;AAKxC,MAAM,OAAO,eAAe;IAEZ;IACA;IACA;IAHZ,YACY,UAA+B,EAC/B,KAA0D,EAC1D,oBAA6B;QAF7B,eAAU,GAAV,UAAU,CAAqB;QAC/B,UAAK,GAAL,KAAK,CAAqD;QAC1D,yBAAoB,GAApB,oBAAoB,CAAS;IACtC,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,oBAAoB,CAC5B,EAAE,CAAC;gBACA,KAAK,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;YACpD,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"}
|
package/dist/esm/collection/iterable-collection/{iterable-helpers → _shared}/group-by-iterable.js
RENAMED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { CollectionError, UnexpectedCollectionError, } from "../../../contracts/collection/_module";
|
|
2
2
|
export class GroupByIterable {
|
|
3
3
|
collection;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
selectFn;
|
|
5
|
+
throwOnIndexOverflow;
|
|
6
6
|
makeCollection;
|
|
7
|
-
constructor(collection,
|
|
7
|
+
constructor(collection, selectFn = (item) => item, throwOnIndexOverflow, makeCollection) {
|
|
8
8
|
this.collection = collection;
|
|
9
|
-
this.
|
|
10
|
-
this.
|
|
9
|
+
this.selectFn = selectFn;
|
|
10
|
+
this.throwOnIndexOverflow = throwOnIndexOverflow;
|
|
11
11
|
this.makeCollection = makeCollection;
|
|
12
12
|
}
|
|
13
13
|
*[Symbol.iterator]() {
|
|
14
14
|
try {
|
|
15
15
|
const map = new Map();
|
|
16
|
-
for (const [index, item] of this.collection.entries(this.
|
|
17
|
-
const key = this.
|
|
16
|
+
for (const [index, item] of this.collection.entries(this.throwOnIndexOverflow)) {
|
|
17
|
+
const key = this.selectFn(item, index, this.collection);
|
|
18
18
|
let collection = map.get(key);
|
|
19
19
|
if (collection === undefined) {
|
|
20
20
|
collection = this.makeCollection([]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group-by-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/_shared/group-by-iterable.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EACf,yBAAyB,GAI5B,MAAM,gCAAgC,CAAC;AAKxC,MAAM,OAAO,eAAe;IAIZ;IACA;IAGA;IACA;IANZ,YACY,UAA+B,EAC/B,WAAsD,CAAC,IAAI,EAAE,EAAE,CAEnE,IAAW,EACP,oBAA6B,EAC7B,cAEgB;QAPhB,eAAU,GAAV,UAAU,CAAqB;QAC/B,aAAQ,GAAR,QAAQ,CAED;QACP,yBAAoB,GAApB,oBAAoB,CAAS;QAC7B,mBAAc,GAAd,cAAc,CAEE;IACzB,CAAC;IAEJ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QACd,IAAI,CAAC;YACD,MAAM,GAAG,GAAG,IAAI,GAAG,EAAgC,CAAC;YACpD,KAAK,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,OAAO,CAC/C,IAAI,CAAC,oBAAoB,CAC5B,EAAE,CAAC;gBACA,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;gBACxD,IAAI,UAAU,GAAoC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;gBAC/D,IAAI,UAAU,KAAK,SAAS,EAAE,CAAC;oBAC3B,UAAU,GAAG,IAAI,CAAC,cAAc,CAAS,EAAE,CAAC,CAAC;oBAC7C,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC;gBAC7B,CAAC;gBAED,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAC5C,CAAC;YACD,KAAK,CAAC,CAAC,GAAG,CAAC;QACf,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"}
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import { CollectionError, UnexpectedCollectionError, } from "../../../contracts/collection/_module";
|
|
2
2
|
export class InsertAfterIterable {
|
|
3
3
|
collection;
|
|
4
|
-
|
|
4
|
+
predicateFn;
|
|
5
5
|
iterable;
|
|
6
|
-
|
|
7
|
-
constructor(collection,
|
|
6
|
+
throwOnIndexOverflow;
|
|
7
|
+
constructor(collection, predicateFn, iterable, throwOnIndexOverflow) {
|
|
8
8
|
this.collection = collection;
|
|
9
|
-
this.
|
|
9
|
+
this.predicateFn = predicateFn;
|
|
10
10
|
this.iterable = iterable;
|
|
11
|
-
this.
|
|
11
|
+
this.throwOnIndexOverflow = throwOnIndexOverflow;
|
|
12
12
|
}
|
|
13
13
|
*[Symbol.iterator]() {
|
|
14
14
|
try {
|
|
15
15
|
let hasMatched = false;
|
|
16
|
-
for (const [index, item] of this.collection.entries(this.
|
|
16
|
+
for (const [index, item] of this.collection.entries(this.throwOnIndexOverflow)) {
|
|
17
17
|
yield item;
|
|
18
|
-
if (!hasMatched &&
|
|
18
|
+
if (!hasMatched &&
|
|
19
|
+
this.predicateFn(item, index, this.collection)) {
|
|
19
20
|
yield* this.iterable;
|
|
20
21
|
hasMatched = true;
|
|
21
22
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insert-after-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/_shared/insert-after-iterable.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EAGf,yBAAyB,GAC5B,MAAM,gCAAgC,CAAC;AAKxC,MAAM,OAAO,mBAAmB;IAIhB;IACA;IACA;IACA;IAJZ,YACY,UAA+B,EAC/B,WAAmD,EACnD,QAAsC,EACtC,oBAA6B;QAH7B,eAAU,GAAV,UAAU,CAAqB;QAC/B,gBAAW,GAAX,WAAW,CAAwC;QACnD,aAAQ,GAAR,QAAQ,CAA8B;QACtC,yBAAoB,GAApB,oBAAoB,CAAS;IACtC,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,oBAAoB,CAC5B,EAAE,CAAC;gBACA,MAAM,IAAI,CAAC;gBACX,IACI,CAAC,UAAU;oBACX,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,EAChD,CAAC;oBACC,KAAK,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;oBACrB,UAAU,GAAG,IAAI,CAAC;gBACtB,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"}
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { CollectionError, UnexpectedCollectionError, } from "../../../contracts/collection/_module";
|
|
2
2
|
export class InsertBeforeIterable {
|
|
3
3
|
collection;
|
|
4
|
-
|
|
4
|
+
predicateFn;
|
|
5
5
|
iterable;
|
|
6
|
-
|
|
7
|
-
constructor(collection,
|
|
6
|
+
throwOnIndexOverflow;
|
|
7
|
+
constructor(collection, predicateFn, iterable, throwOnIndexOverflow) {
|
|
8
8
|
this.collection = collection;
|
|
9
|
-
this.
|
|
9
|
+
this.predicateFn = predicateFn;
|
|
10
10
|
this.iterable = iterable;
|
|
11
|
-
this.
|
|
11
|
+
this.throwOnIndexOverflow = throwOnIndexOverflow;
|
|
12
12
|
}
|
|
13
13
|
*[Symbol.iterator]() {
|
|
14
14
|
try {
|
|
15
15
|
let hasMatched = false;
|
|
16
|
-
for (const [index, item] of this.collection.entries(this.
|
|
17
|
-
if (!hasMatched &&
|
|
16
|
+
for (const [index, item] of this.collection.entries(this.throwOnIndexOverflow)) {
|
|
17
|
+
if (!hasMatched &&
|
|
18
|
+
this.predicateFn(item, index, this.collection)) {
|
|
18
19
|
yield* this.iterable;
|
|
19
20
|
hasMatched = true;
|
|
20
21
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insert-before-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/_shared/insert-before-iterable.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EAGf,yBAAyB,GAC5B,MAAM,gCAAgC,CAAC;AAKxC,MAAM,OAAO,oBAAoB;IAIjB;IACA;IACA;IACA;IAJZ,YACY,UAA+B,EAC/B,WAAmD,EACnD,QAAsC,EACtC,oBAA6B;QAH7B,eAAU,GAAV,UAAU,CAAqB;QAC/B,gBAAW,GAAX,WAAW,CAAwC;QACnD,aAAQ,GAAR,QAAQ,CAA8B;QACtC,yBAAoB,GAApB,oBAAoB,CAAS;IACtC,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,oBAAoB,CAC5B,EAAE,CAAC;gBACA,IACI,CAAC,UAAU;oBACX,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,EAChD,CAAC;oBACC,KAAK,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;oBACrB,UAAU,GAAG,IAAI,CAAC;gBACtB,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"}
|
package/dist/esm/collection/iterable-collection/{iterable-helpers → _shared}/map-iterable.js
RENAMED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { CollectionError, UnexpectedCollectionError, } from "../../../contracts/collection/_module";
|
|
2
2
|
export class MapIterable {
|
|
3
3
|
collection;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
constructor(collection,
|
|
4
|
+
mapFn;
|
|
5
|
+
throwOnIndexOverflow;
|
|
6
|
+
constructor(collection, mapFn, throwOnIndexOverflow) {
|
|
7
7
|
this.collection = collection;
|
|
8
|
-
this.
|
|
9
|
-
this.
|
|
8
|
+
this.mapFn = mapFn;
|
|
9
|
+
this.throwOnIndexOverflow = throwOnIndexOverflow;
|
|
10
10
|
}
|
|
11
11
|
*[Symbol.iterator]() {
|
|
12
12
|
try {
|
|
13
|
-
for (const [index, item] of this.collection.entries(this.
|
|
14
|
-
yield this.
|
|
13
|
+
for (const [index, item] of this.collection.entries(this.throwOnIndexOverflow)) {
|
|
14
|
+
yield this.mapFn(item, index, this.collection);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
catch (error) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"map-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/_shared/map-iterable.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EAGf,yBAAyB,GAC5B,MAAM,gCAAgC,CAAC;AAKxC,MAAM,OAAO,WAAW;IAER;IACA;IACA;IAHZ,YACY,UAA+B,EAC/B,KAAgD,EAChD,oBAA6B;QAF7B,eAAU,GAAV,UAAU,CAAqB;QAC/B,UAAK,GAAL,KAAK,CAA2C;QAChD,yBAAoB,GAApB,oBAAoB,CAAS;IACtC,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,oBAAoB,CAC5B,EAAE,CAAC;gBACA,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;YACnD,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 @@
|
|
|
1
|
+
{"version":3,"file":"merge-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/_shared/merge-iterable.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EACf,yBAAyB,GAC5B,MAAM,gCAAgC,CAAC;AAKxC,MAAM,OAAO,aAAa;IAIV;IACA;IAFZ,YACY,SAA2B,EAC3B,SAA8B;QAD9B,cAAS,GAAT,SAAS,CAAkB;QAC3B,cAAS,GAAT,SAAS,CAAqB;IACvC,CAAC;IAEJ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QACd,IAAI,CAAC;YACD,KAAK,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC;YACtB,KAAK,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC;QAC1B,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 @@
|
|
|
1
|
+
{"version":3,"file":"pad-end-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/_shared/pad-end-iterable.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EACf,yBAAyB,GAE5B,MAAM,gCAAgC,CAAC;AAKxC,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 @@
|
|
|
1
|
+
{"version":3,"file":"pad-start-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/_shared/pad-start-iterable.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EACf,yBAAyB,GAE5B,MAAM,gCAAgC,CAAC;AAKxC,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"}
|
package/dist/esm/collection/iterable-collection/{iterable-helpers → _shared}/partion-iterable.js
RENAMED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { CollectionError, UnexpectedCollectionError, } from "../../../contracts/collection/_module";
|
|
2
2
|
export class PartionIterable {
|
|
3
3
|
collection;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
predicateFn;
|
|
5
|
+
throwOnIndexOverflow;
|
|
6
6
|
makeCollection;
|
|
7
|
-
constructor(collection,
|
|
7
|
+
constructor(collection, predicateFn, throwOnIndexOverflow, makeCollection) {
|
|
8
8
|
this.collection = collection;
|
|
9
|
-
this.
|
|
10
|
-
this.
|
|
9
|
+
this.predicateFn = predicateFn;
|
|
10
|
+
this.throwOnIndexOverflow = throwOnIndexOverflow;
|
|
11
11
|
this.makeCollection = makeCollection;
|
|
12
12
|
}
|
|
13
13
|
*[Symbol.iterator]() {
|
|
14
14
|
try {
|
|
15
15
|
let chunkA = this.makeCollection([]), chunkB = this.makeCollection([]);
|
|
16
|
-
for (const [index, item] of this.collection.entries(this.
|
|
17
|
-
if (this.
|
|
16
|
+
for (const [index, item] of this.collection.entries(this.throwOnIndexOverflow)) {
|
|
17
|
+
if (this.predicateFn(item, index, this.collection)) {
|
|
18
18
|
chunkA = chunkA.append([item]);
|
|
19
19
|
}
|
|
20
20
|
else {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"partion-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/_shared/partion-iterable.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EAGf,yBAAyB,GAC5B,MAAM,gCAAgC,CAAC;AAKxC,MAAM,OAAO,eAAe;IAEZ;IACA;IACA;IACA;IAJZ,YACY,UAA+B,EAC/B,WAAmD,EACnD,oBAA6B,EAC7B,cAEgB;QALhB,eAAU,GAAV,UAAU,CAAqB;QAC/B,gBAAW,GAAX,WAAW,CAAwC;QACnD,yBAAoB,GAApB,oBAAoB,CAAS;QAC7B,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,oBAAoB,CAC5B,EAAE,CAAC;gBACA,IAAI,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;oBACjD,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 @@
|
|
|
1
|
+
{"version":3,"file":"repeat-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/_shared/repeat-iterable.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EACf,yBAAyB,GAE5B,MAAM,gCAAgC,CAAC;AAKxC,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"}
|
package/dist/esm/collection/iterable-collection/{iterable-helpers → _shared}/reverse-iterable.js
RENAMED
|
@@ -2,12 +2,12 @@ import { CollectionError, UnexpectedCollectionError, } from "../../../contracts/
|
|
|
2
2
|
export class ReverseIterable {
|
|
3
3
|
collection;
|
|
4
4
|
chunkSize;
|
|
5
|
-
|
|
5
|
+
throwOnIndexOverflow;
|
|
6
6
|
makeCollection;
|
|
7
|
-
constructor(collection, chunkSize,
|
|
7
|
+
constructor(collection, chunkSize, throwOnIndexOverflow, makeCollection) {
|
|
8
8
|
this.collection = collection;
|
|
9
9
|
this.chunkSize = chunkSize;
|
|
10
|
-
this.
|
|
10
|
+
this.throwOnIndexOverflow = throwOnIndexOverflow;
|
|
11
11
|
this.makeCollection = makeCollection;
|
|
12
12
|
}
|
|
13
13
|
*[Symbol.iterator]() {
|
|
@@ -15,11 +15,11 @@ export class ReverseIterable {
|
|
|
15
15
|
const collection = this.makeCollection([]);
|
|
16
16
|
yield* this.collection
|
|
17
17
|
.chunk(this.chunkSize)
|
|
18
|
-
.map((item) => this.makeCollection([...item].reverse()), this.
|
|
18
|
+
.map((item) => this.makeCollection([...item].reverse()), this.throwOnIndexOverflow)
|
|
19
19
|
.reduce({
|
|
20
20
|
reduceFn: (collection, item) => collection.prepend(item),
|
|
21
21
|
initialValue: collection,
|
|
22
|
-
|
|
22
|
+
throwOnIndexOverflow: this.throwOnIndexOverflow,
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
catch (error) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reverse-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/_shared/reverse-iterable.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EACf,yBAAyB,GAE5B,MAAM,gCAAgC,CAAC;AAKxC,MAAM,OAAO,eAAe;IAEZ;IACA;IACA;IACA;IAJZ,YACY,UAA+B,EAC/B,SAAiB,EACjB,oBAA6B,EAC7B,cAEgB;QALhB,eAAU,GAAV,UAAU,CAAqB;QAC/B,cAAS,GAAT,SAAS,CAAQ;QACjB,yBAAoB,GAApB,oBAAoB,CAAS;QAC7B,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,oBAAoB,CAC5B;iBACA,MAAM,CAAC;gBACJ,QAAQ,EAAE,CAAC,UAAU,EAAE,IAAI,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC;gBACxD,YAAY,EAAE,UAAU;gBACxB,oBAAoB,EAAE,IAAI,CAAC,oBAAoB;aAClD,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 @@
|
|
|
1
|
+
{"version":3,"file":"shuffle-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/_shared/shuffle-iterable.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EACf,yBAAyB,GAC5B,MAAM,gCAAgC,CAAC;AAKxC,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"}
|
package/dist/esm/collection/iterable-collection/{iterable-helpers → _shared}/skip-iterable.js
RENAMED
|
@@ -2,19 +2,20 @@ import { CollectionError, UnexpectedCollectionError, } from "../../../contracts/
|
|
|
2
2
|
export class SkipIterable {
|
|
3
3
|
collection;
|
|
4
4
|
offset;
|
|
5
|
-
|
|
6
|
-
constructor(collection, offset,
|
|
5
|
+
throwOnIndexOverflow;
|
|
6
|
+
constructor(collection, offset, throwOnIndexOverflow) {
|
|
7
7
|
this.collection = collection;
|
|
8
8
|
this.offset = offset;
|
|
9
|
-
this.
|
|
9
|
+
this.throwOnIndexOverflow = throwOnIndexOverflow;
|
|
10
10
|
}
|
|
11
11
|
*[Symbol.iterator]() {
|
|
12
12
|
try {
|
|
13
13
|
if (this.offset < 0) {
|
|
14
14
|
this.offset =
|
|
15
|
-
this.collection.size(this.
|
|
15
|
+
this.collection.size(this.throwOnIndexOverflow) +
|
|
16
|
+
this.offset;
|
|
16
17
|
}
|
|
17
|
-
yield* this.collection.skipWhile((_item, index) => index < this.offset, this.
|
|
18
|
+
yield* this.collection.skipWhile((_item, index) => index < this.offset, this.throwOnIndexOverflow);
|
|
18
19
|
}
|
|
19
20
|
catch (error) {
|
|
20
21
|
if (error instanceof CollectionError ||
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skip-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/_shared/skip-iterable.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EAEf,yBAAyB,GAC5B,MAAM,gCAAgC,CAAC;AAKxC,MAAM,OAAO,YAAY;IAET;IACA;IACA;IAHZ,YACY,UAA+B,EAC/B,MAAc,EACd,oBAA6B;QAF7B,eAAU,GAAV,UAAU,CAAqB;QAC/B,WAAM,GAAN,MAAM,CAAQ;QACd,yBAAoB,GAApB,oBAAoB,CAAS;IACtC,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,oBAAoB,CAAC;wBAC/C,IAAI,CAAC,MAAM,CAAC;YACpB,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,oBAAoB,CAC5B,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"}
|
package/dist/esm/collection/iterable-collection/{iterable-helpers → _shared}/skip-until-iterable.js
RENAMED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { CollectionError, UnexpectedCollectionError, } from "../../../contracts/collection/_module";
|
|
2
2
|
export class SkipUntilIterable {
|
|
3
3
|
collection;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
constructor(collection,
|
|
4
|
+
predicateFn;
|
|
5
|
+
throwOnIndexOverflow;
|
|
6
|
+
constructor(collection, predicateFn, throwOnIndexOverflow) {
|
|
7
7
|
this.collection = collection;
|
|
8
|
-
this.
|
|
9
|
-
this.
|
|
8
|
+
this.predicateFn = predicateFn;
|
|
9
|
+
this.throwOnIndexOverflow = throwOnIndexOverflow;
|
|
10
10
|
}
|
|
11
11
|
*[Symbol.iterator]() {
|
|
12
12
|
try {
|
|
13
13
|
let hasMatched = false;
|
|
14
|
-
for (const [index, item] of this.collection.entries(this.
|
|
14
|
+
for (const [index, item] of this.collection.entries(this.throwOnIndexOverflow)) {
|
|
15
15
|
if (!hasMatched) {
|
|
16
|
-
hasMatched = this.
|
|
16
|
+
hasMatched = this.predicateFn(item, index, this.collection);
|
|
17
17
|
}
|
|
18
18
|
if (hasMatched) {
|
|
19
19
|
yield item;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skip-until-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/_shared/skip-until-iterable.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EAGf,yBAAyB,GAC5B,MAAM,gCAAgC,CAAC;AAKxC,MAAM,OAAO,iBAAiB;IAEd;IACA;IACA;IAHZ,YACY,UAA+B,EAC/B,WAAmD,EACnD,oBAA6B;QAF7B,eAAU,GAAV,UAAU,CAAqB;QAC/B,gBAAW,GAAX,WAAW,CAAwC;QACnD,yBAAoB,GAApB,oBAAoB,CAAS;IACtC,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,oBAAoB,CAC5B,EAAE,CAAC;gBACA,IAAI,CAAC,UAAU,EAAE,CAAC;oBACd,UAAU,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;gBAChE,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"}
|
package/dist/esm/collection/iterable-collection/{iterable-helpers → _shared}/slice-iterable.js
RENAMED
|
@@ -3,12 +3,12 @@ export class SliceIterable {
|
|
|
3
3
|
collection;
|
|
4
4
|
start;
|
|
5
5
|
end;
|
|
6
|
-
|
|
7
|
-
constructor(collection, start, end,
|
|
6
|
+
throwOnIndexOverflow;
|
|
7
|
+
constructor(collection, start, end, throwOnIndexOverflow) {
|
|
8
8
|
this.collection = collection;
|
|
9
9
|
this.start = start;
|
|
10
10
|
this.end = end;
|
|
11
|
-
this.
|
|
11
|
+
this.throwOnIndexOverflow = throwOnIndexOverflow;
|
|
12
12
|
}
|
|
13
13
|
*[Symbol.iterator]() {
|
|
14
14
|
try {
|
|
@@ -28,7 +28,7 @@ export class SliceIterable {
|
|
|
28
28
|
}
|
|
29
29
|
yield* this.collection.filter((_item, index) => {
|
|
30
30
|
return start <= index && index < end;
|
|
31
|
-
}, this.
|
|
31
|
+
}, this.throwOnIndexOverflow);
|
|
32
32
|
}
|
|
33
33
|
catch (error) {
|
|
34
34
|
if (error instanceof CollectionError ||
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slice-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/_shared/slice-iterable.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EACf,yBAAyB,GAE5B,MAAM,gCAAgC,CAAC;AAKxC,MAAM,OAAO,aAAa;IAEV;IACA;IACA;IACA;IAJZ,YACY,UAA+B,EAC/B,KAAyB,EACzB,GAAuB,EACvB,oBAA6B;QAH7B,eAAU,GAAV,UAAU,CAAqB;QAC/B,UAAK,GAAL,KAAK,CAAoB;QACzB,QAAG,GAAH,GAAG,CAAoB;QACvB,yBAAoB,GAApB,oBAAoB,CAAS;IACtC,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,oBAAoB,CAAC,CAAC;QAClC,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"}
|
package/dist/esm/collection/iterable-collection/{iterable-helpers → _shared}/sliding-iterable.js
RENAMED
|
@@ -3,26 +3,26 @@ export class SlidingIteralbe {
|
|
|
3
3
|
collection;
|
|
4
4
|
chunkSize;
|
|
5
5
|
step;
|
|
6
|
-
|
|
7
|
-
constructor(collection, chunkSize, step,
|
|
6
|
+
throwOnIndexOverflow;
|
|
7
|
+
constructor(collection, chunkSize, step, throwOnIndexOverflow) {
|
|
8
8
|
this.collection = collection;
|
|
9
9
|
this.chunkSize = chunkSize;
|
|
10
10
|
this.step = step;
|
|
11
|
-
this.
|
|
11
|
+
this.throwOnIndexOverflow = throwOnIndexOverflow;
|
|
12
12
|
}
|
|
13
13
|
*[Symbol.iterator]() {
|
|
14
14
|
try {
|
|
15
15
|
if (this.step <= 0) {
|
|
16
16
|
return;
|
|
17
17
|
}
|
|
18
|
-
const size = this.collection.size(this.
|
|
18
|
+
const size = this.collection.size(this.throwOnIndexOverflow);
|
|
19
19
|
for (let index = 0; index < size; index += this.step) {
|
|
20
20
|
const start = index;
|
|
21
21
|
const end = index + this.chunkSize;
|
|
22
22
|
yield this.collection.slice({
|
|
23
23
|
start,
|
|
24
24
|
end,
|
|
25
|
-
|
|
25
|
+
throwOnIndexOverflow: this.throwOnIndexOverflow,
|
|
26
26
|
});
|
|
27
27
|
if (end >= size) {
|
|
28
28
|
break;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sliding-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/_shared/sliding-iterable.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EAEf,yBAAyB,GAC5B,MAAM,gCAAgC,CAAC;AAKxC,MAAM,OAAO,eAAe;IAEZ;IACA;IACA;IACA;IAJZ,YACY,UAA+B,EAC/B,SAAiB,EACjB,IAAY,EACZ,oBAA6B;QAH7B,eAAU,GAAV,UAAU,CAAqB;QAC/B,cAAS,GAAT,SAAS,CAAQ;QACjB,SAAI,GAAJ,IAAI,CAAQ;QACZ,yBAAoB,GAApB,oBAAoB,CAAS;IACtC,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,oBAAoB,CAAC,CAAC;YAE7D,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,oBAAoB,EAAE,IAAI,CAAC,oBAAoB;iBAClD,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"}
|
package/dist/esm/collection/iterable-collection/{iterable-helpers → _shared}/sort-iterable.js
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { CollectionError, UnexpectedCollectionError, } from "../../../contracts/collection/_module";
|
|
2
2
|
export class SortIterable {
|
|
3
3
|
iterable;
|
|
4
|
-
|
|
5
|
-
constructor(iterable,
|
|
4
|
+
comparator;
|
|
5
|
+
constructor(iterable, comparator) {
|
|
6
6
|
this.iterable = iterable;
|
|
7
|
-
this.
|
|
7
|
+
this.comparator = comparator;
|
|
8
8
|
}
|
|
9
9
|
*[Symbol.iterator]() {
|
|
10
10
|
try {
|
|
11
|
-
yield* [...this.iterable].sort(this.
|
|
11
|
+
yield* [...this.iterable].sort(this.comparator);
|
|
12
12
|
}
|
|
13
13
|
catch (error) {
|
|
14
14
|
if (error instanceof CollectionError ||
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sort-iterable.js","sourceRoot":"","sources":["../../../../../src/collection/iterable-collection/_shared/sort-iterable.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EACf,yBAAyB,GAE5B,MAAM,gCAAgC,CAAC;AAKxC,MAAM,OAAO,YAAY;IAET;IACA;IAFZ,YACY,QAA0B,EAC1B,UAA+B;QAD/B,aAAQ,GAAR,QAAQ,CAAkB;QAC1B,eAAU,GAAV,UAAU,CAAqB;IACxC,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,UAAU,CAAC,CAAC;QACpD,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"}
|