in reply to Re: Re: (GOLF) combine N arrays
in thread (GOLF) combine N arrays
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)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re4: (GOLF) combine N arrays
by belg4mit (Prior) on Apr 15, 2002 at 23:56 UTC |