The function SUM takes a List of Numbers and adds them all together.
This function takes a List of Numbers as input. It outputs a single Number: the sum up every number in the List, added together.
Declaration
SUM(list_of_numbers) -> sum_of_numbers
Parameters
list_of_numbers (type: List)
A list of Numbers to add together.
Return Values
sum_of_numbers (type: Number)
Number representing the sum of all the Numbers in the given List.
Examples
The following example takes a List of Numbers and returns the sum of all the Numbers in the given List:
SUM([1, 4, 3, 3, 2]) -> 13