Created
November 24, 2015 01:02
-
-
Save rogeriochaves/8c51b20bb2e6dd553089 to your computer and use it in GitHub Desktop.
pipe operator in haskell, very simple
This file contains 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
x |> f = f x | |
something x = repeat x | |
|> filter (> 3) | |
|> map (+ 1) | |
|> take 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment