sum

ABSTRACT

Calculates the sum of the entries of a vector

PARAMETERS
va vector of a numbers
RETURN

The sum of all entries of the given vector. If v is empty, this function returns 0

DECLARATION
func sum(v)