Course of Raku / Essentials / 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
← Associative data types / Pairs | Associative data types / Nested hashes →
💪 Or jump directly to the exercises to this section.
Translations of this page: English • Deutsch • Español • Italiano • Latviešu • Nederlands • Български • Русский • Українська