HashTable example - using GLib from Vala
Please add the following example to the tutorial documentation as it shows how to use the information provided by https://developer.gnome.org/glib/2.64/ to write a Vala program.
int main (string[] args)
{var hash = new HashTable<string,string>(str_hash, str_equal);
hash.insert("1", "one");
hash.insert("2", "two");
foreach(string key in hash.get_keys())
{stdout.printf ("%s => %s \n", key, hash.lookup(key));
}
return 0;
}
/*valac hash.vala
2 => two
1 => one
*/