fold method

A fold(
  1. A init,
  2. Function2<A, A, A> op
)
inherited

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);