toHashTable

inline fun <K, V> Map<K, V>.toHashTable(): Hashtable<K, V>

Returns a Hashtable containing all elements.

Example:

mapOf(1 to 2, 2 to 3).toHashTable() // {1=2, 2=3}

Since

1.1.0


inline fun <K, V> Pair<K, V>.toHashTable(): Hashtable<K, V>

Returns a Hashtable containing all elements.

Example:

(1 to 2).toHashTable() // {1=2}

Since

1.1.0