@@ -234,7 +234,7 @@ module Prelude
234 class Functor f where
234 class Functor f where
235 (<$>) :: forall a b. (a -> b) -> f a -> f b
235 (<$>) :: forall a b. (a -> b) -> f a -> f b
237− -- | `(<#>)` is `(<$>)` with its arguments flipped. For example:
237+ -- | `(<#>)` is `(<$>)` with its arguments reversed. For example:
239 -- | ```purescript
239 -- | ```purescript
240 -- | [1, 2, 3] <#> \n -> n * n
240 -- | [1, 2, 3] <#> \n -> n * n
@@ -868,13 +868,12 @@ module Data.Function where
869 -- | The `on` function is used to change the domain of a binary operator.
869 -- | The `on` function is used to change the domain of a binary operator.
871− -- | For example, given a function `height :: Person -> Number`, we can create a function which compares two people by height:
871+ -- | For example, we can create a function which compares two records based on the values of their `x` properties:
873 -- | ```purescript
873 -- | ```purescript
874− -- | taller :: Person -> Person -> Boolean
874+ -- | compareX :: forall r. { x :: Number | r } -> { x :: Number | r } -> Ordering
875− -- | taller = (>) `on` height
875+ -- | compareX = compare `on` _.x
878 on :: forall a b c. (b -> b -> c) -> (a -> b) -> a -> a -> c
877 on :: forall a b c. (b -> b -> c) -> (a -> b) -> a -> a -> c
879 on f g x y = g x `f` g y
878 on f g x y = g x `f` g y