Perl 6 Perl 6 today #34

The cross (X) operator

The X operator produces all of the permutations of two or more lists

> my @a = <a b c>;
> my @b = <1 2>;

> for @a X @b { say "$^a $^b"; }
a 1
a 2
b 1
b 2
c 1
c 2
Copyright © 2009
http://www.pmichaud.com/2009/pres/