map<K1, V1> method

Pair<K1, V1> map<K1, V1>(
  1. Mapper<K, K1> key,
  2. Mapper<V, V1> value
)

Creates a Pair which key and value has been mapped using key and value.

Implementation

Pair<K1, V1> map<K1, V1>(Mapper<K, K1> key, Mapper<V, V1> value) => Pair(key(this.key), value(this.value));