Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Closest-value-in-list Golf!

by jeroenes (Priest)
on May 29, 2001 at 19:12 UTC ( #83972=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub i{my$a=pdl$_[0];minimum_ind(abs($a-$_[1]))}
    
  2. or download this
    sub i{my$a=pdl$_[0];minimum_ind abs$a-pop}
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://83972]
help
Chatterbox?
[marto]: hey Corion, how's tricks?
[Corion]: marto: Currently all well - work is even OK currently ;) I should start translating my WWW::Mechanize:: Chrome talk to English and recheck that my demos all work, but I have two weeks for that still :)
[Corion]: So, most things are looking good :-D
[Corion]: I should write some more code for my Jekyll clone, but I don't feel like it, so maybe I should just let that linger instead ;)
[karlgoethebier]: "...mein enemy..."

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2017-07-26 10:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (390 votes). Check out past polls.