Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created April 27, 2019 17:41
Show Gist options
  • Save Whateverable/42ccc7f6ae6d9853b6e690e74d6fd71d to your computer and use it in GitHub Desktop.
Save Whateverable/42ccc7f6ae6d9853b6e690e74d6fd71d to your computer and use it in GitHub Desktop.
evalable6
my %h = (:a<1 2 3>, :b<4 5 6>, :c<7 8>); say gather for %h.keys -> $k { for @{%h{$k}} -> $v { take $k, $v } }
(exit code 1)
===SORRY!=== Error while compiling /tmp/JtBAZfTelq
Unsupported use of @{%h{$k}; in Perl 6 please use @(%h{$k) for hard ref or @::(%h{$k) for symbolic ref
at /tmp/JtBAZfTelq:1
------> gather for %h.keys -> $k { for @{%h{$k}⏏} -> $v { take $k, $v } }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment