git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
reformatted
commit54803c44da1541a7894f4208c34fed4b566297b7 authorJP Smith <jp.smith@ilstu.edu> dateTue 24 Feb 2015, 15:36 (12 years ago) parentc4d0b8e
2 files changed+24−6
prelude/README.md+14−4 prelude/prelude.purs+10−2
prelude/README.md+14−4
@@ -125,8 +125,13 @@ instance categoryArr :: Category Prim.Function
125125Applies a function to its argument
126126
127127```purescript
128−length $ groupBy productCategory $ filter isInStock products =
129−length (groupby productcategory (filter isinstock (products)))
128+length $ groupBy productCategory $ filter isInStock products
129+```
130+
131+is equivalent to
132+
133+```purescript
134+length (groupBy productCategory (filter isInStock (products)))
130135```
131136
132137`($)` is different from [`(#)`](#-2) because it is right-infix instead of left, so
@@ -142,8 +147,13 @@ length (groupby productcategory (filter isinstock (products)))
142147Applies a function to its argument
143148
144149```purescript
145−products # groupby productcategory # filter isinstock # length =
146−length (groupby productcategory (filter isinstock (products)))
150+products # groupBy productCategory # filter isInStock # length
151+```
152+
153+is equivalent to
154+
155+```purescript
156+length (groupBy productCategory (filter isInStock (products)))
147157```
148158
149159`(#)` is different from [`($)`](#-1) because it is left-infix instead of right, so
prelude/prelude.purs+10−2
@@ -113,7 +113,11 @@ module Prelude
113113 -- |
114114 -- | ```purescript
115115 -- | length $ groupBy productCategory $ filter isInStock products
116− -- | is equivalent to
116+ -- | ```
117+ -- |
118+ -- | is equivalent to
119+ -- |
120+ -- | ```purescript
117121 -- | length (groupBy productCategory (filter isInStock (products)))
118122 -- | ```
119123 -- |
@@ -127,7 +131,11 @@ module Prelude
127131 -- |
128132 -- | ```purescript
129133 -- | products # groupBy productCategory # filter isInStock # length
130− -- | is equivalent to
134+ -- | ```
135+ -- |
136+ -- | is equivalent to
137+ -- |
138+ -- | ```purescript
131139 -- | length (groupBy productCategory (filter isInStock (products)))
132140 -- | ```
133141 -- |