Add case...of code

This commit is contained in:
Julian Ospald 2015-04-21 14:14:24 +02:00
부모 8228de1b30
커밋 b964f22c39
No known key found for this signature in database
GPG 키 ID: 220CD1C5BDEED020
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제

파일 보기

@ -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