Course of Raku / Advanced / Containers / Contexts 🆕 / Exercises

Force a number

Problem

Using the numeric-context operator, print how many elements the array 1, 2, 3 has.

Example

The program prints:

3

Solution

See the solution

Course navigation

Quiz — Item context   |   Solution: Force a number