package rhythm

  1. Overview
  2. Docs
type 'a t = {
  1. front : 'a list;
  2. frontLen : int;
  3. rear : 'a list;
  4. rearLen : int;
}
val c : int
val empty : 'a t
val make : unit -> 'a t
val isEmpty : 'a t -> bool
val length : 'a t -> int
val maintain : 'a t -> 'a t
val addFirst : 'a -> 'a t -> 'a t
val getFirstExn : 'a t -> 'a
val removeFirstExn : 'a t -> 'a t
val addLast : 'a -> 'a t -> 'a t
val getLastExn : 'a t -> 'a
val removeLastExn : 'a t -> 'a t
val reverse : 'a t -> 'a t
val fromList : 'a list -> 'a t
val toList : 'el t -> 'el list
OCaml

Innovation. Community. Security.