hashMapOf

inline fun <K, V> hashMapOf(): HashMap<K, V>(source)

Returns an empty new HashMap.

Since Kotlin

1.1

Samples


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

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

Since Kotlin

1.0

Samples