Larry Wall skribis 2005-03-17  9:05 (-0800):
> That's what has been specified.
> Maybe we need a short-circuit zip:
>     for @foos ¥¥ 1... -> $foo, $i { ... }

Because ¥ is shorter than ¥¥, and because the 1... thing is probably
going to be used much, I think it should be the one that returns the
shorter list.

    my @foo = 1..3;
    my @bar = 1..5;

    @foo ¥ @bar   # =>> 1 1 2 2 3 3
    @foo ¥¥ @bar  # =>> 1 1 2 2 3 3 undef 4 undef 5


Juerd
-- 
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html 
http://convolution.nl/gajigu_juerd_n.html

Reply via email to