Skip to content

Instantly share code, notes, and snippets.

@lizmat
Created May 12, 2021 10:23
Show Gist options
  • Save lizmat/c165bb0cbf9d4af25499ce767486093d to your computer and use it in GitHub Desktop.
Save lizmat/c165bb0cbf9d4af25499ce767486093d to your computer and use it in GitHub Desktop.
map inner map doesn't map
my %h;
%h<n1> := { a => 42 }
%h<n2> := { b => 666 }
my @n = <n1 n2>;
my @d = <a b>;
if %h{@n} -> @dh {
dd @dh;
@d.map: -> $d {
dd $d;
dd @n;
@n.map: { die $_ }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment