Skip to content

Instantly share code, notes, and snippets.

@snahor
Last active October 18, 2016 05:23
Show Gist options
  • Save snahor/0bd984fe58c4049b53ba72c8cadddc7d to your computer and use it in GitHub Desktop.
Save snahor/0bd984fe58c4049b53ba72c8cadddc7d to your computer and use it in GitHub Desktop.
F#'s pipe forward in Haskell
(|>) :: 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