Skip to content

Instantly share code, notes, and snippets.

@MaikKlein
Created March 18, 2014 12:25
Show Gist options
  • Save MaikKlein/9619079 to your computer and use it in GitHub Desktop.
Save MaikKlein/9619079 to your computer and use it in GitHub Desktop.
main = undefined
getAllSums x = [(l,r)| l <- partial_nat, r <- partial_nat, l + r == x ]
where partial_nat = [1..x]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment