Course of Raku / Essentials / More about types / Associative data types / Hashes

Quiz 2 — Hash elements

Correct the errors in the following program.

.my %data =
.    Jan => 1045,
.    Feb => 2034,
.    Mar => 1987;
% @ { < } >say ␣data␣'Jan'␣;
% $ { < } >say ␣data␣'Feb'␣;Note that %data<Feb> is more expressive and compact.

Course navigation

Quiz 1 — Hashes   |   Nested hashes

Translations of this page: EnglishDeutschEspañolItalianoLatviešuNederlandsБългарскиРусскийУкраїнська