RosettaCodeData/Task/Associative-array-Creation/Dao/associative-array-creation.dao
2015-02-20 00:35:01 -05:00

5 lines
250 B
Text

m = { => } # empty ordered map, future inserted keys will be ordered
h = { -> } # empty hash map, future inserted keys will not be ordered
m = { 'foo' => 42, 'bar' => 100 } # with ordered keys
h = { 'foo' -> 42, 'bar' -> 100 } # with unordered keys