Course of Raku / Essentials / Positional data types / Subscripting ranges
Quiz — working with ranges
Type in the result of the following expressions for the given range.
. | my $range = 5..10; |
5 | say $range[0]; # ␣␣ |
10 | say $range[5]; # ␣␣ |
6 | say $range.elems; # ␣␣ |
Course navigation
← Positional data types / Quoting string arrays | 💪 Exercises: Positional data types →
Translations of this page: English • Deutsch • Español • Italiano • Latviešu • Nederlands • Български • Русский • Українська