Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions src/Basics.elm
Original file line number Diff line number Diff line change
Expand Up @@ -846,8 +846,9 @@ So our example expands out to something like this:
\n -> not (isEven (sqrt n))
-}
composeL : (b -> c) -> (a -> b) -> (a -> c)
composeL g f x =
g (f x)
composeL g f =
\x ->
g (f x)


{-| Function composition, passing results along in the suggested direction. For
Expand All @@ -857,8 +858,9 @@ example, the following code checks if the square root of a number is odd:

-}
composeR : (a -> b) -> (b -> c) -> (a -> c)
composeR f g x =
g (f x)
composeR f g =
\x ->
g (f x)


{-| Saying `x |> f` is exactly the same as `f x`.
Expand Down