REDUCE

Allows for turning an array into a single value.

Syntax 

REDUCE(array, LAMBDA(previous_value, current_value, [expr]), initial value)