📜  Haskell 守卫内部守卫 - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:04.139000             🧑  作者: Mango

代码示例1
f x | predicate1 =
         case () of                                -- () can only evaluate to ()
           () | predicate2 -> a
              | otherwise  -> b
    | otherwise  = c