Ungolfed:
sub foo { my $a = shift @_; return [] unless $a; map { my $b = $_; map { [$_,@$b] } @$a } foo(@_); }
- Ant
- Some of my
best work - (1 2 3)
In reply to Re: Re: Re: (GOLF) combine N arrays
by suaveant
in thread (GOLF) combine N arrays
by suaveant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |