1
0

Thoughts on 1

This commit is contained in:
2023-10-18 23:26:03 -04:00
parent bc3247a792
commit 8144edd676

View File

@@ -13,6 +13,9 @@ main = print ans
ans :: Integer
ans = sum $ allNumbersUnder 1000
sum' :: Num a => [a] -> a
sum' = foldl (+) 0
isMultipleOf :: Integral a => a -> a -> Bool
isMultipleOf n x = x `rem` n == 0