mapKtx<K, V> extension

on

Methods

mapToList<R>(R transform(K, V)) List<R>

Available on Map<K, V>, provided by the mapKtx extension

Returns a list containing the results of applying the given transform function to each entry in the original map.
mapToListTo<R>(List<R> destination, R transform(K, V)) List<R>

Available on Map<K, V>, provided by the mapKtx extension

Applies the given transform function to each entry of the original map and appends the results to the given destination.