Course of Raku / Advanced / Containers / Subscript adverbs 🆕 / Exercises

Key and value

Problem

Given the hash x => 10, y => 20, use a subscript adverb to print both the key x and the value stored under it, together.

Example

The program prints:

(x 10)

Solution

See the solution

Course navigation

Solution: Delete a key   |   Solution: Key and value