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

Does the key exist

Problem

Given the hash a => 1, b => 2, use a subscript adverb to print whether the key z exists.

Example

The program prints:

False

Solution

See the solution

Course navigation

Keys, values, and pairs   |   Solution: Does the key exist