package why3find

  1. Overview
  2. Docs

Module Fibers.QueueSource

Iterable Queues.

This data structure is very similar to Queue from the standard library, but offers efficient filtering.

It is designed for internal use, although it might be usefull for other purposes.

Sourcetype 'a t
Sourceval create : unit -> 'a t
Sourceval length : 'a t -> int
Sourceval pop : 'a t -> 'a
Sourceval push : 'a t -> 'a -> unit
Sourceval iter : ('a -> unit) -> 'a t -> unit
Sourceval flush : ('a -> unit) -> 'a t -> unit
Sourceval filter : ('a -> bool) -> 'a t -> unit
Sourceval elements : 'a t -> 'a list
Sourceval clear : 'a t -> unit