Cursus Raku / Elementa / Plura de generibus / Associativa data genera / Nidificata hashes
Quiz — Multilevel hashes
For the given data structure:
my %statistics =
1900 => {
Jan => 500,
Feb => 550,
},
2000 => {
Jan => 1230,
Feb => 1245,
};Select the lines which provide correct access to the data item for February of 1900.
| 1 | dic %statistics<1900><Feb>; | |
| 1 | dic %statistics{1900}<Feb>; | Hoc rectum est, quia 1900 potest implicite in string converti. |
| 0 | dic %statistics{1900}{Feb}; | Falsum, quia Feb debet esse string. |
| 1 | dic %statistics{'1900'}{'Feb'}; |