
30 May
2016
30 May
'16
4:16 a.m.
On 30 May 2016 at 18:11, Jon Fairbairn
Daniel Díaz Casanueva
writes: minOn :: Ord b => (a -> b) -> a -> a -> a minOn f x y = case comparing f x y of LT -> x _ -> y
Bad name; it’s too close to on min, which has the same type.
Not quite:
:t on min on min :: Ord c => (a -> c) -> a -> a -> c
(note the return type is different) -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com http://IvanMiljenovic.wordpress.com