Skip to content

Instantly share code, notes, and snippets.

@fbiville
Created January 2, 2015 16:52
Show Gist options
  • Save fbiville/2cf66e4bcd14812700c0 to your computer and use it in GitHub Desktop.
Save fbiville/2cf66e4bcd14812700c0 to your computer and use it in GitHub Desktop.
foldl (+) 0 (filter (\n -> n `mod` 3 == 0 || n `mod` 5 == 0) [1..999])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment