MapKeysAndValyesOnMapX<K1, V1> extension

on

Methods

mapKeys<K2>(K2 mapper(K1 key)) Map<K2, V1>

Available on Map<K1, V1>, provided by the MapKeysAndValyesOnMapX extension

Returns a new map with new keys and the same values.
mapValues<V2>(V2 mapper(V1 value)) Map<K1, V2>

Available on Map<K1, V1>, provided by the MapKeysAndValyesOnMapX extension

Returns a new map with the same keys and new values.