Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Mixing up da Arrays (Golf)

by premchai21 (Curate)
on Apr 18, 2001 at 22:25 UTC ( #73615=note: print w/replies, xml ) Need Help??


in reply to Mixing up da Arrays (Golf)

Not shorter, but more obfuscated:
sub Mix{map{my$a=$_;map{$$_[$a]}@_}0..Max(map{scalar @$_}@_)} sub Max{my$a=shift;while(@_){my$b=shift;$a=$b if($b>$a)}$a} print Mix([1,2,3,4],[5,6,7],[8,9,0]);

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://73615]
help
Chatterbox?
[Corion]: marto: A rough week comes to an end?
Corion has to finish off some test tickets and hopefully close them. Also I have to prepare some information for the tax people on the weekend :-/
[marto]: it feels like 2 weeks :)
[Discipulus]: sane dots for your weekend marto!
[choroba]: My week was hectic as well, and so will be the next several ones...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2017-01-20 10:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (174 votes). Check out past polls.