-
-
Save dagurval/9c238e886a57025153cc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat p6test.p6 | |
sub a { | |
gather { | |
my %a = { hello => "world" } | |
my %b = { hello => "world", santa => "clause" } | |
take %a; | |
take %b; | |
} | |
} | |
sub b { | |
gather { | |
take { hello => "world" } | |
take { hello => "world", santa => "clause" } | |
} | |
} | |
say "A: ", a().perl; | |
say "B: ", b().perl; | |
$ perl6 p6test.p6 | |
A: ("hello" => "world", "hello" => "world", "santa" => "clause").list | |
B: ({"hello" => "world"}, {"hello" => "world", "santa" => "clause"}).list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment