kotlin.collections.plus

plus

operator fun <K, V> Map<out K, V>.plus(
    pair: Pair<K, V>
): Map<K, V>

Creates a new read-only map by replacing or adding an entry to this map from a given key-value pair.

The returned map preserves the entry iteration order of the original map. The 登录查看完整内容