Haskell的标准队列包?(Standard queue package for Haskell? [closed])

编程入门 行业动态 更新时间:2024-10-07 18:23:18
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.

更多推荐

本文发布于:2023-08-07 12:16:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1464053.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:队列   标准   Haskell   Standard   closed

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!