I apologize in advance for posting yet another suggestion without having
full knowledge of all apocalypses, and I fear (for a very positive
meaning of fear) that the answer will be: but that is already
available.
Well, the point is that I wonder wether Perl6 will support cartesian
products
On Tue, 13 Jul 2004, Austin Hastings wrote:
Using google(+perl6 +cartesian product) would have led you to the
conclusion that this is already included. I hope this is horribly
wrong, since the syntax is a little bewildering.
[...]
See Luke Palmer's Outer product considered useful post:
Jonathan Scott Duff writes:
On Tue, Jul 13, 2004 at 03:31:57PM +0200, Michele Dondi wrote:
Put more clearly, it is now common to see things like:
for my $x (1..10) {
for my $y (5..20) {
for my $text (qw/foo bar baz/) {
do_stgh_with $x, $y, $text;
}
--- Michele Dondi [EMAIL PROTECTED] wrote:
On Tue, 13 Jul 2004, Austin Hastings wrote:
Using google(+perl6 +cartesian product) would have led you to the
conclusion that this is already included. I hope this is horribly
wrong, since the syntax is a little bewildering.
[...]
See Luke
Luke Palmer skribis 2004-07-13 10:28 (-0600):
for outer(1..3, 4..6) - $x, $y {
say $x,$y;
}
1,4
1,5
1,6
2,4
2,5
2,6
3,4
3,5
3,6
So outer is somewhat like {} in shell globs?
perl -le'print for glob {1,2,3},{4,5,6}'
Juerd