@stdlib/utils-map-reduce-right 0.1.0 → 0.2.1
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/NOTICE +1 -1
- package/README.md +27 -6
- package/SECURITY.md +5 -0
- package/docs/types/index.d.ts +4 -4
- package/package.json +12 -43
- package/CITATION.cff +0 -30
package/NOTICE
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Copyright (c) 2016-
|
|
1
|
+
Copyright (c) 2016-2024 The Stdlib Authors.
|
package/README.md
CHANGED
|
@@ -250,6 +250,14 @@ console.log( 'sum: %d', out );
|
|
|
250
250
|
|
|
251
251
|
<section class="related">
|
|
252
252
|
|
|
253
|
+
* * *
|
|
254
|
+
|
|
255
|
+
## See Also
|
|
256
|
+
|
|
257
|
+
- <span class="package-name">[`@stdlib/utils-map-right`][@stdlib/utils/map-right]</span><span class="delimiter">: </span><span class="description">apply a function to each element in an array and assign the result to an element in an output array, iterating from right to left.</span>
|
|
258
|
+
- <span class="package-name">[`@stdlib/utils-map-reduce`][@stdlib/utils/map-reduce]</span><span class="delimiter">: </span><span class="description">perform a single-pass map-reduce operation against each element in an array and return the accumulated result.</span>
|
|
259
|
+
- <span class="package-name">[`@stdlib/utils-reduce-right`][@stdlib/utils/reduce-right]</span><span class="delimiter">: </span><span class="description">apply a function against an accumulator and each element in an array while iterating from right to left and return the accumulated result.</span>
|
|
260
|
+
|
|
253
261
|
</section>
|
|
254
262
|
|
|
255
263
|
<!-- /.related -->
|
|
@@ -280,7 +288,7 @@ See [LICENSE][stdlib-license].
|
|
|
280
288
|
|
|
281
289
|
## Copyright
|
|
282
290
|
|
|
283
|
-
Copyright © 2016-
|
|
291
|
+
Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
284
292
|
|
|
285
293
|
</section>
|
|
286
294
|
|
|
@@ -293,8 +301,8 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors].
|
|
|
293
301
|
[npm-image]: http://img.shields.io/npm/v/@stdlib/utils-map-reduce-right.svg
|
|
294
302
|
[npm-url]: https://npmjs.org/package/@stdlib/utils-map-reduce-right
|
|
295
303
|
|
|
296
|
-
[test-image]: https://github.com/stdlib-js/utils-map-reduce-right/actions/workflows/test.yml/badge.svg?branch=v0.1
|
|
297
|
-
[test-url]: https://github.com/stdlib-js/utils-map-reduce-right/actions/workflows/test.yml?query=branch:v0.1
|
|
304
|
+
[test-image]: https://github.com/stdlib-js/utils-map-reduce-right/actions/workflows/test.yml/badge.svg?branch=v0.2.1
|
|
305
|
+
[test-url]: https://github.com/stdlib-js/utils-map-reduce-right/actions/workflows/test.yml?query=branch:v0.2.1
|
|
298
306
|
|
|
299
307
|
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/utils-map-reduce-right/main.svg
|
|
300
308
|
[coverage-url]: https://codecov.io/github/stdlib-js/utils-map-reduce-right?branch=main
|
|
@@ -317,17 +325,30 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors].
|
|
|
317
325
|
[es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
|
|
318
326
|
|
|
319
327
|
[deno-url]: https://github.com/stdlib-js/utils-map-reduce-right/tree/deno
|
|
328
|
+
[deno-readme]: https://github.com/stdlib-js/utils-map-reduce-right/blob/deno/README.md
|
|
320
329
|
[umd-url]: https://github.com/stdlib-js/utils-map-reduce-right/tree/umd
|
|
330
|
+
[umd-readme]: https://github.com/stdlib-js/utils-map-reduce-right/blob/umd/README.md
|
|
321
331
|
[esm-url]: https://github.com/stdlib-js/utils-map-reduce-right/tree/esm
|
|
332
|
+
[esm-readme]: https://github.com/stdlib-js/utils-map-reduce-right/blob/esm/README.md
|
|
322
333
|
[branches-url]: https://github.com/stdlib-js/utils-map-reduce-right/blob/main/branches.md
|
|
323
334
|
|
|
324
335
|
[stdlib-license]: https://raw.githubusercontent.com/stdlib-js/utils-map-reduce-right/main/LICENSE
|
|
325
336
|
|
|
326
|
-
[@stdlib/ndarray/ctor]: https://www.npmjs.com/package/@stdlib/
|
|
337
|
+
[@stdlib/ndarray/ctor]: https://www.npmjs.com/package/@stdlib/ndarray-ctor
|
|
338
|
+
|
|
339
|
+
[@stdlib/array/complex64]: https://www.npmjs.com/package/@stdlib/array-complex64
|
|
340
|
+
|
|
341
|
+
[@stdlib/array/complex128]: https://www.npmjs.com/package/@stdlib/array-complex128
|
|
342
|
+
|
|
343
|
+
<!-- <related-links> -->
|
|
344
|
+
|
|
345
|
+
[@stdlib/utils/map-right]: https://www.npmjs.com/package/@stdlib/utils-map-right
|
|
346
|
+
|
|
347
|
+
[@stdlib/utils/map-reduce]: https://www.npmjs.com/package/@stdlib/utils-map-reduce
|
|
327
348
|
|
|
328
|
-
[@stdlib/
|
|
349
|
+
[@stdlib/utils/reduce-right]: https://www.npmjs.com/package/@stdlib/utils-reduce-right
|
|
329
350
|
|
|
330
|
-
|
|
351
|
+
<!-- </related-links> -->
|
|
331
352
|
|
|
332
353
|
</section>
|
|
333
354
|
|
package/SECURITY.md
ADDED
package/docs/types/index.d.ts
CHANGED
|
@@ -193,10 +193,10 @@ type ArrayReducer<U, V, T, W> = NullaryReducer<V, W> | UnaryReducer<V, W> | Bina
|
|
|
193
193
|
* @returns accumulated result
|
|
194
194
|
*
|
|
195
195
|
* @example
|
|
196
|
-
* var naryFunction = require(
|
|
197
|
-
* var abs = require(
|
|
198
|
-
* var add = require(
|
|
199
|
-
* var array = require(
|
|
196
|
+
* var naryFunction = require( '@stdlib/utils-nary-function' );
|
|
197
|
+
* var abs = require( '@stdlib/math-base-special-abs' );
|
|
198
|
+
* var add = require( '@stdlib/math-base-ops-add' );
|
|
199
|
+
* var array = require( '@stdlib/ndarray-array' );
|
|
200
200
|
*
|
|
201
201
|
* var opts = {
|
|
202
202
|
* 'dtype': 'generic'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stdlib/utils-map-reduce-right",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Perform a single-pass map-reduce operation against each element in an array while iterating from right to left and return the accumulated result.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -15,19 +15,12 @@
|
|
|
15
15
|
],
|
|
16
16
|
"main": "./lib",
|
|
17
17
|
"directories": {
|
|
18
|
-
"benchmark": "./benchmark",
|
|
19
18
|
"doc": "./docs",
|
|
20
|
-
"example": "./examples",
|
|
21
19
|
"lib": "./lib",
|
|
22
|
-
"
|
|
20
|
+
"dist": "./dist"
|
|
23
21
|
},
|
|
24
22
|
"types": "./docs/types",
|
|
25
|
-
"scripts": {
|
|
26
|
-
"test": "make test",
|
|
27
|
-
"test-cov": "make test-cov",
|
|
28
|
-
"examples": "make examples",
|
|
29
|
-
"benchmark": "make benchmark"
|
|
30
|
-
},
|
|
23
|
+
"scripts": {},
|
|
31
24
|
"homepage": "https://stdlib.io",
|
|
32
25
|
"repository": {
|
|
33
26
|
"type": "git",
|
|
@@ -37,40 +30,16 @@
|
|
|
37
30
|
"url": "https://github.com/stdlib-js/stdlib/issues"
|
|
38
31
|
},
|
|
39
32
|
"dependencies": {
|
|
40
|
-
"@stdlib/array-base-arraylike2object": "^0.1
|
|
41
|
-
"@stdlib/assert-is-array-like-object": "^0.1
|
|
42
|
-
"@stdlib/assert-is-function": "^0.1
|
|
43
|
-
"@stdlib/assert-is-ndarray-like": "^0.1
|
|
44
|
-
"@stdlib/ndarray-base-ndarraylike2object": "^0.1
|
|
45
|
-
"@stdlib/ndarray-base-vind2bind": "^0.1
|
|
46
|
-
"@stdlib/string-format": "^0.1
|
|
47
|
-
"@stdlib/
|
|
48
|
-
"@stdlib/error-tools-fmtprodmsg": "^0.1.0"
|
|
49
|
-
},
|
|
50
|
-
"devDependencies": {
|
|
51
|
-
"@stdlib/array-base-filled": "^0.1.0",
|
|
52
|
-
"@stdlib/array-complex64": "^0.1.0",
|
|
53
|
-
"@stdlib/array-filled-by": "^0.0.2",
|
|
54
|
-
"@stdlib/array-float64": "^0.1.0",
|
|
55
|
-
"@stdlib/bench": "^0.1.0",
|
|
56
|
-
"@stdlib/complex-float32": "^0.1.0",
|
|
57
|
-
"@stdlib/complex-imagf": "^0.1.0",
|
|
58
|
-
"@stdlib/complex-realf": "^0.1.0",
|
|
59
|
-
"@stdlib/math-base-assert-is-nan": "^0.1.0",
|
|
60
|
-
"@stdlib/math-base-ops-add": "^0.1.0",
|
|
61
|
-
"@stdlib/math-base-ops-cadd": "^0.1.0",
|
|
62
|
-
"@stdlib/math-base-special-abs": "^0.1.0",
|
|
63
|
-
"@stdlib/math-base-special-cceil": "^0.1.0",
|
|
64
|
-
"@stdlib/math-base-special-pow": "^0.1.0",
|
|
65
|
-
"@stdlib/ndarray-array": "^0.0.9",
|
|
66
|
-
"@stdlib/ndarray-ctor": "^0.1.0",
|
|
67
|
-
"@stdlib/random-base-discrete-uniform": "^0.0.6",
|
|
68
|
-
"@stdlib/utils-nary-function": "^0.1.0",
|
|
69
|
-
"@stdlib/utils-noop": "^0.1.0",
|
|
70
|
-
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
|
|
71
|
-
"istanbul": "^0.4.1",
|
|
72
|
-
"tap-min": "git+https://github.com/Planeshifter/tap-min.git"
|
|
33
|
+
"@stdlib/array-base-arraylike2object": "^0.2.1",
|
|
34
|
+
"@stdlib/assert-is-array-like-object": "^0.2.1",
|
|
35
|
+
"@stdlib/assert-is-function": "^0.2.1",
|
|
36
|
+
"@stdlib/assert-is-ndarray-like": "^0.2.1",
|
|
37
|
+
"@stdlib/ndarray-base-ndarraylike2object": "^0.2.1",
|
|
38
|
+
"@stdlib/ndarray-base-vind2bind": "^0.2.1",
|
|
39
|
+
"@stdlib/string-format": "^0.2.1",
|
|
40
|
+
"@stdlib/error-tools-fmtprodmsg": "^0.2.1"
|
|
73
41
|
},
|
|
42
|
+
"devDependencies": {},
|
|
74
43
|
"engines": {
|
|
75
44
|
"node": ">=0.10.0",
|
|
76
45
|
"npm": ">2.7.0"
|
package/CITATION.cff
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
cff-version: 1.2.0
|
|
2
|
-
title: stdlib
|
|
3
|
-
message: >-
|
|
4
|
-
If you use this software, please cite it using the
|
|
5
|
-
metadata from this file.
|
|
6
|
-
|
|
7
|
-
type: software
|
|
8
|
-
|
|
9
|
-
authors:
|
|
10
|
-
- name: The Stdlib Authors
|
|
11
|
-
url: https://github.com/stdlib-js/stdlib/graphs/contributors
|
|
12
|
-
|
|
13
|
-
repository-code: https://github.com/stdlib-js/stdlib
|
|
14
|
-
url: https://stdlib.io
|
|
15
|
-
|
|
16
|
-
abstract: |
|
|
17
|
-
Standard library for JavaScript and Node.js.
|
|
18
|
-
|
|
19
|
-
keywords:
|
|
20
|
-
- JavaScript
|
|
21
|
-
- Node.js
|
|
22
|
-
- TypeScript
|
|
23
|
-
- standard library
|
|
24
|
-
- scientific computing
|
|
25
|
-
- numerical computing
|
|
26
|
-
- statistical computing
|
|
27
|
-
|
|
28
|
-
license: Apache-2.0 AND BSL-1.0
|
|
29
|
-
|
|
30
|
-
date-released: 2016
|