Created
June 27, 2016 03:11
-
-
Save bertrand-caron/15723fbcb1632836877ba38fd8431144 to your computer and use it in GitHub Desktop.
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
add :: Int -> Int -> Int | |
add x y = x + y | |
fs :: [(Int -> Int)] | |
fs = map (\n -> add n) [1..3] | |
main = do | |
print $ map (\f -> f 0) fs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment