CurryInfo: base-3.4.0 / Data.Function.on

definition: Info
 
on :: (b -> b -> c) -> (a -> b) -> a -> a -> c
on op f x y = f x `op` f y
demand: Info
 argument 1
deterministic: Info
 deterministic operation
documentation: Info
 
`on f g x y` applies the binary operation `f` to the results of
applying operation `g` to two arguments `x` and `y`.
Thus, it transforms two inputs and combines the outputs.

    (*) `on` f = \x y -> f x * f y

A typical usage of this operation is:

    sortBy ((<=) `on` fst)
failfree: Info
 (_, _, _, _)
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_,_,_,_) |-> _}
name: Info
 on
precedence: Info
 no precedence defined
result-values: Info
 _
signature: Info
 (a -> a -> b) -> (c -> a) -> c -> c -> b
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 yes
totally-defined: Info
 reducible on all ground data terms