reduce<T> method

List<T> reduce<T>(
  1. T reduce(
    1. K,
    2. V
    )
)

Convert Map<K,V> to List

Implementation

List<T> reduce<T>(T Function(K, V) reduce) {
  return map((K key, V value) {
    return MapEntry(key, reduce.call(key, value));
  }).values.toList();
}