@thi.ng/transducers 7.9.2 → 8.0.4
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/CHANGELOG.md +354 -420
- package/README.md +242 -219
- package/{rfn/add.d.ts → add.d.ts} +1 -1
- package/{rfn/add.js → add.js} +1 -1
- package/api.d.ts +1 -1
- package/{iter/as-iterable.d.ts → as-iterable.d.ts} +0 -0
- package/{iter/as-iterable.js → as-iterable.js} +0 -0
- package/{rfn/assoc-map.d.ts → assoc-map.d.ts} +1 -1
- package/{rfn/assoc-map.js → assoc-map.js} +1 -1
- package/{rfn/assoc-obj.d.ts → assoc-obj.d.ts} +1 -1
- package/{rfn/assoc-obj.js → assoc-obj.js} +1 -1
- package/{rfn/auto-obj.d.ts → auto-obj.d.ts} +1 -1
- package/{rfn/auto-obj.js → auto-obj.js} +1 -1
- package/{xform/benchmark.d.ts → benchmark.d.ts} +1 -1
- package/{xform/benchmark.js → benchmark.js} +3 -3
- package/{xform/cat.d.ts → cat.d.ts} +1 -1
- package/{xform/cat.js → cat.js} +2 -2
- package/{iter/choices.d.ts → choices.d.ts} +1 -1
- package/{iter/choices.js → choices.js} +4 -3
- package/{func/comp.d.ts → comp.d.ts} +1 -1
- package/{func/comp.js → comp.js} +2 -2
- package/{func/compr.d.ts → compr.d.ts} +1 -1
- package/{func/compr.js → compr.js} +0 -0
- package/{iter/concat.d.ts → concat.d.ts} +0 -0
- package/{iter/concat.js → concat.js} +1 -1
- package/{rfn/conj.d.ts → conj.d.ts} +1 -1
- package/{rfn/conj.js → conj.js} +1 -1
- package/{xform/converge.d.ts → converge.d.ts} +2 -2
- package/{xform/converge.js → converge.js} +5 -5
- package/{xform/convolve.d.ts → convolve.d.ts} +1 -1
- package/{xform/convolve.js → convolve.js} +8 -8
- package/{rfn/count.d.ts → count.d.ts} +1 -1
- package/{rfn/count.js → count.js} +1 -1
- package/{iter/curve.d.ts → curve.d.ts} +0 -0
- package/{iter/curve.js → curve.js} +0 -0
- package/{iter/cycle.d.ts → cycle.d.ts} +0 -0
- package/{iter/cycle.js → cycle.js} +0 -0
- package/{xform/dedupe.d.ts → dedupe.d.ts} +2 -2
- package/{xform/dedupe.js → dedupe.js} +4 -4
- package/{func/deep-transform.d.ts → deep-transform.d.ts} +2 -2
- package/{func/deep-transform.js → deep-transform.js} +3 -3
- package/{xform/delayed.d.ts → delayed.d.ts} +1 -1
- package/{xform/delayed.js → delayed.js} +2 -2
- package/{xform/distinct.d.ts → distinct.d.ts} +1 -1
- package/{xform/distinct.js → distinct.js} +3 -3
- package/{rfn/div.d.ts → div.d.ts} +1 -1
- package/{rfn/div.js → div.js} +1 -1
- package/{xform/drop-nth.d.ts → drop-nth.d.ts} +1 -1
- package/{xform/drop-nth.js → drop-nth.js} +4 -4
- package/{xform/drop-while.d.ts → drop-while.d.ts} +1 -1
- package/{xform/drop-while.js → drop-while.js} +3 -3
- package/{xform/drop.d.ts → drop.d.ts} +1 -1
- package/{xform/drop.js → drop.js} +3 -3
- package/{iter/dup.d.ts → dup.d.ts} +0 -0
- package/dup.js +11 -0
- package/{xform/duplicate.d.ts → duplicate.d.ts} +1 -1
- package/{xform/duplicate.js → duplicate.js} +4 -4
- package/ensure.d.ts +3 -0
- package/{internal/ensure.js → ensure.js} +1 -1
- package/{rfn/every.d.ts → every.d.ts} +1 -1
- package/{rfn/every.js → every.js} +2 -2
- package/{iter/extend-sides.d.ts → extend-sides.d.ts} +0 -0
- package/{iter/extend-sides.js → extend-sides.js} +2 -2
- package/{rfn/fill.d.ts → fill.d.ts} +1 -1
- package/{rfn/fill.js → fill.js} +1 -1
- package/{xform/filter-fuzzy.d.ts → filter-fuzzy.d.ts} +1 -1
- package/{xform/filter-fuzzy.js → filter-fuzzy.js} +4 -4
- package/{xform/filter.d.ts → filter.d.ts} +1 -1
- package/{xform/filter.js → filter.js} +3 -3
- package/{xform/flatten-with.d.ts → flatten-with.d.ts} +1 -1
- package/{xform/flatten-with.js → flatten-with.js} +5 -4
- package/{xform/flatten.d.ts → flatten.d.ts} +1 -1
- package/flatten.js +5 -0
- package/{rfn/frequencies.d.ts → frequencies.d.ts} +1 -1
- package/frequencies.js +8 -0
- package/{rfn/group-binary.d.ts → group-binary.d.ts} +1 -1
- package/{rfn/group-binary.js → group-binary.js} +3 -3
- package/{rfn/group-by-map.d.ts → group-by-map.d.ts} +1 -1
- package/{rfn/group-by-map.js → group-by-map.js} +2 -2
- package/{rfn/group-by-obj.d.ts → group-by-obj.d.ts} +1 -1
- package/{rfn/group-by-obj.js → group-by-obj.js} +2 -2
- package/index.d.ts +145 -144
- package/index.js +149 -144
- package/{xform/indexed.d.ts → indexed.d.ts} +1 -1
- package/{xform/indexed.js → indexed.js} +3 -3
- package/{xform/interleave.d.ts → interleave.d.ts} +1 -1
- package/{xform/interleave.js → interleave.js} +4 -4
- package/internal/drain.d.ts +1 -1
- package/internal/drain.js +1 -1
- package/internal/group-opts.d.ts +1 -1
- package/internal/group-opts.js +6 -3
- package/internal/mathop.d.ts +1 -1
- package/internal/mathop.js +1 -1
- package/internal/sort-opts.d.ts +1 -1
- package/internal/sort-opts.js +6 -3
- package/{xform/interpolate-hermite.d.ts → interpolate-hermite.d.ts} +1 -1
- package/{xform/interpolate-hermite.js → interpolate-hermite.js} +2 -2
- package/{xform/interpolate-linear.d.ts → interpolate-linear.d.ts} +1 -1
- package/{xform/interpolate-linear.js → interpolate-linear.js} +2 -2
- package/{xform/interpolate.d.ts → interpolate.d.ts} +1 -1
- package/interpolate.js +12 -0
- package/{xform/interpose.d.ts → interpose.d.ts} +1 -1
- package/{xform/interpose.js → interpose.js} +4 -4
- package/{iter/iterate.d.ts → iterate.d.ts} +0 -0
- package/{iter/iterate.js → iterate.js} +0 -0
- package/iterator.d.ts +3 -3
- package/iterator.js +6 -6
- package/{func/juxtr.d.ts → juxtr.d.ts} +1 -1
- package/{func/juxtr.js → juxtr.js} +1 -1
- package/{xform/keep.d.ts → keep.d.ts} +7 -1
- package/{xform/keep.js → keep.js} +4 -4
- package/{iter/key-permutations.d.ts → key-permutations.d.ts} +0 -0
- package/{iter/key-permutations.js → key-permutations.js} +6 -6
- package/{func/key-selector.d.ts → key-selector.d.ts} +0 -0
- package/{func/key-selector.js → key-selector.js} +1 -1
- package/{iter/keys.d.ts → keys.d.ts} +0 -0
- package/{iter/keys.js → keys.js} +0 -0
- package/{xform/labeled.d.ts → labeled.d.ts} +1 -1
- package/labeled.js +9 -0
- package/{rfn/last.d.ts → last.d.ts} +1 -1
- package/{rfn/last.js → last.js} +2 -2
- package/{iter/line.d.ts → line.d.ts} +0 -0
- package/{iter/line.js → line.js} +2 -2
- package/{func/lookup.d.ts → lookup.d.ts} +0 -0
- package/{func/lookup.js → lookup.js} +0 -0
- package/{xform/map-deep.d.ts → map-deep.d.ts} +1 -1
- package/map-deep.js +9 -0
- package/{xform/map-indexed.d.ts → map-indexed.d.ts} +1 -1
- package/{xform/map-indexed.js → map-indexed.js} +3 -3
- package/{xform/map-keys.d.ts → map-keys.d.ts} +1 -1
- package/{xform/map-keys.js → map-keys.js} +3 -3
- package/{xform/map-nth.d.ts → map-nth.d.ts} +1 -1
- package/{xform/map-nth.js → map-nth.js} +3 -3
- package/{xform/map-vals.d.ts → map-vals.d.ts} +1 -1
- package/{xform/map-vals.js → map-vals.js} +3 -3
- package/{xform/map.d.ts → map.d.ts} +1 -1
- package/{xform/map.js → map.js} +3 -3
- package/{xform/mapcat-indexed.d.ts → mapcat-indexed.d.ts} +1 -1
- package/mapcat-indexed.js +8 -0
- package/{xform/mapcat.d.ts → mapcat.d.ts} +1 -1
- package/mapcat.js +8 -0
- package/{xform/match-first.d.ts → match-first.d.ts} +1 -1
- package/match-first.js +10 -0
- package/{xform/match-last.d.ts → match-last.d.ts} +1 -1
- package/match-last.js +10 -0
- package/{rfn/max-compare.d.ts → max-compare.d.ts} +1 -1
- package/{rfn/max-compare.js → max-compare.js} +2 -2
- package/{rfn/max-mag.d.ts → max-mag.d.ts} +1 -1
- package/{rfn/max-mag.js → max-mag.js} +1 -1
- package/{rfn/max.d.ts → max.d.ts} +1 -1
- package/{rfn/max.js → max.js} +1 -1
- package/{rfn/mean.d.ts → mean.d.ts} +1 -1
- package/{rfn/mean.js → mean.js} +1 -1
- package/{rfn/min-compare.d.ts → min-compare.d.ts} +1 -1
- package/{rfn/min-compare.js → min-compare.js} +2 -2
- package/{rfn/min-mag.d.ts → min-mag.d.ts} +1 -1
- package/{rfn/min-mag.js → min-mag.js} +1 -1
- package/{rfn/min-max.d.ts → min-max.d.ts} +1 -1
- package/{rfn/min-max.js → min-max.js} +3 -3
- package/{rfn/min.d.ts → min.d.ts} +1 -1
- package/{rfn/min.js → min.js} +1 -1
- package/{xform/moving-average.d.ts → moving-average.d.ts} +1 -1
- package/{xform/moving-average.js → moving-average.js} +4 -4
- package/{xform/moving-median.d.ts → moving-median.d.ts} +1 -1
- package/{xform/moving-median.js → moving-median.js} +6 -6
- package/{rfn/mul.d.ts → mul.d.ts} +1 -1
- package/{rfn/mul.js → mul.js} +1 -1
- package/{xform/multiplex-obj.d.ts → multiplex-obj.d.ts} +1 -1
- package/{xform/multiplex-obj.js → multiplex-obj.js} +5 -5
- package/{xform/multiplex.d.ts → multiplex.d.ts} +1 -1
- package/multiplex.js +6 -0
- package/{xform/noop.d.ts → noop.d.ts} +1 -1
- package/{xform/noop.js → noop.js} +0 -0
- package/{rfn/norm-count.d.ts → norm-count.d.ts} +1 -1
- package/{rfn/norm-count.js → norm-count.js} +1 -1
- package/{rfn/norm-frequencies-auto.d.ts → norm-frequencies-auto.d.ts} +1 -1
- package/{rfn/norm-frequencies-auto.js → norm-frequencies-auto.js} +2 -2
- package/{rfn/norm-frequencies.d.ts → norm-frequencies.d.ts} +1 -1
- package/{rfn/norm-frequencies.js → norm-frequencies.js} +4 -4
- package/{iter/norm-range.d.ts → norm-range.d.ts} +0 -0
- package/{iter/norm-range.js → norm-range.js} +1 -1
- package/package.json +470 -34
- package/{xform/pad-last.d.ts → pad-last.d.ts} +1 -1
- package/{xform/pad-last.js → pad-last.js} +3 -3
- package/{iter/pad-sides.d.ts → pad-sides.d.ts} +0 -0
- package/{iter/pad-sides.js → pad-sides.js} +2 -2
- package/{xform/page.d.ts → page.d.ts} +1 -1
- package/page.js +8 -0
- package/{iter/pairs.d.ts → pairs.d.ts} +0 -0
- package/{iter/pairs.js → pairs.js} +0 -0
- package/{iter/palindrome.d.ts → palindrome.d.ts} +0 -0
- package/palindrome.js +13 -0
- package/{xform/partition-by.d.ts → partition-by.d.ts} +2 -2
- package/{xform/partition-by.js → partition-by.js} +4 -4
- package/{xform/partition-of.d.ts → partition-of.d.ts} +1 -1
- package/{xform/partition-of.js → partition-of.js} +3 -3
- package/{xform/partition-sort.d.ts → partition-sort.d.ts} +1 -1
- package/partition-sort.js +13 -0
- package/{xform/partition-sync.d.ts → partition-sync.d.ts} +1 -1
- package/{xform/partition-sync.js → partition-sync.js} +15 -8
- package/{xform/partition-time.d.ts → partition-time.d.ts} +1 -1
- package/{xform/partition-time.js → partition-time.js} +3 -3
- package/{xform/partition-when.d.ts → partition-when.d.ts} +1 -1
- package/{xform/partition-when.js → partition-when.js} +3 -3
- package/{xform/partition.d.ts → partition.d.ts} +1 -1
- package/{xform/partition.js → partition.js} +2 -2
- package/{xform/peek.d.ts → peek.d.ts} +1 -1
- package/peek.js +5 -0
- package/{iter/permutations.d.ts → permutations.d.ts} +0 -0
- package/{iter/permutations.js → permutations.js} +3 -3
- package/{xform/pluck.d.ts → pluck.d.ts} +1 -1
- package/pluck.js +8 -0
- package/push-copy.d.ts +3 -0
- package/{rfn/push-copy.js → push-copy.js} +1 -1
- package/{rfn/push-sort.d.ts → push-sort.d.ts} +1 -1
- package/{rfn/push-sort.js → push-sort.js} +1 -1
- package/{rfn/push.d.ts → push.d.ts} +1 -1
- package/{rfn/push.js → push.js} +1 -1
- package/{iter/range-nd.d.ts → range-nd.d.ts} +0 -0
- package/{iter/range-nd.js → range-nd.js} +4 -4
- package/{iter/range.d.ts → range.d.ts} +2 -2
- package/{iter/range.js → range.js} +1 -1
- package/{iter/range2d.d.ts → range2d.d.ts} +0 -0
- package/{iter/range2d.js → range2d.js} +2 -2
- package/{iter/range3d.d.ts → range3d.d.ts} +0 -0
- package/{iter/range3d.js → range3d.js} +2 -2
- package/reduce.d.ts +1 -1
- package/reduce.js +5 -3
- package/{rfn/reductions.d.ts → reductions.d.ts} +1 -1
- package/{rfn/reductions.js → reductions.js} +2 -2
- package/{xform/rename.d.ts → rename.d.ts} +1 -1
- package/{xform/rename.js → rename.js} +8 -8
- package/renamer.d.ts +9 -0
- package/{func/renamer.js → renamer.js} +6 -0
- package/{iter/repeat.d.ts → repeat.d.ts} +0 -0
- package/{iter/repeat.js → repeat.js} +0 -0
- package/{iter/repeatedly.d.ts → repeatedly.d.ts} +0 -0
- package/{iter/repeatedly.js → repeatedly.js} +0 -0
- package/{iter/reverse.d.ts → reverse.d.ts} +0 -0
- package/{iter/reverse.js → reverse.js} +1 -1
- package/run.d.ts +2 -2
- package/run.js +2 -2
- package/{xform/sample.d.ts → sample.d.ts} +2 -2
- package/{xform/sample.js → sample.js} +4 -4
- package/{xform/scan.d.ts → scan.d.ts} +1 -1
- package/{xform/scan.js → scan.js} +3 -3
- package/{xform/select-keys.d.ts → select-keys.d.ts} +1 -1
- package/select-keys.js +9 -0
- package/{xform/side-effect.d.ts → side-effect.d.ts} +1 -1
- package/{xform/side-effect.js → side-effect.js} +1 -1
- package/{xform/sliding-window.d.ts → sliding-window.d.ts} +2 -2
- package/{xform/sliding-window.js → sliding-window.js} +4 -4
- package/{rfn/some.d.ts → some.d.ts} +1 -1
- package/{rfn/some.js → some.js} +2 -2
- package/{iter/sorted-keys.d.ts → sorted-keys.d.ts} +0 -0
- package/{iter/sorted-keys.js → sorted-keys.js} +1 -1
- package/step.d.ts +1 -1
- package/step.js +3 -3
- package/{rfn/str.d.ts → str.d.ts} +1 -1
- package/{rfn/str.js → str.js} +1 -1
- package/{xform/stream-shuffle.d.ts → stream-shuffle.d.ts} +1 -1
- package/{xform/stream-shuffle.js → stream-shuffle.js} +4 -4
- package/{xform/stream-sort.d.ts → stream-sort.d.ts} +1 -1
- package/{xform/stream-sort.js → stream-sort.js} +5 -5
- package/{xform/struct.d.ts → struct.d.ts} +1 -1
- package/{xform/struct.js → struct.js} +7 -7
- package/{rfn/sub.d.ts → sub.d.ts} +1 -1
- package/{rfn/sub.js → sub.js} +1 -1
- package/{xform/swizzle.d.ts → swizzle.d.ts} +1 -1
- package/swizzle.js +9 -0
- package/{iter/symmetric.d.ts → symmetric.d.ts} +0 -0
- package/{iter/symmetric.js → symmetric.js} +0 -0
- package/{xform/take-last.d.ts → take-last.d.ts} +1 -1
- package/{xform/take-last.js → take-last.js} +3 -3
- package/{xform/take-nth.d.ts → take-nth.d.ts} +1 -1
- package/{xform/take-nth.js → take-nth.js} +4 -4
- package/{xform/take-while.d.ts → take-while.d.ts} +1 -1
- package/{xform/take-while.js → take-while.js} +4 -4
- package/{xform/take.d.ts → take.d.ts} +1 -1
- package/{xform/take.js → take.js} +4 -4
- package/{xform/throttle-time.d.ts → throttle-time.d.ts} +1 -1
- package/{xform/throttle-time.js → throttle-time.js} +3 -3
- package/{xform/throttle.d.ts → throttle.d.ts} +1 -1
- package/{xform/throttle.js → throttle.js} +3 -3
- package/{xform/toggle.d.ts → toggle.d.ts} +1 -1
- package/{xform/toggle.js → toggle.js} +2 -2
- package/trace.d.ts +3 -0
- package/{xform/trace.js → trace.js} +1 -1
- package/transduce.d.ts +1 -1
- package/transduce.js +4 -4
- package/{iter/tween.d.ts → tween.d.ts} +0 -0
- package/{iter/tween.js → tween.js} +2 -2
- package/{iter/vals.d.ts → vals.d.ts} +0 -0
- package/{iter/vals.js → vals.js} +0 -0
- package/{xform/word-wrap.d.ts → word-wrap.d.ts} +1 -1
- package/{xform/word-wrap.js → word-wrap.js} +8 -4
- package/{iter/wrap-sides.d.ts → wrap-sides.d.ts} +0 -0
- package/{iter/wrap-sides.js → wrap-sides.js} +3 -3
- package/{iter/zip.d.ts → zip.d.ts} +0 -0
- package/{iter/zip.js → zip.js} +0 -0
- package/func/renamer.d.ts +0 -3
- package/internal/ensure.d.ts +0 -3
- package/iter/dup.js +0 -10
- package/iter/palindrome.js +0 -12
- package/lib/index.js +0 -2228
- package/lib/index.js.map +0 -1
- package/lib/index.umd.js +0 -1
- package/lib/index.umd.js.map +0 -1
- package/rfn/frequencies.js +0 -8
- package/rfn/push-copy.d.ts +0 -3
- package/xform/flatten.js +0 -5
- package/xform/interpolate.js +0 -13
- package/xform/labeled.js +0 -8
- package/xform/map-deep.js +0 -9
- package/xform/mapcat-indexed.js +0 -8
- package/xform/mapcat.js +0 -8
- package/xform/match-first.js +0 -10
- package/xform/match-last.js +0 -10
- package/xform/multiplex.js +0 -6
- package/xform/page.js +0 -8
- package/xform/partition-sort.js +0 -13
- package/xform/peek.js +0 -5
- package/xform/pluck.js +0 -8
- package/xform/select-keys.js +0 -9
- package/xform/swizzle.js +0 -9
- package/xform/trace.d.ts +0 -3
package/index.js
CHANGED
|
@@ -1,144 +1,149 @@
|
|
|
1
|
-
export * from "./api";
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./
|
|
5
|
-
export * from "./
|
|
6
|
-
export * from "./
|
|
7
|
-
export * from "./
|
|
8
|
-
export * from "./
|
|
9
|
-
|
|
10
|
-
export * from "./
|
|
11
|
-
export * from "./
|
|
12
|
-
export * from "./
|
|
13
|
-
export * from "./
|
|
14
|
-
export * from "./
|
|
15
|
-
export * from "./
|
|
16
|
-
export * from "./
|
|
17
|
-
|
|
18
|
-
export * from "./
|
|
19
|
-
export * from "./
|
|
20
|
-
export * from "./
|
|
21
|
-
export * from "./
|
|
22
|
-
export * from "./
|
|
23
|
-
export * from "./
|
|
24
|
-
export * from "./
|
|
25
|
-
export * from "./
|
|
26
|
-
export * from "./
|
|
27
|
-
export * from "./
|
|
28
|
-
export * from "./
|
|
29
|
-
export * from "./
|
|
30
|
-
export * from "./
|
|
31
|
-
export * from "./
|
|
32
|
-
export * from "./
|
|
33
|
-
export * from "./
|
|
34
|
-
export * from "./
|
|
35
|
-
export * from "./
|
|
36
|
-
export * from "./
|
|
37
|
-
export * from "./
|
|
38
|
-
export * from "./
|
|
39
|
-
export * from "./
|
|
40
|
-
export * from "./
|
|
41
|
-
export * from "./
|
|
42
|
-
export * from "./
|
|
43
|
-
export * from "./
|
|
44
|
-
export * from "./
|
|
45
|
-
export * from "./
|
|
46
|
-
export * from "./
|
|
47
|
-
export * from "./
|
|
48
|
-
export * from "./
|
|
49
|
-
export * from "./
|
|
50
|
-
export * from "./
|
|
51
|
-
|
|
52
|
-
export * from "./
|
|
53
|
-
export * from "./
|
|
54
|
-
export * from "./
|
|
55
|
-
export * from "./
|
|
56
|
-
export * from "./
|
|
57
|
-
export * from "./
|
|
58
|
-
export * from "./
|
|
59
|
-
export * from "./
|
|
60
|
-
export * from "./
|
|
61
|
-
export * from "./
|
|
62
|
-
export * from "./
|
|
63
|
-
export * from "./
|
|
64
|
-
export * from "./
|
|
65
|
-
export * from "./
|
|
66
|
-
export * from "./
|
|
67
|
-
export * from "./
|
|
68
|
-
export * from "./
|
|
69
|
-
export * from "./
|
|
70
|
-
export * from "./
|
|
71
|
-
export * from "./
|
|
72
|
-
export * from "./
|
|
73
|
-
export * from "./
|
|
74
|
-
export * from "./
|
|
75
|
-
export * from "./
|
|
76
|
-
export * from "./
|
|
77
|
-
export * from "./
|
|
78
|
-
export * from "./
|
|
79
|
-
export * from "./
|
|
80
|
-
export * from "./
|
|
81
|
-
export * from "./
|
|
82
|
-
export * from "./
|
|
83
|
-
export * from "./
|
|
84
|
-
export * from "./
|
|
85
|
-
export * from "./
|
|
86
|
-
export * from "./
|
|
87
|
-
export * from "./
|
|
88
|
-
export * from "./
|
|
89
|
-
export * from "./
|
|
90
|
-
export * from "./
|
|
91
|
-
export * from "./
|
|
92
|
-
export * from "./
|
|
93
|
-
export * from "./
|
|
94
|
-
export * from "./
|
|
95
|
-
export * from "./
|
|
96
|
-
export * from "./
|
|
97
|
-
export * from "./
|
|
98
|
-
export * from "./
|
|
99
|
-
export * from "./
|
|
100
|
-
export * from "./
|
|
101
|
-
export * from "./
|
|
102
|
-
export * from "./
|
|
103
|
-
export * from "./
|
|
104
|
-
export * from "./
|
|
105
|
-
export * from "./
|
|
106
|
-
export * from "./
|
|
107
|
-
export * from "./
|
|
108
|
-
export * from "./
|
|
109
|
-
export * from "./
|
|
110
|
-
export * from "./
|
|
111
|
-
export * from "./
|
|
112
|
-
export * from "./
|
|
113
|
-
export * from "./
|
|
114
|
-
export * from "./
|
|
115
|
-
export * from "./
|
|
116
|
-
export * from "./
|
|
117
|
-
export * from "./
|
|
118
|
-
export * from "./
|
|
119
|
-
export * from "./
|
|
120
|
-
|
|
121
|
-
export * from "./
|
|
122
|
-
export * from "./
|
|
123
|
-
export * from "./
|
|
124
|
-
export * from "./
|
|
125
|
-
export * from "./
|
|
126
|
-
export * from "./
|
|
127
|
-
export * from "./
|
|
128
|
-
export * from "./
|
|
129
|
-
export * from "./
|
|
130
|
-
export * from "./
|
|
131
|
-
export * from "./
|
|
132
|
-
export * from "./
|
|
133
|
-
export * from "./
|
|
134
|
-
export * from "./
|
|
135
|
-
export * from "./
|
|
136
|
-
export * from "./
|
|
137
|
-
export * from "./
|
|
138
|
-
export * from "./
|
|
139
|
-
export * from "./
|
|
140
|
-
export * from "./
|
|
141
|
-
export * from "./
|
|
142
|
-
export * from "./
|
|
143
|
-
export * from "./
|
|
144
|
-
export * from "./
|
|
1
|
+
export * from "./api.js";
|
|
2
|
+
export * from "./ensure.js";
|
|
3
|
+
export * from "./iterator.js";
|
|
4
|
+
export * from "./reduce.js";
|
|
5
|
+
export * from "./reduced.js";
|
|
6
|
+
export * from "./run.js";
|
|
7
|
+
export * from "./step.js";
|
|
8
|
+
export * from "./transduce.js";
|
|
9
|
+
// helpers
|
|
10
|
+
export * from "./comp.js";
|
|
11
|
+
export * from "./compr.js";
|
|
12
|
+
export * from "./deep-transform.js";
|
|
13
|
+
export * from "./juxtr.js";
|
|
14
|
+
export * from "./lookup.js";
|
|
15
|
+
export * from "./key-selector.js";
|
|
16
|
+
export * from "./renamer.js";
|
|
17
|
+
// reducers
|
|
18
|
+
export * from "./add.js";
|
|
19
|
+
export * from "./assoc-map.js";
|
|
20
|
+
export * from "./assoc-obj.js";
|
|
21
|
+
export * from "./auto-obj.js";
|
|
22
|
+
export * from "./conj.js";
|
|
23
|
+
export * from "./count.js";
|
|
24
|
+
export * from "./div.js";
|
|
25
|
+
export * from "./every.js";
|
|
26
|
+
export * from "./fill.js";
|
|
27
|
+
export * from "./frequencies.js";
|
|
28
|
+
export * from "./group-binary.js";
|
|
29
|
+
export * from "./group-by-map.js";
|
|
30
|
+
export * from "./group-by-obj.js";
|
|
31
|
+
export * from "./last.js";
|
|
32
|
+
export * from "./max.js";
|
|
33
|
+
export * from "./max-compare.js";
|
|
34
|
+
export * from "./max-mag.js";
|
|
35
|
+
export * from "./mean.js";
|
|
36
|
+
export * from "./min.js";
|
|
37
|
+
export * from "./min-compare.js";
|
|
38
|
+
export * from "./min-mag.js";
|
|
39
|
+
export * from "./min-max.js";
|
|
40
|
+
export * from "./mul.js";
|
|
41
|
+
export * from "./norm-count.js";
|
|
42
|
+
export * from "./norm-frequencies.js";
|
|
43
|
+
export * from "./norm-frequencies-auto.js";
|
|
44
|
+
export * from "./push.js";
|
|
45
|
+
export * from "./push-copy.js";
|
|
46
|
+
export * from "./push-sort.js";
|
|
47
|
+
export * from "./reductions.js";
|
|
48
|
+
export * from "./some.js";
|
|
49
|
+
export * from "./str.js";
|
|
50
|
+
export * from "./sub.js";
|
|
51
|
+
// transducers
|
|
52
|
+
export * from "./benchmark.js";
|
|
53
|
+
export * from "./cat.js";
|
|
54
|
+
export * from "./converge.js";
|
|
55
|
+
export * from "./convolve.js";
|
|
56
|
+
export * from "./dedupe.js";
|
|
57
|
+
export * from "./delayed.js";
|
|
58
|
+
export * from "./distinct.js";
|
|
59
|
+
export * from "./drop-nth.js";
|
|
60
|
+
export * from "./drop-while.js";
|
|
61
|
+
export * from "./drop.js";
|
|
62
|
+
export * from "./duplicate.js";
|
|
63
|
+
export * from "./filter.js";
|
|
64
|
+
export * from "./filter-fuzzy.js";
|
|
65
|
+
export * from "./flatten-with.js";
|
|
66
|
+
export * from "./flatten.js";
|
|
67
|
+
export * from "./indexed.js";
|
|
68
|
+
export * from "./interleave.js";
|
|
69
|
+
export * from "./interpolate.js";
|
|
70
|
+
export * from "./interpolate-hermite.js";
|
|
71
|
+
export * from "./interpolate-linear.js";
|
|
72
|
+
export * from "./interpose.js";
|
|
73
|
+
export * from "./keep.js";
|
|
74
|
+
export * from "./labeled.js";
|
|
75
|
+
export * from "./map-deep.js";
|
|
76
|
+
export * from "./map-indexed.js";
|
|
77
|
+
export * from "./map-keys.js";
|
|
78
|
+
export * from "./map-nth.js";
|
|
79
|
+
export * from "./map-vals.js";
|
|
80
|
+
export * from "./map.js";
|
|
81
|
+
export * from "./mapcat.js";
|
|
82
|
+
export * from "./mapcat-indexed.js";
|
|
83
|
+
export * from "./match-first.js";
|
|
84
|
+
export * from "./match-last.js";
|
|
85
|
+
export * from "./moving-average.js";
|
|
86
|
+
export * from "./moving-median.js";
|
|
87
|
+
export * from "./multiplex.js";
|
|
88
|
+
export * from "./multiplex-obj.js";
|
|
89
|
+
export * from "./noop.js";
|
|
90
|
+
export * from "./pad-last.js";
|
|
91
|
+
export * from "./page.js";
|
|
92
|
+
export * from "./partition-by.js";
|
|
93
|
+
export * from "./partition-of.js";
|
|
94
|
+
export * from "./partition-sort.js";
|
|
95
|
+
export * from "./partition-sync.js";
|
|
96
|
+
export * from "./partition-time.js";
|
|
97
|
+
export * from "./partition-when.js";
|
|
98
|
+
export * from "./partition.js";
|
|
99
|
+
export * from "./peek.js";
|
|
100
|
+
export * from "./pluck.js";
|
|
101
|
+
export * from "./rename.js";
|
|
102
|
+
export * from "./sample.js";
|
|
103
|
+
export * from "./scan.js";
|
|
104
|
+
export * from "./select-keys.js";
|
|
105
|
+
export * from "./side-effect.js";
|
|
106
|
+
export * from "./sliding-window.js";
|
|
107
|
+
export * from "./stream-shuffle.js";
|
|
108
|
+
export * from "./stream-sort.js";
|
|
109
|
+
export * from "./struct.js";
|
|
110
|
+
export * from "./swizzle.js";
|
|
111
|
+
export * from "./take-nth.js";
|
|
112
|
+
export * from "./take-last.js";
|
|
113
|
+
export * from "./take-while.js";
|
|
114
|
+
export * from "./take.js";
|
|
115
|
+
export * from "./throttle.js";
|
|
116
|
+
export * from "./throttle-time.js";
|
|
117
|
+
export * from "./toggle.js";
|
|
118
|
+
export * from "./trace.js";
|
|
119
|
+
export * from "./word-wrap.js";
|
|
120
|
+
// iterators
|
|
121
|
+
export * from "./as-iterable.js";
|
|
122
|
+
export * from "./choices.js";
|
|
123
|
+
export * from "./concat.js";
|
|
124
|
+
export * from "./curve.js";
|
|
125
|
+
export * from "./cycle.js";
|
|
126
|
+
export * from "./dup.js";
|
|
127
|
+
export * from "./extend-sides.js";
|
|
128
|
+
export * from "./iterate.js";
|
|
129
|
+
export * from "./key-permutations.js";
|
|
130
|
+
export * from "./keys.js";
|
|
131
|
+
export * from "./line.js";
|
|
132
|
+
export * from "./norm-range.js";
|
|
133
|
+
export * from "./pad-sides.js";
|
|
134
|
+
export * from "./palindrome.js";
|
|
135
|
+
export * from "./pairs.js";
|
|
136
|
+
export * from "./permutations.js";
|
|
137
|
+
export * from "./range.js";
|
|
138
|
+
export * from "./range2d.js";
|
|
139
|
+
export * from "./range3d.js";
|
|
140
|
+
export * from "./range-nd.js";
|
|
141
|
+
export * from "./repeat.js";
|
|
142
|
+
export * from "./repeatedly.js";
|
|
143
|
+
export * from "./reverse.js";
|
|
144
|
+
export * from "./sorted-keys.js";
|
|
145
|
+
export * from "./symmetric.js";
|
|
146
|
+
export * from "./tween.js";
|
|
147
|
+
export * from "./vals.js";
|
|
148
|
+
export * from "./wrap-sides.js";
|
|
149
|
+
export * from "./zip.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Transducer } from "
|
|
1
|
+
import type { Transducer } from "./api.js";
|
|
2
2
|
export declare function indexed<T>(from?: number): Transducer<T, [number, T]>;
|
|
3
3
|
export declare function indexed<T>(src: Iterable<T>): IterableIterator<[number, T]>;
|
|
4
4
|
export declare function indexed<T>(from: number, src: Iterable<T>): IterableIterator<[number, T]>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { mapIndexed } from "./map-indexed";
|
|
1
|
+
import { __iter } from "./iterator.js";
|
|
2
|
+
import { mapIndexed } from "./map-indexed.js";
|
|
3
3
|
export function indexed(...args) {
|
|
4
|
-
const iter =
|
|
4
|
+
const iter = __iter(indexed, args);
|
|
5
5
|
if (iter) {
|
|
6
6
|
return iter;
|
|
7
7
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Fn0 } from "@thi.ng/api";
|
|
2
|
-
import type { Transducer } from "
|
|
2
|
+
import type { Transducer } from "./api.js";
|
|
3
3
|
export declare function interleave<A, B>(sep: B | Fn0<B>): Transducer<A, A | B>;
|
|
4
4
|
export declare function interleave<A, B>(sep: B | Fn0<B>, src: Iterable<A>): IterableIterator<A | B>;
|
|
5
5
|
//# sourceMappingURL=interleave.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { isIterable } from "@thi.ng/checks";
|
|
2
|
-
import { compR } from "
|
|
3
|
-
import { iterator } from "
|
|
4
|
-
import { isReduced } from "
|
|
1
|
+
import { isIterable } from "@thi.ng/checks/is-iterable";
|
|
2
|
+
import { compR } from "./compr.js";
|
|
3
|
+
import { iterator } from "./iterator.js";
|
|
4
|
+
import { isReduced } from "./reduced.js";
|
|
5
5
|
export function interleave(sep, src) {
|
|
6
6
|
return isIterable(src)
|
|
7
7
|
? iterator(interleave(sep), src)
|
package/internal/drain.d.ts
CHANGED
package/internal/drain.js
CHANGED
package/internal/group-opts.d.ts
CHANGED
package/internal/group-opts.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { push } from "../rfn/push";
|
|
1
|
+
import { push } from "../push.js";
|
|
3
2
|
/**
|
|
4
3
|
* Shared helper function for `groupBy*` reducers
|
|
5
4
|
*
|
|
@@ -7,4 +6,8 @@ import { push } from "../rfn/push";
|
|
|
7
6
|
*
|
|
8
7
|
* @internal
|
|
9
8
|
*/
|
|
10
|
-
export const __groupByOpts = (opts) => (
|
|
9
|
+
export const __groupByOpts = (opts) => ({
|
|
10
|
+
key: (x) => x,
|
|
11
|
+
group: push(),
|
|
12
|
+
...opts,
|
|
13
|
+
});
|
package/internal/mathop.d.ts
CHANGED
package/internal/mathop.js
CHANGED
package/internal/sort-opts.d.ts
CHANGED
package/internal/sort-opts.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { compare } from "@thi.ng/compare";
|
|
2
|
-
import { identity } from "@thi.ng/compose";
|
|
1
|
+
import { compare } from "@thi.ng/compare/compare";
|
|
3
2
|
/**
|
|
4
3
|
* Helper function to inject default {@link SortOpts}.
|
|
5
4
|
*
|
|
@@ -7,4 +6,8 @@ import { identity } from "@thi.ng/compose";
|
|
|
7
6
|
*
|
|
8
7
|
* @internal
|
|
9
8
|
*/
|
|
10
|
-
export const __sortOpts = (opts) => (
|
|
9
|
+
export const __sortOpts = (opts) => ({
|
|
10
|
+
key: (x) => x,
|
|
11
|
+
compare,
|
|
12
|
+
...opts,
|
|
13
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { mixHermite } from "@thi.ng/math";
|
|
2
|
-
import { interpolate } from "./interpolate";
|
|
1
|
+
import { mixHermite } from "@thi.ng/math/mix";
|
|
2
|
+
import { interpolate } from "./interpolate.js";
|
|
3
3
|
export function interpolateHermite(n, src) {
|
|
4
4
|
return interpolate((chunk, t) => mixHermite(...chunk, t), 4, n, src);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { mix } from "@thi.ng/math";
|
|
2
|
-
import { interpolate } from "./interpolate";
|
|
1
|
+
import { mix } from "@thi.ng/math/mix";
|
|
2
|
+
import { interpolate } from "./interpolate.js";
|
|
3
3
|
export function interpolateLinear(n, src) {
|
|
4
4
|
return interpolate((chunk, t) => mix(...chunk, t), 2, n, src);
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Fn2 } from "@thi.ng/api";
|
|
2
|
-
import type { Transducer } from "
|
|
2
|
+
import type { Transducer } from "./api.js";
|
|
3
3
|
/**
|
|
4
4
|
* Higher order interpolation transducer. The resulting transducer forms
|
|
5
5
|
* a sliding window and calls `fn` (the given interpolation function)
|
package/interpolate.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { isIterable } from "@thi.ng/checks/is-iterable";
|
|
2
|
+
import { comp } from "./comp.js";
|
|
3
|
+
import { iterator } from "./iterator.js";
|
|
4
|
+
import { map } from "./map.js";
|
|
5
|
+
import { mapcat } from "./mapcat.js";
|
|
6
|
+
import { normRange } from "./norm-range.js";
|
|
7
|
+
import { partition } from "./partition.js";
|
|
8
|
+
export function interpolate(fn, window, n, src) {
|
|
9
|
+
return isIterable(src)
|
|
10
|
+
? iterator(interpolate(fn, window, n), src)
|
|
11
|
+
: comp(partition(window, 1), mapcat((chunk) => map((t) => fn(chunk, t), normRange(n, false))));
|
|
12
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Fn0 } from "@thi.ng/api";
|
|
2
|
-
import type { Transducer } from "
|
|
2
|
+
import type { Transducer } from "./api.js";
|
|
3
3
|
export declare function interpose<A, B>(sep: B | Fn0<B>): Transducer<A, A | B>;
|
|
4
4
|
export declare function interpose<A, B>(sep: B | Fn0<B>, src: Iterable<A>): IterableIterator<A | B>;
|
|
5
5
|
//# sourceMappingURL=interpose.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { isIterable } from "@thi.ng/checks";
|
|
2
|
-
import { compR } from "
|
|
3
|
-
import { iterator } from "
|
|
4
|
-
import { isReduced } from "
|
|
1
|
+
import { isIterable } from "@thi.ng/checks/is-iterable";
|
|
2
|
+
import { compR } from "./compr.js";
|
|
3
|
+
import { iterator } from "./iterator.js";
|
|
4
|
+
import { isReduced } from "./reduced.js";
|
|
5
5
|
export function interpose(sep, src) {
|
|
6
6
|
return isIterable(src)
|
|
7
7
|
? iterator(interpose(sep), src)
|
|
File without changes
|
|
File without changes
|
package/iterator.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FnAny } from "@thi.ng/api";
|
|
2
|
-
import type { Transducer, TxLike } from "./api";
|
|
1
|
+
import type { FnAny } from "@thi.ng/api";
|
|
2
|
+
import type { Transducer, TxLike } from "./api.js";
|
|
3
3
|
/**
|
|
4
4
|
* Takes a transducer and input iterable. Returns iterator of
|
|
5
5
|
* transformed results.
|
|
@@ -29,5 +29,5 @@ export declare function iterator1<A, B>(xform: TxLike<A, B>, xs: Iterable<A>): I
|
|
|
29
29
|
*
|
|
30
30
|
* @internal
|
|
31
31
|
*/
|
|
32
|
-
export declare const
|
|
32
|
+
export declare const __iter: (xform: FnAny<Transducer<any, any>>, args: any[], impl?: typeof iterator1) => IterableIterator<any> | undefined;
|
|
33
33
|
//# sourceMappingURL=iterator.d.ts.map
|
package/iterator.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { NO_OP, SEMAPHORE } from "@thi.ng/api";
|
|
2
|
-
import { isIterable } from "@thi.ng/checks";
|
|
3
|
-
import { ensureTransducer } from "./
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { NO_OP, SEMAPHORE } from "@thi.ng/api/api";
|
|
2
|
+
import { isIterable } from "@thi.ng/checks/is-iterable";
|
|
3
|
+
import { ensureTransducer } from "./ensure.js";
|
|
4
|
+
import { push } from "./push.js";
|
|
5
|
+
import { isReduced, unreduced } from "./reduced.js";
|
|
6
6
|
/**
|
|
7
7
|
* Takes a transducer and input iterable. Returns iterator of
|
|
8
8
|
* transformed results.
|
|
@@ -62,7 +62,7 @@ export function* iterator1(xform, xs) {
|
|
|
62
62
|
*
|
|
63
63
|
* @internal
|
|
64
64
|
*/
|
|
65
|
-
export const
|
|
65
|
+
export const __iter = (xform, args, impl = iterator1) => {
|
|
66
66
|
const n = args.length - 1;
|
|
67
67
|
return isIterable(args[n])
|
|
68
68
|
? args.length > 1
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import type { Fn, Nullable } from "@thi.ng/api";
|
|
2
|
-
import type { Transducer } from "
|
|
2
|
+
import type { Transducer } from "./api.js";
|
|
3
|
+
/**
|
|
4
|
+
* Transducer. Only keeps values for which (optional) predicate returns a
|
|
5
|
+
* non-null result. If no `pred` is given, uses values as is.
|
|
6
|
+
*
|
|
7
|
+
* @param pred
|
|
8
|
+
*/
|
|
3
9
|
export declare function keep<T>(pred?: Fn<Nullable<T>, any>): Transducer<Nullable<T>, T>;
|
|
4
10
|
export declare function keep<T>(src: Iterable<Nullable<T>>): IterableIterator<T>;
|
|
5
11
|
export declare function keep<T>(pred: Fn<Nullable<T>, any>, src: Iterable<Nullable<T>>): IterableIterator<T>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { identity } from "@thi.ng/compose";
|
|
2
|
-
import { compR } from "
|
|
3
|
-
import {
|
|
1
|
+
import { identity } from "@thi.ng/compose/identity";
|
|
2
|
+
import { compR } from "./compr.js";
|
|
3
|
+
import { __iter } from "./iterator.js";
|
|
4
4
|
export function keep(...args) {
|
|
5
|
-
return (
|
|
5
|
+
return (__iter(keep, args) ||
|
|
6
6
|
((rfn) => {
|
|
7
7
|
const r = rfn[2];
|
|
8
8
|
const pred = args[0] || identity;
|
|
File without changes
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { assocObj } from "
|
|
2
|
-
import { map } from "
|
|
3
|
-
import { mapcat } from "
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { permutations } from "./permutations";
|
|
1
|
+
import { assocObj } from "./assoc-obj.js";
|
|
2
|
+
import { map } from "./map.js";
|
|
3
|
+
import { mapcat } from "./mapcat.js";
|
|
4
|
+
import { pairs } from "./pairs.js";
|
|
5
|
+
import { partition } from "./partition.js";
|
|
6
|
+
import { permutations } from "./permutations.js";
|
|
7
7
|
/**
|
|
8
8
|
* Similar to {@link permutations}, however takes an object with each
|
|
9
9
|
* key specifying an array of its possible values. Yields an iterable of
|
|
File without changes
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { renamer } from "./renamer";
|
|
1
|
+
import { renamer } from "./renamer.js";
|
|
2
2
|
export const keySelector = (keys) => renamer(keys.reduce((acc, x) => ((acc[x] = x), acc), {}));
|
|
File without changes
|
package/{iter/keys.js → keys.js}
RENAMED
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Transducer } from "
|
|
1
|
+
import type { Transducer } from "./api.js";
|
|
2
2
|
export declare type LabelFn<L, T> = L | ((x: T) => L);
|
|
3
3
|
export declare function labeled<L, T>(id: LabelFn<L, T>): Transducer<T, [L, T]>;
|
|
4
4
|
export declare function labeled<L, T>(id: LabelFn<L, T>, src: Iterable<T>): IterableIterator<[L, T]>;
|