inttbl.mli 320 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
module type S = sig
  type key
  type 'a t

  val create: unit -> 'a t
  val fold: 'a t -> (key -> 'a -> 'b -> 'b) -> 'b -> 'b
  val clear: 'a t -> unit
  val add: 'a t -> key -> 'a -> unit
  val find: 'a t -> key -> 'a
10
  val mem: 'a t -> key -> bool
11
  val remove: 'a t -> key -> unit
12 13 14
end

include S with type key = int