Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ridiculous_fish
on Oct 28, 2019
|
parent
|
context
|
favorite
| on:
Ask HN: What is the most beautiful piece of code y...
Unfortunately it's also incorrect! It discards NaNs, as they are neither < nor >=.
maweki
on Oct 28, 2019
|
next
[–]
In the example there was no talking about floating point numbers. The ordered type _has_ a total ordering as shown by the Ord typeclass restriction.
fulafel
on Oct 28, 2019
|
prev
[–]
I would argue that this is better than most alternatives.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: