Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re (tilly) 2: Mixing up da Arrays (Golf) (Russ=53)

by tilly (Archbishop)
on Apr 19, 2001 at 03:52 UTC ( #73698=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub Mix {
    map{my$i=$_;map$i<@$_?$$_[$i]:(),@_}0..map@$_,@_
    }
    
  2. or download this
    sub Mix {
    map{splice@$_,0,1}map@_,map@$_,@_
    }
    
  3. or download this
    sub Mix {
    map{splice@$_,0,1}map@_,map@$_,@_=map[@$_],@_
    }
    
  4. or download this
    sub Mix {
    map{map{splice@$_,0,1}(@_)x@$_}@_
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://73698]
help
Chatterbox?
[LanX]: ... obviously too long
[Eily]: I yes, the natural onion in the flamming eye, I know what you mean
[LanX]: Eily your turn to provide a pic :)
[Eily]: occupe toi de tes oignons
LanX could do a zoom out in animated gif ...
[LanX]: heh
[marto]: get with the times, webm :P
[LanX]: didn't know this expression xD
[Eily]: :)
[Eily]: if you want to learn French expressions you can give a look to @bouletcorp on twitter

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (10)
As of 2017-12-14 16:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (398 votes). Check out past polls.

    Notices?