mutableMapFrom<K, V> function

KtMutableMap<K, V> mutableMapFrom<K, V>([
  1. Map<K, V> map = const {}
])

Returns a new KtMutableMap with the specified contents, given as a list of pairs where the first component is the key and the second is the value.

If multiple pairs have the same key, the resulting map will contain the value from the last of those pairs.

Entries of the map are iterated in the order they were specified.

Implementation

KtMutableMap<K, V> mutableMapFrom<K, V>([Map<K, V> map = const {}]) =>
    KtMutableMap.from(map);