mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2026-01-21 16:56:39 -05:00
19 lines
264 B
OCaml
19 lines
264 B
OCaml
(** Imperative deque *)
|
|
|
|
type 'a t
|
|
|
|
exception Empty
|
|
|
|
val create : unit -> 'a t
|
|
|
|
val is_empty : 'a t -> bool
|
|
|
|
val length : 'a t -> int
|
|
|
|
val push_front : 'a t -> 'a -> unit
|
|
|
|
val push_back : 'a t -> 'a -> unit
|
|
|
|
val take_back : 'a t -> 'a
|
|
|
|
val take_front : 'a t -> 'a
|