Created
October 7, 2015 04:57
-
-
Save motokiee/af76fac6522c944fb549 to your computer and use it in GitHub Desktop.
すごいくだらない関数だけどちゃんと自分で考えて再帰関数書けた記念 #CodePiece
This file contains hidden or 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 :: [Int] -> Bool | |
largestDivisible [] = False | |
largestDivisible (x:xs) | |
| (x `mod` 3829) == 0 = True | |
| otherwise = largestDivisible xs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment