Skip to content

Instantly share code, notes, and snippets.

@pmichaud
Created June 27, 2012 17:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmichaud/3005502 to your computer and use it in GitHub Desktop.
Save pmichaud/3005502 to your computer and use it in GitHub Desktop.
pmichaud@kiwi:~/p6/rakudo$ cat z
my @z = 1,2;
my $rop = &infix:<..>;
say $rop(|@z).perl;
my @zip := gather { take $rop(|@z) };
say @zip.perl;
pmichaud@kiwi:~/p6/rakudo$ ./perl6 z
1..2
(1, 2).list
pmichaud@kiwi:~/p6/rakudo$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment