Haskell的标准队列包?(Standard queue package for Haskell? [closed])
是否有Haskell的标准队列实现? 我看到几个相当成熟的优先级队列实现,但没有简单的队列。 Data.Sequence似乎没问题,但我认为我们可以通过更受限制的数据类型获得更好的性能。 此外,限制操作(即,不是双端队列)可以防止错误从错误的一端出列。
编辑:
为了澄清,我希望有一个成熟的Haskell实现,最好是在Haskell平台或Hackage中。
Is there a standard queue implementation for Haskell? I see several reasonably mature priority queue implementations, but no simple queues. Data.Sequence seems OK, but I assume we could get better performance with a more restricted datatype. Further, restricting the operations (ie, not a deque) can prevent bugs from dequeuing from the wrong end.
Edit:
To clarify, I was hoping for a mature Haskell implementation, preferably in Haskell Platform or Hackage.
更多推荐
发布评论