Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Haskell 如何将[其]转换为列表定义?他们是重视构造函数还是什么?他们是新人吗?有没有办法定义后缀语法,而不是中缀语法?
[
]
此语法在报告中定义,特别是在第 3.10 节中。[1..6]被定义为enumFromTo 1 6。你不能自己定义这样的语法。
[1..6]
enumFromTo 1 6