Course of Raku / Essentials / Variables and data types essentials / Ranges / Excluding endpoints

Quiz — Creating ranges

Select the lines with correct Raku syntax.

11..10
11 .. 10
1-1..20
0-1 . . 20
16^..10
07^.. ^10
110..^20
130^..^30
030 ^ .. ^ 30
130 ^..^ 30
1^40
1^ 50Fine, but looks a bit weird.
060^Not a valid syntax.

Comments

All the range creation operators (as well as other Raku operators) are uninterrupted sequences of characters, so you cannot insert a space between their parts.

Course navigation

Excluding endpoints   |   Matching against a range

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