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 有 Data.Sequence?(懒惰的)列表不是可能的最通用的前向迭代器(由于是自由的幺半群)吗?
详细信息在第一段关于hackage中提到。正如@AndrewC 所指出的,它们有效地提供了许多操作,例如连接两个序列、查看序列的右端或在序列的末尾添加元素。