你好,我试图用鳞片状的条件,但我得到解析错误:哈斯克尔多个否则
parse error on input ‘|’
isAssignMent::String->Bool
isAssignMent a
| a == "" = False
| otherwise
| (head trimmed) == '=' = True
| otherwise = False
where
trimmed = trimRightSide a [' ', '\n']
我在做什么错?谢谢
'otherwise'只是为TRUE; – Squidly 2014-11-05 14:47:01