git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Fix typo
a4c203aPhil Freeman
prelude/README.md+2−1
@@ -883,7 +883,8 @@ The `on` function is used to change the domain of a binary operator.
883For example, given a function `height :: Person -> Number`, we can create a function which compares two people by height:
883For example, given a function `height :: Person -> Number`, we can create a function which compares two people by height:
884
884
885```purescript
885```purescript
886+taller :: Person -> Person -> Boolean
886−taller :: (>) `on` height
887+taller = (>) `on` height
887```
888```
888
889
889
890
prelude/prelude.purs+2−1
@@ -871,7 +871,8 @@ module Data.Function where
871 -- | For example, given a function `height :: Person -> Number`, we can create a function which compares two people by height:
871 -- | For example, given a function `height :: Person -> Number`, we can create a function which compares two people by height:
872 -- |
872 -- |
873 -- | ```purescript
873 -- | ```purescript
874+ -- | taller :: Person -> Person -> Boolean
874− -- | taller :: (>) `on` height
875+ -- | taller = (>) `on` height
875 -- | ```
876 -- | ```
876 -- |
877 -- |
877 on :: forall a b c. (b -> b -> c) -> (a -> b) -> a -> a -> c
878 on :: forall a b c. (b -> b -> c) -> (a -> b) -> a -> a -> c