Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Closest-value-in-list Golf!

by ChOas (Curate)
on May 29, 2001 at 18:46 UTC ( #83955=note: print w/ replies, xml ) Need Help??


in reply to Closest-value-in-list Golf!

55 ... and now I give up....

sub g{%_=map{abs$_[-1]-$_,$_}@_;$_{(sort{$a<=>$b}keys%_)[1]}}

GreetZ!,
    ChOas

print "profeth still\n" if /bird|devil/;


Comment on Re: Closest-value-in-list Golf!
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://83955]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2015-07-07 02:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (86 votes), past polls