Description Usage Arguments Examples
foldn
is the generator-equivalent of the function Reduce
.
It takes a generator, produces .n
values and applies a binary
function iteratively, returning a scalar.
1 |
.generator |
A function with the class |
.n |
The number of iterations to produce |
.FUN |
A binary fold function to reduce the generator to a single value |
... |
Additional arguments to .FUN |
.start |
The starting value for the reduction |
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.