rocinantealpha

reference / lists

combine

Folds a list into one value, starting from a value: combine scores from 0 [ result + it ].

scores = [ 4 8 15 ]total = combine scores from 0 [ result + it ]print total

It prints

27

How to write it

combine list from value [ expression ]

Gives a value.

Related