Add case...of code
This commit is contained in:
parent
9dc7adaaf3
commit
5b4be12e0b
@ -51,3 +51,9 @@ addTwo (x:xs) = (x + 2) : addTwo xs
|
||||
|
||||
f'' :: String -> Bool
|
||||
f'' xs = even . length . (\x -> x ++ "Hello world") $ xs
|
||||
|
||||
g :: Int -> Bool
|
||||
g x = case x - 2 of
|
||||
2 -> True
|
||||
5 -> True
|
||||
x -> False
|
||||
|
Loading…
Reference in New Issue
Block a user