Standard LibraryFunctionsreduceOn this pagereduce reduce(Object container, Object func) -> Object Reduces a container using its first element as the accumulator. Parameters container: A container with at least two elements. func: The reduction function. Returns The reduced value. Example reduce([1, 2, 3, 4], `+`)//-> 10