I want to write a function point-free in haskell, to keep things simple lets say I want to make this function:
maxmin :: Ord a => a -> a -> a -> a
maxmin a b c = max a (min b c)
I can improve this to
maxmin a b = (max a) . (min b)
but is there any way to get rid of a and b?
maxmin
toconstrainTo
would be a much more expressive change, for example. – Middling