in reply to Re: Abusing Map
in thread Abusing Map
use List::MoreUtils qw( zip6 ); my @b = map { $_->[0] - $_->[1] } zip6 @{[ @a[0..$#a-1] ]}, @{[ @a[1..$#a] ]};
:)
|
---|
In Section
Seekers of Perl Wisdom
in reply to Re: Abusing Map
in thread Abusing Map
use List::MoreUtils qw( zip6 ); my @b = map { $_->[0] - $_->[1] } zip6 @{[ @a[0..$#a-1] ]}, @{[ @a[1..$#a] ]};
:)
|
---|