I guess nobody mentioned this, so I don't know how people on perl-language feel about 'do it the same was as <language>', but I took a small jump into Haskell a while back (barely enough to consider myself a beginner), but even after just a little bit of time with it, I think I'd almost expect the default zip behavior to stop zipping after the least amount of elements.
On 10/5/05, Juerd <[EMAIL PROTECTED]> wrote: > > Damian Conway skribis 2005-10-05 10:05 (+1000): > > I suspect that the dwimmiest default would be for C<zip> to stop zipping > at > > the length of the shortest finite argument. And to fail unless all > finite > > arguments are of the same length. > > This is a nice compromise. > > But what if you cannot know whether a list is finite? > > my @foo = slurp ...; # lazy, but can be either finite or infinite > my @bar = 1..10; > > say @foo Y @bar; # ? > > > Juerd > -- > http://convolution.nl/maak_juerd_blij.html > http://convolution.nl/make_juerd_happy.html > http://convolution.nl/gajigu_juerd_n.html >