Damian Conway wrote:
> Rather than addition Yet Another Feature, what's wrong with just using:
>
> for @list ¥ @list[1...] -> $curr, $next {
> ...
> }
>
> ???
>
> Damian
>
Shouldn't that be:
for [@list, undef] ¥ @list[1...] -> $curr, $next {
...
}
As I remember it zip hrows away extras, not fills in with undef.
--
mark@biggar.org
mark.a.biggar@comcast.net
Thread Previous
|
Thread Next