GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing reasonml.github.io — Reason · Reason lets you write simple, fast and quality type safe code while leveraging both the JavaScript & OCaml ecosystems. Module Queuemodule Queue: sig .. endFirst-in first-out queues. This module implements queues (FIFOs), with in-place modification.
Unsynchronized accesses Unsynchronized accesses to a queue may lead to an invalid queue state.
Thus, concurrent accesses to queues must be synchronized (for instance
with a type 'a t
The type of queues containing elements of type exception Empty
Raised when val create : unit -> 'a t Return a new queue, initially empty. val add : 'a -> 'a t -> unit
val push : 'a -> 'a t -> unit
val take : 'a t -> 'a
val take_opt : 'a t -> 'a option
val pop : 'a t -> 'a
val peek : 'a t -> 'a
val peek_opt : 'a t -> 'a option
val top : 'a t -> 'a
val clear : 'a t -> unit Discard all elements from a queue. val copy : 'a t -> 'a t Return a copy of the given queue. val is_empty : 'a t -> bool Return val length : 'a t -> int Return the number of elements in a queue. val iter : ('a -> unit) -> 'a t -> unit
val fold : ('b -> 'a -> 'b) -> 'b -> 'a t -> 'b
val transfer : 'a t -> 'a t -> unit
Iteratorsval to_seq : 'a t -> 'a Seq.t Iterate on the queue, in front-to-back order. The behavior is not specified if the queue is modified during the iteration.
val add_seq : 'a t -> 'a Seq.t -> unit Add the elements from a sequence to the end of the queue.
val of_seq : 'a Seq.t -> 'a t Create a queue from a sequence.
|
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |