foreach_steal


Description:

public uint foreach_steal (HRFunc<K,V> predicate)

Calls the given function for each key/value pair in the GenericSet.

If the function returns true, then the key/value pair is removed from the GenericSet, but no key or value destroy functions are called.

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

Parameters:

func

the function to call for each key/value pair

hash_table

a GenericSet

user_data

user data to pass to the function

Returns:

the number of key/value pairs removed.