Course of Raku / Essentials / Associative data types / Hashes
Quiz 1 — Hashes
Correct the errors in the following program. Use the most compact syntax.
| % @ = => => = => = => = | my ␣data ␣␣ Jan ␣␣ 1045, Feb ␣␣ 2034, Mar ␣␣ 1987; |
| < { > } | say %data␣Jan␣; | Both {'Jan'} and <Jan> are correct, but the latter is shorter. |
| < { > } | say %data␣Feb␣; |
Course navigation
← Hashes | Quiz 2 — Hash elements →
Translations of this page: English • Deutsch • Español • Italiano • Latviešu • Nederlands • Български • Русский • Українська