mapValues<R> method

ValueStream<Map<K, R>> mapValues<R>(
  1. R mapper(
    1. K key,
    2. V value
    )
)

Implementation

ValueStream<Map<K, R>> mapValues<R>(R mapper(K key, V value)) {
  return this.map((self) => self.map((k, v) => MapEntry(k, mapper(k, v))));
}