package batteries

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type 'a t = 'a BatIMap.t
type key = int
val empty : eq:('a -> 'a -> bool) -> 'a t
val singleton : eq:('a -> 'a -> bool) -> int -> 'a -> 'a t
val is_empty : 'a t -> bool
val add : int -> 'a -> 'a t -> 'a t
val add_range : int -> int -> 'a -> 'a t -> 'a t
val find : int -> 'a t -> 'a
val modify : int -> ('a -> 'a) -> 'a t -> 'a t
val modify_def : 'a -> int -> ('a -> 'a) -> 'a t -> 'a t
val modify_opt : int -> ('a option -> 'a option) -> 'a t -> 'a t
val remove : int -> 'a t -> 'a t
val remove_range : int -> int -> 'a t -> 'a t
val from : int -> 'a t -> 'a t
val after : int -> 'a t -> 'a t
val until : int -> 'a t -> 'a t
val before : int -> 'a t -> 'a t
val mem : int -> 'a t -> bool
val iter : (int -> 'a -> unit) -> 'a t -> unit
val iter_range : (int -> int -> 'a -> unit) -> 'a t -> unit
val map : ?eq:('b -> 'b -> bool) -> ('a -> 'b) -> 'a t -> 'b t
val mapi : ?eq:('b -> 'b -> bool) -> (int -> 'a -> 'b) -> 'a t -> 'b t
val map_range : ?eq:('b -> 'b -> bool) -> (int -> int -> 'a -> 'b) -> 'a t -> 'b t
val fold : (int -> 'b -> 'a -> 'a) -> 'b t -> 'a -> 'a
val fold_range : (int -> int -> 'b -> 'a -> 'a) -> 'b t -> 'a -> 'a
val set_to_map : ?eq:('a -> 'a -> bool) -> BatISet.t -> 'a -> 'a t
val domain : 'a t -> BatISet.t
val map_to_set : ('a -> bool) -> 'a t -> BatISet.t
val enum : 'a t -> (int * int * 'a) BatEnum.t
val of_enum : eq:('a -> 'a -> bool) -> (int * int * 'a) BatEnum.t -> 'a t
val fold2_range : (int -> int -> 'a option -> 'b option -> 'c -> 'c) -> 'a t -> 'b t -> 'c -> 'c
val union : ('a -> 'a -> 'a) -> 'a t -> 'a t -> 'a t
val merge : ?eq:('c -> 'c -> bool) -> (int -> int -> 'a option -> 'b option -> 'c option) -> 'a t -> 'b t -> 'c t
val forall2_range : (int -> int -> 'a option -> 'b option -> bool) -> 'a t -> 'b t -> bool
val get_dec_eq : 'a t -> 'a -> 'a -> bool
module Infix : sig ... end
OCaml

Innovation. Community. Security.