Ah! That's different!
The specification is simple: given a list of numbers, return the two which are nearest to one-another
I didn't parse the "one-" part (in my lame defense, my current window width wrapped the line right after the "-") so I was thinking you wanted the two numbers from a list closest to some other number not on the list.
So just ignore me. (:
- tye (but my friends call me "Tye")In reply to (tye)Re4: (Golf) Nearest Neighbors
by tye
in thread (Golf) Nearest Neighbors
by MeowChow
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |