@thi.ng/transducers 7.9.2 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +346 -444
- package/README.md +238 -216
- package/{rfn/add.d.ts → add.d.ts} +1 -1
- package/{rfn/add.js → add.js} +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} +3 -2
- 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} +7 -7
- 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} +1 -1
- 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} +3 -3
- 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/{iter/dup.js → dup.js} +3 -2
- 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} +1 -1
- 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} +3 -3
- 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/{xform/flatten.js → flatten.js} +1 -1
- package/{rfn/frequencies.d.ts → frequencies.d.ts} +1 -1
- package/{rfn/frequencies.js → frequencies.js} +2 -2
- package/{rfn/group-binary.d.ts → group-binary.d.ts} +1 -1
- package/{rfn/group-binary.js → group-binary.js} +1 -1
- 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 +138 -137
- package/index.js +142 -137
- package/{xform/indexed.d.ts → indexed.d.ts} +1 -1
- package/{xform/indexed.js → indexed.js} +2 -2
- package/{xform/interleave.d.ts → interleave.d.ts} +1 -1
- package/{xform/interleave.js → interleave.js} +4 -4
- package/internal/group-opts.js +6 -3
- 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} +1 -1
- package/{xform/interpolate-linear.d.ts → interpolate-linear.d.ts} +1 -1
- package/{xform/interpolate-linear.js → interpolate-linear.js} +1 -1
- package/{xform/interpolate.d.ts → interpolate.d.ts} +1 -1
- package/{xform/interpolate.js → interpolate.js} +4 -5
- 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 +2 -2
- package/iterator.js +5 -5
- 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} +4 -4
- package/{func/key-selector.d.ts → key-selector.d.ts} +0 -0
- package/{func/key-selector.js → key-selector.js} +0 -0
- 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/{xform/labeled.js → labeled.js} +3 -2
- 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} +1 -1
- 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/{xform/map-deep.js → map-deep.js} +3 -3
- 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} +2 -2
- 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} +2 -2
- 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/{xform/mapcat-indexed.js → mapcat-indexed.js} +3 -3
- package/{xform/mapcat.d.ts → mapcat.d.ts} +1 -1
- package/{xform/mapcat.js → mapcat.js} +3 -3
- package/{xform/match-first.d.ts → match-first.d.ts} +1 -1
- package/{xform/match-first.js → match-first.js} +3 -3
- package/{xform/match-last.d.ts → match-last.d.ts} +1 -1
- package/{xform/match-last.js → match-last.js} +3 -3
- 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} +1 -1
- 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} +4 -4
- 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} +3 -3
- package/{xform/multiplex.d.ts → multiplex.d.ts} +1 -1
- package/{xform/multiplex.js → multiplex.js} +2 -2
- 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} +1 -1
- package/{rfn/norm-frequencies.d.ts → norm-frequencies.d.ts} +1 -1
- package/{rfn/norm-frequencies.js → norm-frequencies.js} +2 -2
- 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 +467 -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} +0 -0
- package/{xform/page.d.ts → page.d.ts} +1 -1
- package/{xform/page.js → page.js} +3 -3
- 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/{iter/palindrome.js → palindrome.js} +4 -3
- 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} +2 -2
- package/{xform/partition-sort.d.ts → partition-sort.d.ts} +1 -1
- package/{xform/partition-sort.js → partition-sort.js} +4 -4
- 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} +2 -2
- 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/{xform/peek.js → peek.js} +1 -1
- package/{iter/permutations.d.ts → permutations.d.ts} +0 -0
- package/{iter/permutations.js → permutations.js} +2 -2
- package/{xform/pluck.d.ts → pluck.d.ts} +1 -1
- package/{xform/pluck.js → pluck.js} +2 -2
- 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} +1 -1
- package/{iter/range.d.ts → range.d.ts} +2 -2
- package/{iter/range.js → range.js} +4 -1
- package/{iter/range2d.d.ts → range2d.d.ts} +0 -0
- package/{iter/range2d.js → range2d.js} +1 -1
- package/{iter/range3d.d.ts → range3d.d.ts} +0 -0
- package/{iter/range3d.js → range3d.js} +1 -1
- package/reduce.js +4 -2
- package/reduced.js +1 -0
- 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} +6 -6
- 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 +1 -1
- package/run.js +1 -1
- 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/{xform/select-keys.js → select-keys.js} +3 -3
- package/{xform/side-effect.d.ts → side-effect.d.ts} +1 -1
- package/{xform/side-effect.js → side-effect.js} +0 -0
- 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.js +2 -2
- 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} +3 -3
- 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/{xform/swizzle.js → swizzle.js} +3 -3
- 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} +3 -3
- 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} +2 -2
- 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} +0 -0
- package/transduce.js +3 -3
- package/{iter/tween.d.ts → tween.d.ts} +0 -0
- package/{iter/tween.js → tween.js} +0 -0
- 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} +7 -3
- 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/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/push-copy.d.ts +0 -3
- package/xform/trace.d.ts +0 -3
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/transducers",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"description": "Lightweight transducer implementations for ES6 / TypeScript",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"module": "./index.js",
|
|
6
|
-
"main": "./lib/index.js",
|
|
7
|
-
"umd:main": "./lib/index.umd.js",
|
|
8
7
|
"typings": "./index.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "https://github.com/thi-ng/umbrella.git"
|
|
@@ -24,39 +24,28 @@
|
|
|
24
24
|
"author": "Karsten Schmidt <k+npm@thi.ng>",
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"scripts": {
|
|
27
|
-
"build": "yarn clean &&
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"build:test": "rimraf build && tsc -p test/tsconfig.json",
|
|
31
|
-
"build:check": "tsc --isolatedModules --noEmit",
|
|
32
|
-
"test": "mocha test",
|
|
33
|
-
"cover": "nyc mocha test && nyc report --reporter=lcov",
|
|
34
|
-
"clean": "rimraf *.js *.d.ts *.map .nyc_output build coverage doc lib func internal iter rfn xform",
|
|
35
|
-
"doc:readme": "ts-node -P ../../tools/tsconfig.json ../../tools/src/readme.ts",
|
|
36
|
-
"doc": "typedoc --excludePrivate --out doc --theme ../../tools/doc/typedoc-theme src/index.ts",
|
|
27
|
+
"build": "yarn clean && tsc --declaration",
|
|
28
|
+
"clean": "rimraf *.js *.d.ts *.map doc internal",
|
|
29
|
+
"doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
|
|
37
30
|
"doc:ae": "mkdir -p .ae/doc .ae/temp && node_modules/.bin/api-extractor run --local --verbose",
|
|
38
|
-
"
|
|
31
|
+
"doc:readme": "yarn doc:stats && ../../scripts/node-esm ../../tools/src/readme.ts",
|
|
32
|
+
"doc:stats": "../../scripts/node-esm ../../tools/src/module-stats.ts",
|
|
33
|
+
"pub": "yarn build && yarn publish --access public",
|
|
34
|
+
"test": "testament test"
|
|
39
35
|
},
|
|
40
36
|
"dependencies": {
|
|
41
|
-
"@thi.ng/api": "^
|
|
42
|
-
"@thi.ng/arrays": "^
|
|
43
|
-
"@thi.ng/checks": "^
|
|
44
|
-
"@thi.ng/compare": "^
|
|
45
|
-
"@thi.ng/compose": "^
|
|
46
|
-
"@thi.ng/errors": "^
|
|
47
|
-
"@thi.ng/math": "^
|
|
48
|
-
"@thi.ng/random": "^
|
|
37
|
+
"@thi.ng/api": "^8.0.0",
|
|
38
|
+
"@thi.ng/arrays": "^2.0.0",
|
|
39
|
+
"@thi.ng/checks": "^3.0.0",
|
|
40
|
+
"@thi.ng/compare": "^2.0.0",
|
|
41
|
+
"@thi.ng/compose": "^2.0.0",
|
|
42
|
+
"@thi.ng/errors": "^2.0.0",
|
|
43
|
+
"@thi.ng/math": "^5.0.0",
|
|
44
|
+
"@thi.ng/random": "^3.0.0"
|
|
45
|
+
},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@thi.ng/testament": "^0.1.0"
|
|
49
48
|
},
|
|
50
|
-
"files": [
|
|
51
|
-
"*.js",
|
|
52
|
-
"*.d.ts",
|
|
53
|
-
"lib",
|
|
54
|
-
"func",
|
|
55
|
-
"internal",
|
|
56
|
-
"iter",
|
|
57
|
-
"rfn",
|
|
58
|
-
"xform"
|
|
59
|
-
],
|
|
60
49
|
"keywords": [
|
|
61
50
|
"2d",
|
|
62
51
|
"3d",
|
|
@@ -96,7 +85,451 @@
|
|
|
96
85
|
"publishConfig": {
|
|
97
86
|
"access": "public"
|
|
98
87
|
},
|
|
99
|
-
"
|
|
88
|
+
"files": [
|
|
89
|
+
"*.js",
|
|
90
|
+
"*.d.ts",
|
|
91
|
+
"internal"
|
|
92
|
+
],
|
|
93
|
+
"exports": {
|
|
94
|
+
".": {
|
|
95
|
+
"import": "./index.js"
|
|
96
|
+
},
|
|
97
|
+
"./add": {
|
|
98
|
+
"import": "./add.js"
|
|
99
|
+
},
|
|
100
|
+
"./api": {
|
|
101
|
+
"import": "./api.js"
|
|
102
|
+
},
|
|
103
|
+
"./as-iterable": {
|
|
104
|
+
"import": "./as-iterable.js"
|
|
105
|
+
},
|
|
106
|
+
"./assoc-map": {
|
|
107
|
+
"import": "./assoc-map.js"
|
|
108
|
+
},
|
|
109
|
+
"./assoc-obj": {
|
|
110
|
+
"import": "./assoc-obj.js"
|
|
111
|
+
},
|
|
112
|
+
"./auto-obj": {
|
|
113
|
+
"import": "./auto-obj.js"
|
|
114
|
+
},
|
|
115
|
+
"./benchmark": {
|
|
116
|
+
"import": "./benchmark.js"
|
|
117
|
+
},
|
|
118
|
+
"./cat": {
|
|
119
|
+
"import": "./cat.js"
|
|
120
|
+
},
|
|
121
|
+
"./choices": {
|
|
122
|
+
"import": "./choices.js"
|
|
123
|
+
},
|
|
124
|
+
"./comp": {
|
|
125
|
+
"import": "./comp.js"
|
|
126
|
+
},
|
|
127
|
+
"./compr": {
|
|
128
|
+
"import": "./compr.js"
|
|
129
|
+
},
|
|
130
|
+
"./concat": {
|
|
131
|
+
"import": "./concat.js"
|
|
132
|
+
},
|
|
133
|
+
"./conj": {
|
|
134
|
+
"import": "./conj.js"
|
|
135
|
+
},
|
|
136
|
+
"./converge": {
|
|
137
|
+
"import": "./converge.js"
|
|
138
|
+
},
|
|
139
|
+
"./convolve": {
|
|
140
|
+
"import": "./convolve.js"
|
|
141
|
+
},
|
|
142
|
+
"./count": {
|
|
143
|
+
"import": "./count.js"
|
|
144
|
+
},
|
|
145
|
+
"./curve": {
|
|
146
|
+
"import": "./curve.js"
|
|
147
|
+
},
|
|
148
|
+
"./cycle": {
|
|
149
|
+
"import": "./cycle.js"
|
|
150
|
+
},
|
|
151
|
+
"./dedupe": {
|
|
152
|
+
"import": "./dedupe.js"
|
|
153
|
+
},
|
|
154
|
+
"./deep-transform": {
|
|
155
|
+
"import": "./deep-transform.js"
|
|
156
|
+
},
|
|
157
|
+
"./delayed": {
|
|
158
|
+
"import": "./delayed.js"
|
|
159
|
+
},
|
|
160
|
+
"./distinct": {
|
|
161
|
+
"import": "./distinct.js"
|
|
162
|
+
},
|
|
163
|
+
"./div": {
|
|
164
|
+
"import": "./div.js"
|
|
165
|
+
},
|
|
166
|
+
"./drop-nth": {
|
|
167
|
+
"import": "./drop-nth.js"
|
|
168
|
+
},
|
|
169
|
+
"./drop-while": {
|
|
170
|
+
"import": "./drop-while.js"
|
|
171
|
+
},
|
|
172
|
+
"./drop": {
|
|
173
|
+
"import": "./drop.js"
|
|
174
|
+
},
|
|
175
|
+
"./dup": {
|
|
176
|
+
"import": "./dup.js"
|
|
177
|
+
},
|
|
178
|
+
"./duplicate": {
|
|
179
|
+
"import": "./duplicate.js"
|
|
180
|
+
},
|
|
181
|
+
"./ensure": {
|
|
182
|
+
"import": "./ensure.js"
|
|
183
|
+
},
|
|
184
|
+
"./every": {
|
|
185
|
+
"import": "./every.js"
|
|
186
|
+
},
|
|
187
|
+
"./extend-sides": {
|
|
188
|
+
"import": "./extend-sides.js"
|
|
189
|
+
},
|
|
190
|
+
"./fill": {
|
|
191
|
+
"import": "./fill.js"
|
|
192
|
+
},
|
|
193
|
+
"./filter-fuzzy": {
|
|
194
|
+
"import": "./filter-fuzzy.js"
|
|
195
|
+
},
|
|
196
|
+
"./filter": {
|
|
197
|
+
"import": "./filter.js"
|
|
198
|
+
},
|
|
199
|
+
"./flatten-with": {
|
|
200
|
+
"import": "./flatten-with.js"
|
|
201
|
+
},
|
|
202
|
+
"./flatten": {
|
|
203
|
+
"import": "./flatten.js"
|
|
204
|
+
},
|
|
205
|
+
"./frequencies": {
|
|
206
|
+
"import": "./frequencies.js"
|
|
207
|
+
},
|
|
208
|
+
"./group-binary": {
|
|
209
|
+
"import": "./group-binary.js"
|
|
210
|
+
},
|
|
211
|
+
"./group-by-map": {
|
|
212
|
+
"import": "./group-by-map.js"
|
|
213
|
+
},
|
|
214
|
+
"./group-by-obj": {
|
|
215
|
+
"import": "./group-by-obj.js"
|
|
216
|
+
},
|
|
217
|
+
"./indexed": {
|
|
218
|
+
"import": "./indexed.js"
|
|
219
|
+
},
|
|
220
|
+
"./interleave": {
|
|
221
|
+
"import": "./interleave.js"
|
|
222
|
+
},
|
|
223
|
+
"./interpolate-hermite": {
|
|
224
|
+
"import": "./interpolate-hermite.js"
|
|
225
|
+
},
|
|
226
|
+
"./interpolate-linear": {
|
|
227
|
+
"import": "./interpolate-linear.js"
|
|
228
|
+
},
|
|
229
|
+
"./interpolate": {
|
|
230
|
+
"import": "./interpolate.js"
|
|
231
|
+
},
|
|
232
|
+
"./interpose": {
|
|
233
|
+
"import": "./interpose.js"
|
|
234
|
+
},
|
|
235
|
+
"./iterate": {
|
|
236
|
+
"import": "./iterate.js"
|
|
237
|
+
},
|
|
238
|
+
"./iterator": {
|
|
239
|
+
"import": "./iterator.js"
|
|
240
|
+
},
|
|
241
|
+
"./juxtr": {
|
|
242
|
+
"import": "./juxtr.js"
|
|
243
|
+
},
|
|
244
|
+
"./keep": {
|
|
245
|
+
"import": "./keep.js"
|
|
246
|
+
},
|
|
247
|
+
"./key-permutations": {
|
|
248
|
+
"import": "./key-permutations.js"
|
|
249
|
+
},
|
|
250
|
+
"./key-selector": {
|
|
251
|
+
"import": "./key-selector.js"
|
|
252
|
+
},
|
|
253
|
+
"./keys": {
|
|
254
|
+
"import": "./keys.js"
|
|
255
|
+
},
|
|
256
|
+
"./labeled": {
|
|
257
|
+
"import": "./labeled.js"
|
|
258
|
+
},
|
|
259
|
+
"./last": {
|
|
260
|
+
"import": "./last.js"
|
|
261
|
+
},
|
|
262
|
+
"./line": {
|
|
263
|
+
"import": "./line.js"
|
|
264
|
+
},
|
|
265
|
+
"./lookup": {
|
|
266
|
+
"import": "./lookup.js"
|
|
267
|
+
},
|
|
268
|
+
"./map-deep": {
|
|
269
|
+
"import": "./map-deep.js"
|
|
270
|
+
},
|
|
271
|
+
"./map-indexed": {
|
|
272
|
+
"import": "./map-indexed.js"
|
|
273
|
+
},
|
|
274
|
+
"./map-keys": {
|
|
275
|
+
"import": "./map-keys.js"
|
|
276
|
+
},
|
|
277
|
+
"./map-nth": {
|
|
278
|
+
"import": "./map-nth.js"
|
|
279
|
+
},
|
|
280
|
+
"./map-vals": {
|
|
281
|
+
"import": "./map-vals.js"
|
|
282
|
+
},
|
|
283
|
+
"./map": {
|
|
284
|
+
"import": "./map.js"
|
|
285
|
+
},
|
|
286
|
+
"./mapcat-indexed": {
|
|
287
|
+
"import": "./mapcat-indexed.js"
|
|
288
|
+
},
|
|
289
|
+
"./mapcat": {
|
|
290
|
+
"import": "./mapcat.js"
|
|
291
|
+
},
|
|
292
|
+
"./match-first": {
|
|
293
|
+
"import": "./match-first.js"
|
|
294
|
+
},
|
|
295
|
+
"./match-last": {
|
|
296
|
+
"import": "./match-last.js"
|
|
297
|
+
},
|
|
298
|
+
"./max-compare": {
|
|
299
|
+
"import": "./max-compare.js"
|
|
300
|
+
},
|
|
301
|
+
"./max-mag": {
|
|
302
|
+
"import": "./max-mag.js"
|
|
303
|
+
},
|
|
304
|
+
"./max": {
|
|
305
|
+
"import": "./max.js"
|
|
306
|
+
},
|
|
307
|
+
"./mean": {
|
|
308
|
+
"import": "./mean.js"
|
|
309
|
+
},
|
|
310
|
+
"./min-compare": {
|
|
311
|
+
"import": "./min-compare.js"
|
|
312
|
+
},
|
|
313
|
+
"./min-mag": {
|
|
314
|
+
"import": "./min-mag.js"
|
|
315
|
+
},
|
|
316
|
+
"./min-max": {
|
|
317
|
+
"import": "./min-max.js"
|
|
318
|
+
},
|
|
319
|
+
"./min": {
|
|
320
|
+
"import": "./min.js"
|
|
321
|
+
},
|
|
322
|
+
"./moving-average": {
|
|
323
|
+
"import": "./moving-average.js"
|
|
324
|
+
},
|
|
325
|
+
"./moving-median": {
|
|
326
|
+
"import": "./moving-median.js"
|
|
327
|
+
},
|
|
328
|
+
"./mul": {
|
|
329
|
+
"import": "./mul.js"
|
|
330
|
+
},
|
|
331
|
+
"./multiplex-obj": {
|
|
332
|
+
"import": "./multiplex-obj.js"
|
|
333
|
+
},
|
|
334
|
+
"./multiplex": {
|
|
335
|
+
"import": "./multiplex.js"
|
|
336
|
+
},
|
|
337
|
+
"./noop": {
|
|
338
|
+
"import": "./noop.js"
|
|
339
|
+
},
|
|
340
|
+
"./norm-count": {
|
|
341
|
+
"import": "./norm-count.js"
|
|
342
|
+
},
|
|
343
|
+
"./norm-frequencies-auto": {
|
|
344
|
+
"import": "./norm-frequencies-auto.js"
|
|
345
|
+
},
|
|
346
|
+
"./norm-frequencies": {
|
|
347
|
+
"import": "./norm-frequencies.js"
|
|
348
|
+
},
|
|
349
|
+
"./norm-range": {
|
|
350
|
+
"import": "./norm-range.js"
|
|
351
|
+
},
|
|
352
|
+
"./pad-last": {
|
|
353
|
+
"import": "./pad-last.js"
|
|
354
|
+
},
|
|
355
|
+
"./pad-sides": {
|
|
356
|
+
"import": "./pad-sides.js"
|
|
357
|
+
},
|
|
358
|
+
"./page": {
|
|
359
|
+
"import": "./page.js"
|
|
360
|
+
},
|
|
361
|
+
"./pairs": {
|
|
362
|
+
"import": "./pairs.js"
|
|
363
|
+
},
|
|
364
|
+
"./palindrome": {
|
|
365
|
+
"import": "./palindrome.js"
|
|
366
|
+
},
|
|
367
|
+
"./partition-by": {
|
|
368
|
+
"import": "./partition-by.js"
|
|
369
|
+
},
|
|
370
|
+
"./partition-of": {
|
|
371
|
+
"import": "./partition-of.js"
|
|
372
|
+
},
|
|
373
|
+
"./partition-sort": {
|
|
374
|
+
"import": "./partition-sort.js"
|
|
375
|
+
},
|
|
376
|
+
"./partition-sync": {
|
|
377
|
+
"import": "./partition-sync.js"
|
|
378
|
+
},
|
|
379
|
+
"./partition-time": {
|
|
380
|
+
"import": "./partition-time.js"
|
|
381
|
+
},
|
|
382
|
+
"./partition-when": {
|
|
383
|
+
"import": "./partition-when.js"
|
|
384
|
+
},
|
|
385
|
+
"./partition": {
|
|
386
|
+
"import": "./partition.js"
|
|
387
|
+
},
|
|
388
|
+
"./peek": {
|
|
389
|
+
"import": "./peek.js"
|
|
390
|
+
},
|
|
391
|
+
"./permutations": {
|
|
392
|
+
"import": "./permutations.js"
|
|
393
|
+
},
|
|
394
|
+
"./pluck": {
|
|
395
|
+
"import": "./pluck.js"
|
|
396
|
+
},
|
|
397
|
+
"./push-copy": {
|
|
398
|
+
"import": "./push-copy.js"
|
|
399
|
+
},
|
|
400
|
+
"./push-sort": {
|
|
401
|
+
"import": "./push-sort.js"
|
|
402
|
+
},
|
|
403
|
+
"./push": {
|
|
404
|
+
"import": "./push.js"
|
|
405
|
+
},
|
|
406
|
+
"./range-nd": {
|
|
407
|
+
"import": "./range-nd.js"
|
|
408
|
+
},
|
|
409
|
+
"./range": {
|
|
410
|
+
"import": "./range.js"
|
|
411
|
+
},
|
|
412
|
+
"./range2d": {
|
|
413
|
+
"import": "./range2d.js"
|
|
414
|
+
},
|
|
415
|
+
"./range3d": {
|
|
416
|
+
"import": "./range3d.js"
|
|
417
|
+
},
|
|
418
|
+
"./reduce": {
|
|
419
|
+
"import": "./reduce.js"
|
|
420
|
+
},
|
|
421
|
+
"./reduced": {
|
|
422
|
+
"import": "./reduced.js"
|
|
423
|
+
},
|
|
424
|
+
"./reductions": {
|
|
425
|
+
"import": "./reductions.js"
|
|
426
|
+
},
|
|
427
|
+
"./rename": {
|
|
428
|
+
"import": "./rename.js"
|
|
429
|
+
},
|
|
430
|
+
"./renamer": {
|
|
431
|
+
"import": "./renamer.js"
|
|
432
|
+
},
|
|
433
|
+
"./repeat": {
|
|
434
|
+
"import": "./repeat.js"
|
|
435
|
+
},
|
|
436
|
+
"./repeatedly": {
|
|
437
|
+
"import": "./repeatedly.js"
|
|
438
|
+
},
|
|
439
|
+
"./reverse": {
|
|
440
|
+
"import": "./reverse.js"
|
|
441
|
+
},
|
|
442
|
+
"./run": {
|
|
443
|
+
"import": "./run.js"
|
|
444
|
+
},
|
|
445
|
+
"./sample": {
|
|
446
|
+
"import": "./sample.js"
|
|
447
|
+
},
|
|
448
|
+
"./scan": {
|
|
449
|
+
"import": "./scan.js"
|
|
450
|
+
},
|
|
451
|
+
"./select-keys": {
|
|
452
|
+
"import": "./select-keys.js"
|
|
453
|
+
},
|
|
454
|
+
"./side-effect": {
|
|
455
|
+
"import": "./side-effect.js"
|
|
456
|
+
},
|
|
457
|
+
"./sliding-window": {
|
|
458
|
+
"import": "./sliding-window.js"
|
|
459
|
+
},
|
|
460
|
+
"./some": {
|
|
461
|
+
"import": "./some.js"
|
|
462
|
+
},
|
|
463
|
+
"./sorted-keys": {
|
|
464
|
+
"import": "./sorted-keys.js"
|
|
465
|
+
},
|
|
466
|
+
"./step": {
|
|
467
|
+
"import": "./step.js"
|
|
468
|
+
},
|
|
469
|
+
"./str": {
|
|
470
|
+
"import": "./str.js"
|
|
471
|
+
},
|
|
472
|
+
"./stream-shuffle": {
|
|
473
|
+
"import": "./stream-shuffle.js"
|
|
474
|
+
},
|
|
475
|
+
"./stream-sort": {
|
|
476
|
+
"import": "./stream-sort.js"
|
|
477
|
+
},
|
|
478
|
+
"./struct": {
|
|
479
|
+
"import": "./struct.js"
|
|
480
|
+
},
|
|
481
|
+
"./sub": {
|
|
482
|
+
"import": "./sub.js"
|
|
483
|
+
},
|
|
484
|
+
"./swizzle": {
|
|
485
|
+
"import": "./swizzle.js"
|
|
486
|
+
},
|
|
487
|
+
"./symmetric": {
|
|
488
|
+
"import": "./symmetric.js"
|
|
489
|
+
},
|
|
490
|
+
"./take-last": {
|
|
491
|
+
"import": "./take-last.js"
|
|
492
|
+
},
|
|
493
|
+
"./take-nth": {
|
|
494
|
+
"import": "./take-nth.js"
|
|
495
|
+
},
|
|
496
|
+
"./take-while": {
|
|
497
|
+
"import": "./take-while.js"
|
|
498
|
+
},
|
|
499
|
+
"./take": {
|
|
500
|
+
"import": "./take.js"
|
|
501
|
+
},
|
|
502
|
+
"./throttle-time": {
|
|
503
|
+
"import": "./throttle-time.js"
|
|
504
|
+
},
|
|
505
|
+
"./throttle": {
|
|
506
|
+
"import": "./throttle.js"
|
|
507
|
+
},
|
|
508
|
+
"./toggle": {
|
|
509
|
+
"import": "./toggle.js"
|
|
510
|
+
},
|
|
511
|
+
"./trace": {
|
|
512
|
+
"import": "./trace.js"
|
|
513
|
+
},
|
|
514
|
+
"./transduce": {
|
|
515
|
+
"import": "./transduce.js"
|
|
516
|
+
},
|
|
517
|
+
"./tween": {
|
|
518
|
+
"import": "./tween.js"
|
|
519
|
+
},
|
|
520
|
+
"./vals": {
|
|
521
|
+
"import": "./vals.js"
|
|
522
|
+
},
|
|
523
|
+
"./word-wrap": {
|
|
524
|
+
"import": "./word-wrap.js"
|
|
525
|
+
},
|
|
526
|
+
"./wrap-sides": {
|
|
527
|
+
"import": "./wrap-sides.js"
|
|
528
|
+
},
|
|
529
|
+
"./zip": {
|
|
530
|
+
"import": "./zip.js"
|
|
531
|
+
}
|
|
532
|
+
},
|
|
100
533
|
"thi.ng": {
|
|
101
534
|
"blog": [
|
|
102
535
|
{
|
|
@@ -123,5 +556,5 @@
|
|
|
123
556
|
],
|
|
124
557
|
"year": 2016
|
|
125
558
|
},
|
|
126
|
-
"gitHead": "
|
|
559
|
+
"gitHead": "9ac1344b38b565eb894306fbf72233b6c0b2d115"
|
|
127
560
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { isIterable } from "@thi.ng/checks";
|
|
2
|
-
import { iterator } from "
|
|
3
|
-
import { isReduced } from "
|
|
1
|
+
import { isIterable } from "@thi.ng/checks/is-iterable";
|
|
2
|
+
import { iterator } from "./iterator";
|
|
3
|
+
import { isReduced } from "./reduced";
|
|
4
4
|
export function padLast(n, fill, src) {
|
|
5
5
|
return isIterable(src)
|
|
6
6
|
? iterator(padLast(n, fill), src)
|
|
File without changes
|
|
File without changes
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { comp } from "
|
|
2
|
-
import { $iter } from "../iterator";
|
|
1
|
+
import { comp } from "./comp";
|
|
3
2
|
import { drop } from "./drop";
|
|
3
|
+
import { __iter } from "./iterator";
|
|
4
4
|
import { take } from "./take";
|
|
5
5
|
export function page(...args) {
|
|
6
|
-
return (
|
|
6
|
+
return (__iter(page, args) ||
|
|
7
7
|
comp(drop(args[0] * (args[1] || 10)), take(args[1] || 10)));
|
|
8
8
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { ensureArray } from "@thi.ng/arrays";
|
|
2
|
-
import { isArray
|
|
3
|
-
import {
|
|
1
|
+
import { ensureArray } from "@thi.ng/arrays/ensure-array";
|
|
2
|
+
import { isArray } from "@thi.ng/checks/is-array";
|
|
3
|
+
import { isString } from "@thi.ng/checks/is-string";
|
|
4
4
|
import { concat } from "./concat";
|
|
5
5
|
import { reverse } from "./reverse";
|
|
6
|
+
import { str } from "./str";
|
|
6
7
|
export function palindrome(x) {
|
|
7
8
|
return isString(x)
|
|
8
9
|
? str("", concat([x], reverse(x)))
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Fn } from "@thi.ng/api";
|
|
2
|
-
import type { Transducer } from "
|
|
1
|
+
import type { Fn } from "@thi.ng/api";
|
|
2
|
+
import type { Transducer } from "./api";
|
|
3
3
|
/**
|
|
4
4
|
* Transducer. Applies given `fn` to each incoming value and collects
|
|
5
5
|
* values until the return value of the `fn` has changed. Once this
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { SEMAPHORE } from "@thi.ng/api";
|
|
2
|
-
import {
|
|
3
|
-
import { isReduced } from "
|
|
1
|
+
import { SEMAPHORE } from "@thi.ng/api/api";
|
|
2
|
+
import { __iter, iterator } from "./iterator";
|
|
3
|
+
import { isReduced } from "./reduced";
|
|
4
4
|
export function partitionBy(...args) {
|
|
5
|
-
return (
|
|
5
|
+
return (__iter(partitionBy, args, iterator) ||
|
|
6
6
|
(([init, complete, reduce]) => {
|
|
7
7
|
const fn = args[0];
|
|
8
8
|
const f = args[1] === true ? fn() : fn;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isIterable } from "@thi.ng/checks";
|
|
2
|
-
import { iterator } from "
|
|
1
|
+
import { isIterable } from "@thi.ng/checks/is-iterable";
|
|
2
|
+
import { iterator } from "./iterator";
|
|
3
3
|
import { partitionBy } from "./partition-by";
|
|
4
4
|
export function partitionOf(sizes, src) {
|
|
5
5
|
return isIterable(src)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { comp } from "
|
|
2
|
-
import { __sortOpts } from "
|
|
3
|
-
import {
|
|
1
|
+
import { comp } from "./comp";
|
|
2
|
+
import { __sortOpts } from "./internal/sort-opts";
|
|
3
|
+
import { __iter, iterator } from "./iterator";
|
|
4
4
|
import { mapcat } from "./mapcat";
|
|
5
5
|
import { partition } from "./partition";
|
|
6
6
|
export function partitionSort(...args) {
|
|
7
|
-
const iter =
|
|
7
|
+
const iter = __iter(partitionSort, args, iterator);
|
|
8
8
|
if (iter) {
|
|
9
9
|
return iter;
|
|
10
10
|
}
|