insert

fun insert(hashTable: HashTable, key: <Error class: unknown class>? = null, value: <Error class: unknown class>? = null): Boolean

Inserts a new key and value into a #GHashTable.

If the key already exists in the #GHashTable its current value is replaced with the new value. If you supplied a

Return

true if the key did not exist yet

Parameters

hashTable

a #GHashTable

key

a key to insert

value

the value to associate with the key