@thi.ng/transducers
Advanced tools
Comparing version 9.0.13 to 9.1.0
# Change Log | ||
- **Last updated**: 2024-08-10T15:03:07Z | ||
- **Last updated**: 2024-08-13T19:40:07Z | ||
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub) | ||
@@ -12,2 +12,9 @@ | ||
## [9.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/transducers@9.1.0) (2024-08-13) | ||
#### 🚀 Features | ||
- add sortedFrequencies() reducer ([1257a79](https://github.com/thi-ng/umbrella/commit/1257a79)) | ||
- add pushKeys() reducer ([f19d152](https://github.com/thi-ng/umbrella/commit/f19d152)) | ||
### [9.0.6](https://github.com/thi-ng/umbrella/tree/@thi.ng/transducers@9.0.6) (2024-06-21) | ||
@@ -14,0 +21,0 @@ |
@@ -45,5 +45,7 @@ export * from "./api.js"; | ||
export * from "./push-copy.js"; | ||
export * from "./push-keys.js"; | ||
export * from "./push-sort.js"; | ||
export * from "./reductions.js"; | ||
export * from "./some.js"; | ||
export * from "./sorted-frequencies.js"; | ||
export * from "./str.js"; | ||
@@ -50,0 +52,0 @@ export * from "./sub.js"; |
@@ -45,5 +45,7 @@ export * from "./api.js"; | ||
export * from "./push-copy.js"; | ||
export * from "./push-keys.js"; | ||
export * from "./push-sort.js"; | ||
export * from "./reductions.js"; | ||
export * from "./some.js"; | ||
export * from "./sorted-frequencies.js"; | ||
export * from "./str.js"; | ||
@@ -50,0 +52,0 @@ export * from "./sub.js"; |
{ | ||
"name": "@thi.ng/transducers", | ||
"version": "9.0.13", | ||
"version": "9.1.0", | ||
"description": "Collection of ~170 lightweight, composable transducers, reducers, generators, iterators for functional data transformations", | ||
@@ -49,3 +49,3 @@ "type": "module", | ||
"@thi.ng/errors": "^2.5.14", | ||
"@thi.ng/math": "^5.11.6", | ||
"@thi.ng/math": "^5.11.7", | ||
"@thi.ng/random": "^4.0.2" | ||
@@ -426,2 +426,5 @@ }, | ||
}, | ||
"./push-keys": { | ||
"default": "./push-keys.js" | ||
}, | ||
"./push-sort": { | ||
@@ -499,2 +502,5 @@ "default": "./push-sort.js" | ||
}, | ||
"./sorted-frequencies": { | ||
"default": "./sorted-frequencies.js" | ||
}, | ||
"./sorted-keys": { | ||
@@ -596,3 +602,3 @@ "default": "./sorted-keys.js" | ||
}, | ||
"gitHead": "ec78f98d015e4d214a0b840e72e497407807daf3\n" | ||
"gitHead": "e914ebbd81c56783c39cf746548c547cbacadc96\n" | ||
} |
import type { Reducer } from "./api.js"; | ||
/** | ||
* Reducer. Special version of {@link push}, which immutably appends inputs to | ||
* an array, yielding a new array for each reduction step. | ||
* | ||
* @remarks | ||
* Also see {@link pushKeys}, {@link pushSort}. | ||
*/ | ||
export declare const pushCopy: <T>() => Reducer<T, T[]>; | ||
//# sourceMappingURL=push-copy.d.ts.map |
import { reducer } from "./reduce.js"; | ||
const pushCopy = () => reducer( | ||
() => [], | ||
(acc, x) => ((acc = acc.slice()).push(x), acc) | ||
(acc, x) => acc.concat([x]) | ||
); | ||
@@ -6,0 +6,0 @@ export { |
import type { Reducer } from "./api.js"; | ||
/** | ||
* Reducer which collects inputs into a new array. | ||
* Reducer which collects inputs into an array. | ||
* | ||
* @remarks | ||
* Also see {@link pushCopy}, {@link pushKeys}, {@link pushSort}. | ||
*/ | ||
@@ -5,0 +8,0 @@ export declare function push<T>(): Reducer<T, T[]>; |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
363624
320
7096
1102
Updated@thi.ng/math@^5.11.7