Course of Raku / Advanced / Containers
Ordered containers
Ordered containers keep several elements and preserve their order, so each element can be reached by its position. (In special cases they may also hold a single element or none at all.) The most common ordered containers are arrays and lists.
The @ sigil tells you that a variable is meant to hold
many elements. A variable with the @ sigil supports
subscripting, so you can read an element by its index, as you already
saw in the Essentials part.
In this section, we take a closer look at how arrays and lists differ as containers: which of them you can modify, what happens when you put one container inside another, and how binding gives a name to a container without copying anything.
Topics in this section
Practice
Complete the quizzes that cover the contents of this section.
Exercises
This section contains 3 exercises. Examine all the topics of this section before doing the coding practice.