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);
});
| func |
the function to apply to each entry. |