Cursus Raku / Elementa / 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'};  

Cursus navigatio

Associativa data genera / Hashes   |   Associativa data genera / Interpolando hashes


💪 Or jump directly to the exercises to this section.

Haec pagina automatice translata est per ChatGPT 4o. Originalis Anglicus textus

Translationes huius paginae: EnglishDeutschEspañolItalianoLatviešuNederlandsБългарскиРусскийУкраїнська