RosettaCodeData/Task/Associative-array-Creation/Sidef/associative-array-creation.sidef

8 lines
120 B
Text
Raw Permalink Normal View History

2016-12-05 23:44:36 +01:00
var hash = Hash.new(
key1 => 'value1',
key2 => 'value2',
);
# Add a new key-value pair
hash{:key3} = 'value3';