more and more functions
This commit is contained in:
parent
da11635b28
commit
18376aa6e4
@ -12,4 +12,11 @@ boomBangs xs = [if x < 10 then "BOOM!" else "BANG!" | x <- xs, odd x]
|
||||
|
||||
length' xs = sum [1 | _ <- xs]
|
||||
|
||||
removeNonUppercase :: [Char] -> [Char]
|
||||
removeNonUppercase st = [c | c <- st, c `elem` ['A'..'Z']]
|
||||
|
||||
circumference :: Float -> Float
|
||||
circumference r = 2 * pi * r
|
||||
|
||||
circumference' :: Double -> Double
|
||||
circumference' r = 2 * pi * r
|
||||
|
Loading…
Reference in New Issue
Block a user