Module type Hashtbl.S


module type S = sig .. end
The output signature of the functor Hashtbl.Make.

The output signature of the functor Hashtbl.Make.


type key 
type 'a t 
val create : int -> 'a t
val length : 'a t -> int
val is_empty : 'a t -> bool
val clear : 'a t -> unit
val copy : 'a t -> 'a t
val add : 'a t ->
key -> 'a -> unit
val remove : 'a t -> key -> unit
val remove_all : 'a t -> key -> unit
val find : 'a t -> key -> 'a
val find_all : 'a t ->
key -> 'a list
val find_default : 'a t ->
key -> 'a -> 'a
val find_option : 'a t ->
key -> 'a option
val replace : 'a t ->
key -> 'a -> unit
val mem : 'a t -> key -> bool
val iter : (key -> 'a -> unit) ->
'a t -> unit
val fold : (key -> 'a -> 'b -> 'b) ->
'a t -> 'b -> 'b
val map : (key -> 'a -> 'b) ->
'a t -> 'b t
val filter : ('a -> bool) ->
'a t -> 'a t
val filteri : (key -> 'a -> bool) ->
'a t -> 'a t
val filter_map : (key -> 'a -> 'b option) ->
'a t -> 'b t
val keys : 'a t ->
key Enum.t
val values : 'a t -> 'a Enum.t
val enum : 'a t ->
(key * 'a) Enum.t
val of_enum : (key * 'a) Enum.t ->
'a t
val sexp_of_t : (key -> Sexplib.Sexp.t) ->
('a -> Sexplib.Sexp.t) -> 'a t -> Sexplib.Sexp.t
val t_of_sexp : (Sexplib.Sexp.t -> key) ->
(Sexplib.Sexp.t -> 'a) -> Sexplib.Sexp.t -> 'a t
val print : ?first:string ->
?last:string ->
?sep:string ->
('a Extlib.InnerIO.output -> key -> unit) ->
('a Extlib.InnerIO.output -> 'b -> unit) ->
'a Extlib.InnerIO.output -> 'b t -> unit

Override modules


The following modules replace functions defined in Hashtbl with functions behaving slightly differently but having the same name. This is by design: the functions meant to override the corresponding functions of Hashtbl.

To take advantage of these overrides, you probably want to or . For instance, to open a version of Hashtbl with exceptionless error management, you may write open Hashtbl, Exceptionless. To locally replace module Hashtbl with a module of the same name but with exceptionless error management, you may write

module Hashtbl = Hashtbl include Exceptionless
.
module Hashtbl.S.Exceptionless: sig .. end
Operations on Hashtbl without exceptions.
module Hashtbl.S.Labels: sig .. end
Operations on Hashtbl with labels.