start | all-pages
a:reduce
Data Stack: anq-n
Address Stack: -
Takes an array, a starting value, and a quote. This will run
the quote against each item in the array; the quote should
consume two values and return one
Example:
#1 #2 #3 #4 #4 a:make/temp
#0 [ n:add ] a:reduce (sum_the_values_in_the_array)
Type: word
Defined In: rom