foldValues<R> method

R foldValues<R>(
  1. R initial,
  2. R fn(
    1. Path path,
    2. T value,
    3. R accumulator
    )
)

Folds every value with an accumulator, starting from initial (Android's fold).

Implementation

R foldValues<R>(
  R initial,
  R Function(Path path, T value, R accumulator) fn,
) => _foldValues(Path.empty, initial, fn);