Course of Raku / Advanced / Debugging / Debugging with dd / Exercises

Dump a hash

Problem

Create a hash with the pairs beta => 2 and alpha => 1, and dump it with dd.

Example

The program prints (to standard error):

{:alpha(1), :beta(2)}

Solution

See the solution

Course navigation

Solution: Dump a typed variable   |   Solution: Dump a hash