3 ms·
it's also nice with Haskell's Multiway If: x = if | a < b -> -1 | a > b -> 1 | otherwise -> 0 (and `cond` in lisps)
by uryga 7y ago
it's also nice with Haskell's Multiway If:
x = if | a < b -> -1
| a > b -> 1
| otherwise -> 0
(and `cond` in lisps)