@@ -25,6 +25,11 @@ flip :: forall a b c. (a -> b -> c) -> b -> a -> c
26Flips the order of the arguments to a function of two arguments.
26Flips the order of the arguments to a function of two arguments.
30+ flip const 1 2 = const 2 1 = 2
28#### `const`
33#### `const`
30``` purescript
35``` purescript
@@ -33,6 +38,11 @@ const :: forall a b. a -> b -> a
34Returns its first argument and ignores its second.
39Returns its first argument and ignores its second.
36#### `asTypeOf`
46#### `asTypeOf`
38``` purescript
48``` purescript
@@ -111,6 +121,16 @@ instance categoryArr :: Category Prim.Function
111($) :: forall a b. (a -> b) -> a -> b
121($) :: forall a b. (a -> b) -> a -> b
124+Applies a function to its argument
128+ const $ 1 2 = const 1 2 = 1
130+`($)` is different from [`(#)`](#-2) because it is right-infix instance instead of left.
131+Right-infix operators parse like (a $ (b $ (c $ (d ...)))) whereas left-infix operators parse
132+like (((a # b) # c) # d ...).
115#### `(#)`
135#### `(#)`
@@ -118,6 +138,16 @@ instance categoryArr :: Category Prim.Function
118(#) :: forall a b. a -> (a -> b) -> b
138(#) :: forall a b. a -> (a -> b) -> b
141+Applies a function to its argument
145+ 3 # ((+) 1) = 3 + 1 = 4
147+`(#)` is different from [`($)`](#-1) because it is left-infix instance instead of right.
148+Right-infix operators parse like (a $ (b $ (c $ (d ...)))) whereas left-infix operators parse
149+like (((a # b) # c) # d ...).
122#### `(:)`
152#### `(:)`
@@ -125,6 +155,12 @@ instance categoryArr :: Category Prim.Function
125(:) :: forall a. a -> [a] -> [a]
155(:) :: forall a. a -> [a] -> [a]
158+Attaches an element to the front of a list.
162+ 1 : [2, 3, 4] = [1, 2, 3, 4]
129#### `cons`
165#### `cons`