toMap
Returns a new map containing all key-value pairs from the given collection of pairs.
The returned map preserves the entry iteration order of the original collection. If any of two pairs would have the same key the last one gets added to the map.
Since Kotlin
1.0Populates and returns the destination mutable map with key-value pairs from the given collection of pairs.
Since Kotlin
1.0Returns a new map containing all key-value pairs from the given array of pairs.
The returned map preserves the entry iteration order of the original array. If any of two pairs would have the same key the last one gets added to the map.
Since Kotlin
1.0Populates and returns the destination mutable map with key-value pairs from the given array of pairs.
Since Kotlin
1.0Returns a new map containing all key-value pairs from the given sequence of pairs.
The returned map preserves the entry iteration order of the original sequence. If any of two pairs would have the same key the last one gets added to the map.
Since Kotlin
1.0Populates and returns the destination mutable map with key-value pairs from the given sequence of pairs.