RosettaCodeData/Task/Associative-array-Creation/Sidef/associative-array-creation.sidef
2023-07-01 13:44:08 -04:00

7 lines
120 B
Text

var hash = Hash.new(
key1 => 'value1',
key2 => 'value2',
);
# Add a new key-value pair
hash{:key3} = 'value3';