Course of Raku / Essentials / More about types / Positional data types / Quoting string arrays

Quiz 1 — Quoting string arrays

Check for which of the arrays the element with index 1 contains the letter B. In other words, say @array[1] prints B.

1my @array = <A B C>;
1my @array = 'A', 'B', 'C';
0my @array = <'A', 'B', 'C'>;The elements of this array contain both the quotes and even the comma: 'B',.
1my @array = ['A', 'B', 'C'];
1my @array = ('A', 'B', 'C');

Course navigation

Quoting string arrays   |   Quiz 2 — Recognising lists

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