@@ -127,12 +127,28 @@ readFloat : String -> Maybe Float
127-- Function composition: f . g == (\x -> f (g x))
127-- Function composition: f . g == (\x -> f (g x))
128(.) : (b -> c) -> (a -> b) -> (a -> c)
128(.) : (b -> c) -> (a -> b) -> (a -> c)
130+-- Forward function application `x |> f == f x`. This function is useful
131+-- for avoiding parenthesis and writing code in a more natural way.
132+-- Consider the following code to create a pentagon:
134+-- scale 2 (move 100 100 (filled blue (ngon 5 30)))
136+-- This can also be written as:
138+-- ngon 5 30 |> filled blue
141+(|>) : a -> (a -> b) -> b
130−-- Function application `f $ x == f x`. This function is useful for avoiding
143+-- Function application `f <| x == f x`. This function is useful for avoiding
131-- parenthesis. Consider the following code to create a text element:
144-- parenthesis. Consider the following code to create a text element:
132-- text (monospace (toText "code"))
146-- text (monospace (toText "code"))
133-- This can also be written as:
148-- This can also be written as:
134−-- text . monospace $ toText "code"
150+-- text . monospace <| toText "code"
135−($) : (a -> b) -> a -> b
151+(<|) : (a -> b) -> a -> b
137-- Given a value, returns exactly the same value.
153-- Given a value, returns exactly the same value.
138id : a -> a
154id : a -> a