sum
sum(
@llll ## required
@depth null
@mindepth 1
@maxdepth 1
) -> llll/null
Returns the sum of the elements in @llll
. By default, only the root level is summed. This can be changed with the @mindepth
and @maxdepth
arguments.
Arguments
@llll
[llll] (required)@depth
[int/llll/null] (default:null
)@mindepth
[int] (default:1
)@maxdepth
[int] (default:1
)
Output
Sum of the elements in @llll
. [llll/null]
warning
sum
is a built-in function in the bell programming language and is not unique or exclusive to bellplay~. As such, sum
will return null
without raising an error if required arguments are not provided.