Course of Raku / Essentials

Positional data types

It is time to talk about more complex data types. Positional data types in Raku are those that can be indexed (or subscripted). We already met one of the representatives of this class of data type: ranges.

In this section, we introduce two more positional data types: Array and List. More in-depth information will follow up in the second part. We also take a second look at ranges in light of them being a positional data type.

Topics in this section

Practice

Complete the quizzes that cover the contents of this section.

Exercises

This section contains 9 exercises. Examine all the topics of this section before doing the coding practice.

  1. Square and cube
  2. Traffic lights
  3. The number of command-line arguments
  4. Print command-line arguments
  5. Count and print command-line arguments
  6. Months names
  7. Odd indices
  8. Print a series of numbers
  9. Spell a number

Course navigation

Solution: Converting user input to a number   |   Arrays

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