On Tue, Nov 18, 2003 at 06:28:59PM -0500, Gordon Henriksen wrote: : Whuh? Tangential at best... The result would be the same as in a : non-vectorized version, just repeated automatically for you. : : my @b = for @a -> $_ { : ... : }
That will be a syntax error. Generators are too mind-stretching to inflict on novices as ordinary syntax. You'll have to say something explicit like: my @b = generate { for @a -> $_ { yield ... } } It's vaguely possible that "generate" and "do" are the same thing. It's quite possible that the best name is something else entirely. But "for" ain't it... : Should be broadly equivalent to: : : my @b = map { ... } @a; : : - OR - : : # (Apologies for the perl5-isms.) : for @a -> $_ { : push @b: do { ... }; : } Hmm? I see no perl5-isms there. Or rather, I see no non-perl6-isms... Larry