in the above code with:$result = matrixwise_map(\&f, $mats); print dumpf($result), $/;
to give me the same answer as in the comments.my @result = matrixwise_map(\&f, $mats); print dumpf(@result), $/;
In reply to Small typo
by perlmoth
in thread Two handy tools for nested arrays: mapat and transpose
by tmoertel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |