j
k
j a
j l
Gilberto Garcia schrieb:
isMultiple :: Int -> [Int] -> Bool isMultiple a [] = False isMultiple a (x:xs) = if (mod a x == 0) then True else isMultiple a xs
I think this one can be written in terms of 'List.any'.
Back to the thread
Back to the list