Scan
The running combination of over a collection, one result per element.
Scan(xs, f) — same length as , the partial folds of with no seed.Scan(xs, f, init)as above, but folding from — still same length as (the seed is not itself an output element).Typed signatures
| Type | Package | Applies |
|---|---|---|
(indexed_collection<T>, reducer: (unknown, T) any -> unknown, initial: value?) -> indexed_collection where T | compute-engine | always |
Examples
Scope #
Possible issues #
About
| Examples | 9 |
|---|---|
| Checked against | Wolfram Language 8 agree1 differ |
See also: Fold