fold<E> method

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

Reduces a collection to a single value by iteratively combining eac element of the collection with an existing value.

Implementation

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