5
Name:
Anonymous
2007-07-14 9:54
ID:UFLFWkXQ
(<=>) :: (Ord a) => a -> a -> Bool
x <=> y | x > y = True
| x == y = True
| x < y = True
Also forced indentation of code.
7
Name:
Anonymous
2007-07-14 11:11
ID:UFLFWkXQ
>>6
No, (<=>) is
less than ,
equal to or
more than . It reduces to True only if one of these conditions is met, otherwise to False. It obviously isn't irrefutable.
8
Name:
Anonymous
2007-07-14 11:45
ID:CDlk9FEe
>>6
Not if you compare a normal floating point number with NaN
9
Name:
Anonymous
2007-07-14 11:54
ID:Heaven
go do something useful fags
11
Name:
Anonymous
2007-07-14 12:07
ID:UFLFWkXQ
>>8
Stfu n00b.
Prelude> 32.3 <=> ((30932022.0^23209320323340920432)/(30932022.0^23209320323340920432))
True
13
Name:
Anonymous
2007-07-14 12:54
ID:CDlk9FEe
(0/0) <=> (0/0)
[spoiler]False[/spoiler]
14
Name:
Anonymous
2007-07-14 12:54
ID:CDlk9FEe
>>13
I AM NOT EXPERT BBCODER :-(
15
Name:
Anonymous
2007-07-14 13:18
ID:wla4wQr3
You guys are not Enlightened enough:
a <=> b = flip any [(<), (==), (>)] (\ f -> f a b)
Unfortunately I haven't been able to make it pointless yet.