forEach


Description:

public void forEach (owned BiConsumerFunc<K,V> func)

Applies the given function to each key-value pair in the map.

Example:

    var map = new HashMap<string,string> (GLib.str_hash, GLib.str_equal);
map.put ("a", "1");
map.forEach ((k, v) => {
print ("%s=%s\n", k, v);
});

Parameters:

func

the function to apply to each entry.