I'm trying to figure out how to create associative arrays, such as dictionaries in Python:
dictionary = {"key1":value1,"key2":value2}
How can I implement it in Vala? or if there is no other solution that would be more practical.
Thanks.
I'm trying to figure out how to create associative arrays, such as dictionaries in Python:
dictionary = {"key1":value1,"key2":value2}
How can I implement it in Vala? or if there is no other solution that would be more practical.
Thanks.
GLib.HashTable
is probably the closest: