Created
December 1, 2019 02:09
-
-
Save chapmanjacobd/eea27ab463a0d843ebbe182a3fb5794a 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
largestDivisible : Maybe Int | |
largestDivisible divideBy maxInt = | |
let | |
p x = x % divideBy == 0 | |
in | |
List.head (List.filter p List.reverse (List.range 0 maxInt)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment