fold method
Returns a summary value by applying op
to all elements of this
collection, moving from left to right. The fold uses a seed value of
z
.
Implementation
A fold(A init, Function2<A, A, A> op) => foldLeft(init, op);
Returns a summary value by applying op
to all elements of this
collection, moving from left to right. The fold uses a seed value of
z
.
A fold(A init, Function2<A, A, A> op) => foldLeft(init, op);