Module BatQueue


module BatQueue: sig .. end
First-in first-out queues.

This module implements queues (FIFOs), with in-place modification.

This module extends Stdlib's Queue module, go there for documentation on the rest of the functions and types.
Author(s): Xavier Leroy (Base module), David Teller


include BatEnum.Enumerable
val enum : 'a Queue.t -> 'a BatEnum.t
enum q returns a destructive enumeration of the elements of queue q, from the least recently entered to the most recently entered. Reading the enumeration will progressively empty q.
val of_enum : 'a BatEnum.t -> 'a Queue.t
of_enum e returns a new queue containing all the elements of e. This is equivalent to calling push with the first element of the enumeration, then with the second, etc.

Boilerplate code


Printing

val print : ?first:string ->
?last:string ->
?sep:string ->
('a BatInnerIO.output -> 'b -> unit) ->
'a BatInnerIO.output -> 'b Queue.t -> unit