Especially if you only want dim 1 and 2, I'd rather prefer combining map.
> any of these were available as an export!
You might want to have a look at List::MoreUtils or PDL and CPAN modules referencing them in "See Also" or in their dependencies..
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re^4: n-dim array generator
by LanX
in thread n-dim array generator
by jo37
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |