On Tue, Oct 04, 2005 at 09:00:15PM +0200, Juerd wrote: > What should zip do given 1..3 and 1..6? > > (a) 1 1 2 2 3 3 4 5 6 > (b) 1 1 2 2 3 3 undef 4 undef 5 undef 6 > (c) 1 1 2 2 3 3 > (d) fail > > I'd want c, mostly because of code like > > for @foo Y 0... -> $foo, $i { ... } > > Pugs currently does b.
(a) and (d) are certainly wrong IMHO. Surely zip could get a modifier to vary the behavior as desired? for @foo ¥ 0... :greedy -> $foo, $i { ... } # (b) for @foo ¥ 0... :conservative -> $foo, $i { ... } # (c) Didn't we go over this a while back? Anyway, I agree that (c) is probably the sanest default behavior. -Scott -- Jonathan Scott Duff [EMAIL PROTECTED]