fold<T> method

T fold<T>(
  1. T initialValue,
  2. T combine(
    1. T previousValue,
    2. E element
    )
)

Implementation

T fold<T>(T initialValue, T Function(T previousValue, E element) combine) =>
    value.fold<T>(initialValue, combine);