yet more functions. baby.
This commit is contained in:
parent
5d3ed2ad87
commit
da11635b28
@ -7,3 +7,9 @@ doubleSmallNumber x = if x > 100
|
||||
else x*2
|
||||
|
||||
doubleSmallNumber' x = (if x > 100 then x else x*2) + 1
|
||||
|
||||
boomBangs xs = [if x < 10 then "BOOM!" else "BANG!" | x <- xs, odd x]
|
||||
|
||||
length' xs = sum [1 | _ <- xs]
|
||||
|
||||
removeNonUppercase st = [c | c <- st, c `elem` ['A'..'Z']]
|
||||
|
Loading…
Reference in New Issue
Block a user