-
-
Save andbroby/a44ad0d1febc1d6d5e49 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
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