package General

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
include sig ... end
type 'a t = 'a SortedMap.Make(Int).t
val empty : 'a t
val of_list_first : (Int.t * 'a) list -> 'a t
val of_list_last : (Int.t * 'a) list -> 'a t
val to_list : 'a t -> (Int.t * 'a) list
val is_empty : 'a t -> bool
val size : 'a t -> int
val add : 'a t -> k:Int.t -> v:'a -> bool * 'a t
val replace : 'a t -> k:Int.t -> v:'a -> 'a t
val remove : 'a t -> k:Int.t -> bool * 'a t
val try_get : 'a t -> k:Int.t -> 'a option
val get : 'a t -> k:Int.t -> 'a
OCaml

Innovation. Community. Security.