当我使用map时,如何获取haskell中元素的索引?
例如,我有这个列表l = "a+bc?|(de)*fg|h",我想知道我使用该map or scanl函数时元素的确切索引.
l = "a+bc?|(de)*fg|h"
map or scanl
indexing haskell list
我想l = ["","a","aa","aaa",...]在haskell中创建这个流 .
l = ["","a","aa","aaa",...]
有人能帮我吗?
haskell stream char
haskell ×2
char ×1
indexing ×1
list ×1
stream ×1