
⚲
sum
Returns the sum of a numeric list.
Syntax: sum x; sum[x]
o)sum 10 20 30
60
o)sum til 10
45
Returns an error for lists that are not numeric:
o)sum "word"
** exec error: `sum` args: ["word"]
sum
is an aggregate function, equivalent to +/
.
Returns the sum of a numeric list.
Syntax: sum x; sum[x]
o)sum 10 20 30
60
o)sum til 10
45
Returns an error for lists that are not numeric:
o)sum "word"
** exec error: `sum` args: ["word"]
sum
is an aggregate function, equivalent to +/
.