Jay*_*Jay 6 haskell
我定义了这个功能 NewLine
NewLine
NewLine :: String -> String NewLine (x:xs)=if (x=='\n') then xs else NewLine xs
它给了我一个无效的类型签名错误,但我不明白为什么.
mip*_*adi 26
函数不能以Haskell中的大写字母开头.大写字母表示数据构造函数.
归档时间:
15 年,8 月 前
查看次数:
6348 次
最近记录:
9 年,6 月 前