on master help sign in
Add back (.) to make transition smoother
90afd41Evan Czaplicki
libraries/Basics.elm+5−1
@@ -46,7 +46,7 @@ which happen to be radians.
46@docs fst, snd
46@docs fst, snd
47
47
48# Higher-Order Helpers
48# Higher-Order Helpers
49−@docs identity, always, (<|), (|>), (<<), (>>), flip, curry, uncurry
49+@docs identity, always, (<|), (|>), (<<), (>>), (.), flip, curry, uncurry
50
50
51-}
51-}
52
52
@@ -340,6 +340,10 @@ reads nicely in expressions like: `filter (not << isRegistered) students`
340(>>) : (a -> b) -> (b -> c) -> (a -> c)
340(>>) : (a -> b) -> (b -> c) -> (a -> c)
341(>>) f g x = g (f x)
341(>>) f g x = g (f x)
342
342
343+{-| DEPRECATED: use (<<) instead. -}
344+(.) : (b -> c) -> (a -> b) -> (a -> c)
345+(.) g f x = g (f x)
346+
343{-| Forward function application `x |> f == f x`. This function is useful
347{-| Forward function application `x |> f == f x`. This function is useful
344for avoiding parenthesis and writing code in a more natural way.
348for avoiding parenthesis and writing code in a more natural way.
345Consider the following code to create a pentagon:
349Consider the following code to create a pentagon: