git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Merge pull request #949 from hdgarrood/hash-docs

Update markdown docs for (#)

commitedcefcb18f3f709a64728b744b9fd9e86d3c4379 authorPhil Freeman <paf31@cantab.net> dateFri 6 Mar 2015, 18:51 (12 years ago) parent243d6a99f407a9
2 files changed+4−4
prelude/README.md+2−2 prelude/prelude.purs+2−2
prelude/README.md+2−2
@@ -132,7 +132,7 @@ length (groupBy productCategory (filter isInStock (products)))
132132```
133133
134134`($)` is different from [`(#)`](#-2) because it is right-infix instead of left, so
135−`a $ b $ c $ d x` = `a (b (c (d x)))`
135+`a $ b $ c $ d x` = `a $ (b $ (c $ (d $ x)))` = `a (b (c (d x)))`
136136
137137
138138#### `(#)`
@@ -154,7 +154,7 @@ length (groupBy productCategory (filter isInStock (products)))
154154```
155155
156156`(#)` is different from [`($)`](#-1) because it is left-infix instead of right, so
157−`x # a # b # c # d` = `(((x a) b) c) d`
157+`x # a # b # c # d` = `(((x # a) # b) # c) # d` = `d (c (b (a x)))`
158158
159159
160160#### `(:)`
prelude/prelude.purs+2−2
@@ -121,7 +121,7 @@ module Prelude
121121 -- | ```
122122 -- |
123123 -- | `($)` is different from [`(#)`](#-2) because it is right-infix instead of left, so
124− -- | `a $ b $ c $ d x` = `a (b (c (d x)))`
124+ -- | `a $ b $ c $ d x` = `a $ (b $ (c $ (d $ x)))` = `a (b (c (d x)))`
125125 -- |
126126 ($) :: forall a b. (a -> b) -> a -> b
127127 ($) f x = f x
@@ -139,7 +139,7 @@ module Prelude
139139 -- | ```
140140 -- |
141141 -- | `(#)` is different from [`($)`](#-1) because it is left-infix instead of right, so
142− -- | `x # a # b # c # d` = `(((x # a) # b) # c) # d`
142+ -- | `x # a # b # c # d` = `(((x # a) # b) # c) # d` = `d (c (b (a x)))`
143143 -- |
144144 (#) :: forall a b. a -> (a -> b) -> b
145145 (#) x f = f x