Add case...of code

这个提交包含在:
Julian Ospald 2015-04-21 14:14:24 +02:00
父节点 8228de1b30
当前提交 b964f22c39
找不到此签名对应的密钥
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