3 ms·
Compare doubleCompose binary_func transformation first_arg second_arg = binary_func (transformation first_arg) (transformation second_arg) vs doubleCompose (b
by Tyr42 14y ago
Compare
doubleCompose binary_func transformation first_arg second_arg = binary_func (transformation first_arg) (transformation second_arg)
vs
doubleCompose (b -> b -> c) -> (a -> b) -> a -> a -> c
doubleCompose (+) f x y = (f x) + (f y)
(also known as the `on` function).
There's hardly any good names for x and y, since they can be anything at all.