Answers for "Haskell guards inside guards"

1

Haskell guards inside guards

f x | predicate1 =
         case () of                                -- () can only evaluate to ()
           () | predicate2 -> a
              | otherwise  -> b
    | otherwise  = c
Posted by: Guest on October-15-2021

Browse Popular Code Answers by Language