Algorithm::Loops also handles parallel looping wonderfully:
use Algorithm::Loops qw( MapCarU ); use List::Util qw( sum ); my @items = map { $_->{items} } @sets; my @totals = MapCarU { sum( @_ ) } @items;
⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊
In reply to Re: performing a function on corresonding array elements
by diotalevi
in thread performing a function on corresonding array elements
by vindaloo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |