![]() |
|
Problems? Is your data what you think it is? | |
PerlMonks |
Re: Lookup closest hash keyby (anonymized user) (Curate) |
on Jan 25, 2011 at 16:49 UTC ( #884172=note: print w/replies, xml ) | Need Help?? |
Nah, the whole point of a hash is that it obviates coding the B-tree yourself
update: you could use the orcish manoeuvre to minimise sort iterations but something as simple as abs( x - y ) seems too cheap to be worth it. One world, one people
In Section
Seekers of Perl Wisdom
|
|