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:
> http://www.mail-archive.com/[EMAIL PROTECTED]/msg15513.html
That's exactly the point! I wish too there were a more intuitive syntax,
possibly even employing a predefined array variable if none is
explicitly specified...
On Tue, 13 Jul 2004, Jonathan Scott Duff wrote:
> > and it would be very much in the phylosophy of Perl to allow for a very
> > concise syntax to obtain the same effect. I am aware of the zip operator,
> > but AFAICT it solves an equally common but completely different problem...
>
> Are you sure?
>
> for zip(1..10, 5..20, <<foo bar baz>>) -> $x, $y, $text {
> do_something_with $x,$y,$text;
> }
Not sure at all: admittedly I may well be one of the less informed ones
about Perl6 here. Though as far as I can understand zip() is for iterating
*in parallel*, and both other replies here and discussion previously held
here seem to indicate that it is so.
Michele
--
> Una gran americanata quello della cottura dell'Hot-dog con i gas di scarico
> della turbina
Una strunzata in piu' tanto gia' mangiano delle schifezze
in piu' condite con kerosene...
- Natale Novello su it.hobby.modellismo, "Re: Video spettacolare in volo"