Created
January 4, 2013 03:49
-
-
Save anonymous/4449744 to your computer and use it in GitHub Desktop.
Reddit Daily [2013/01/03]
Naive Haskell Solution to http://www.reddit.com/r/dailyprogrammer/comments/15wm48/132013_challenge_115_intermediate_sumpairings/
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
sumPair options num :: [Int] -> Int -> [(Int,Int)] | |
sumPair options num = [(x,y) | x <- options, y <- options, x + y == num] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment