hashMapOf

abstract fun <K, V> hashMapOf(vararg pairs: Pair<K, V>): HashMap<K, V>

创建新的 HashMap 并将给定元素添加到其中.

Return

新的 HashMap

Parameters

K

HashMap 键类型

V

HashMap 值类型

pairs

键值对