Skip to content

Instantly share code, notes, and snippets.

@motokiee
Created October 7, 2015 04:57
Show Gist options
  • Save motokiee/af76fac6522c944fb549 to your computer and use it in GitHub Desktop.
Save motokiee/af76fac6522c944fb549 to your computer and use it in GitHub Desktop.
すごいくだらない関数だけどちゃんと自分で考えて再帰関数書けた記念 #CodePiece
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