Skip to content

Instantly share code, notes, and snippets.

@andbroby
Last active August 29, 2015 14:08
Show Gist options
  • Save andbroby/a44ad0d1febc1d6d5e49 to your computer and use it in GitHub Desktop.
Save andbroby/a44ad0d1febc1d6d5e49 to your computer and use it in GitHub Desktop.
listofMultiples factor1 factor2 l =
let p x =
| x `mod` factor1 == 0 = True
| x `mod` factor2 == 0 = True
| otherwise = False
in filter p [1..l]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment