Course of Raku / Advanced / Containers / Ordered containers / Lists
Quiz — Arrays and lists
Which of the following programs run without an error?
| 1 | my @a = 1, 2, 3; @a[0] = 10; |
| 0 | my $list = (1, 2, 3); $list[0] = 10; |
| 1 | my @a = 1, 2, 3; say @a[0]; |
| 1 | my $list = (1, 2, 3); say $list[0]; |
Course navigation
← Lists | Binding with
:= →