Haskell 学习笔记一
0 条评论- 空字符串
""与空列表[]同义:1
2"" == []
-- True - 常用 Ghci 命令:
:m +Package载入包 Package:set prompt xx修改提示符:[un]set +t控制表达式返回结果时是否显示结果类型
x:xs只能匹配长度大于等于 1 的 List- 中缀构造函数必须以
:开头 Num不是Ord的子集,数字不一定得拘泥于排序- 三种乘幂的区别:Exponentiation in Haskell
- 将 Haskell 代码转为 point-free 风格:Pointfree.io
Code 504: The app is archived, please restore in console before use. [400 GET https://leancloud.cn/1.1/classes/Comment]
Powered By Valine
v1.5.2
v1.5.2