map<R> method

  1. @useResult
KtList<R> map<R>(
  1. R transform(
    1. KtMapEntry<K, V> entry
    )
)

Returns a list containing the results of applying the given transform function to each entry in the original map.

Implementation

@useResult
KtList<R> map<R>(R Function(KtMapEntry<K, V> entry) transform) {
  final mapped = mapTo(mutableListOf<R>(), transform);
  return mapped;
}