reduce(_:_:) | Apple Developer Documentation

Returns the result of combining the elements of the sequence using the given closure.