hashTableForeachSteal

fun hashTableForeachSteal(hashTable: HashTable, func: HRFunc): <Error class: unknown class>

Calls the given function for each key/value pair in the #GHashTable. If the function returns true, then the key/value pair is removed from the #GHashTable, but no key or value destroy functions are called.

See #GHashTableIter for an alternative way to loop over the key/value pairs in the hash table.

Return

the number of key/value pairs removed.

Parameters

hashTable

a #GHashTable

func

the function to call for each key/value pair