Fermat
Search
K

Reduce

You can reduce a structure by using a function that for each pair of elements in the structure produces a single value which is then put into the accumulator for the next iteration to use.
reduce [structure] with ([ID], [ID]):
[block]
end
Here, you can find an example with a text:
reduce "hello" with (x,y):
x + " " + y
end
Output:
> _ h_ e_ l_ l_ o
Last modified 1yr ago