on lift x y ~f lifts a binary function f using the lifter lift. It does the same thing as the `on` function from Haskell, but with arguments flipped to make sense without infixing.
Effectively, it's Base.Comparable.lift, but with a slightly different signature.
Example:
let ints = on fst ~f:Int.equal (42, "banana") (42, "apple") in
let strs = on snd ~f:String.equal (42, "banana") (42, "apple") in
(ints, strs)
(* --> true, false *)
F# style function composition operator
This is in a separate module to reduce the ambiguity caused by its use.