Add case...of code
这个提交包含在:
父节点
8228de1b30
当前提交
b964f22c39
|
@ -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
|
||||
|
|
正在加载...
在新工单中引用