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

8 lines
114 B
Text
Raw Permalink Normal View History

2023-12-16 21:33:55 -08:00
var hash = Hash(
2023-07-01 11:58:00 -04:00
key1 => 'value1',
key2 => 'value2',
2023-12-16 21:33:55 -08:00
)
2023-07-01 11:58:00 -04:00
# Add a new key-value pair
2023-12-16 21:33:55 -08:00
hash{:key3} = 'value3'