Last active
October 18, 2016 05:23
-
-
Save snahor/0bd984fe58c4049b53ba72c8cadddc7d to your computer and use it in GitHub Desktop.
F#'s pipe forward in Haskell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(|>) :: a -> (a -> b) -> b | |
x |> f = f x | |
[1..6] |> sum | |
inc = (+) 1 | |
[1..5] |> map inc |> sum |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment