Course of Raku / Advanced / Containers / Ordered containers / Lists

Quiz — Arrays and lists

Which of the following programs run without an error?

1my @a = 1, 2, 3; @a[0] = 10;
0my $list = (1, 2, 3); $list[0] = 10;
1my @a = 1, 2, 3; say @a[0];
1my $list = (1, 2, 3); say $list[0];

Course navigation

Lists   |   Binding with :=