fold method

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

Alias for foldLeft with a same-type accumulator.

Implementation

A fold(A init, Function2<A, A, A> op) => foldLeft(init, op);