📌  相关文章
📜  从字符串 haskell 代码示例中获取第一个字符

📅  最后修改于: 2022-03-11 14:53:35.054000             🧑  作者: Mango

代码示例1
Prelude> take 1 "hello"
"h"
Prelude> take 1 ""
""
Prelude> head "hello"
'h'
Prelude> head ""
*** Exception: Prelude.head: empty list