get_keys


Description:

[ Version ( since = "2.14" ) ]
public List<unowned K> get_keys ()

Example: Get the keys:

public static int main (string[] args) {
HashTable<int, string> table = new HashTable<int, string> (direct_hash, direct_equal);
table.insert (1, "first string");
table.insert (2, "second string");
table.insert (3, "third string");

// Output: ``3 2 1``
foreach (int key in table.get_keys ()) {
print ("%d ", key);
}
print ("\n");

return 0;
}

valac --pkg glib-2.0 GLib.HashTable.get_keys.vala