And, of course, it also works without the temporary array variable:
... my @totals= MapCarU { sum( @_ ) } map $_->{items}, @sets;
- tye
In reply to Re^2: performing a function on corresonding array elements (w/o temp)
by tye
in thread performing a function on corresonding array elements
by vindaloo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |