Okasaki v1.0.0 Okasaki.Implementations.AmortizedQueue View Source
The standard implementation of a queue as a pair of lists.
This implementation is somewhat simpler than the guaranteed constant-time implementation in Queue
,
but any particular remove
might take O(n).