Is it possible to nest guards in Haskell?

前端 未结 8 931
野的像风
野的像风 2020-12-10 16:52

Haskell newbie here, trying to write code to parse math expressions. Code:

isDigit :: Char -> Bool
isDigit c = c >= \'0\' && c <= \'9\'

pars         


        
8条回答
  •  误落风尘
    2020-12-10 17:05

    No, you can't. We all want it, but nobody can come up with a sensible syntax.

提交回复
热议问题