1995-08-09 08:06:35 -07:00
|
|
|
(***********************************************************************)
|
|
|
|
(* *)
|
1996-04-30 07:53:58 -07:00
|
|
|
(* Objective Caml *)
|
1995-08-09 08:06:35 -07:00
|
|
|
(* *)
|
|
|
|
(* Xavier Leroy, projet Cristal, INRIA Rocquencourt *)
|
|
|
|
(* *)
|
1996-04-30 07:53:58 -07:00
|
|
|
(* Copyright 1996 Institut National de Recherche en Informatique et *)
|
1998-11-05 00:08:28 -08:00
|
|
|
(* en Automatique. Distributed only by permission. *)
|
1995-08-09 08:06:35 -07:00
|
|
|
(* *)
|
|
|
|
(***********************************************************************)
|
|
|
|
|
|
|
|
(* $Id$ *)
|
|
|
|
|
1995-05-04 03:15:53 -07:00
|
|
|
(* Association tables from any ordered type to any type.
|
|
|
|
We use the generic ordering to compare keys. *)
|
|
|
|
|
|
|
|
type ('a, 'b) t
|
|
|
|
|
|
|
|
val empty: ('a, 'b) t
|
|
|
|
val add: 'a -> 'b -> ('a, 'b) t -> ('a, 'b) t
|
|
|
|
val find: 'a -> ('a, 'b) t -> 'b
|
1998-11-05 00:08:28 -08:00
|
|
|
val mem: 'a -> ('a, 'b) t -> bool
|
1996-05-16 07:15:35 -07:00
|
|
|
val remove: 'a -> ('a, 'b) t -> ('a, 'b) t
|
1995-05-04 03:15:53 -07:00
|
|
|
val iter: ('a -> 'b -> 'c) -> ('a, 'b) t -> unit
|
|
|
|
|
|
|
|
val print: ('a -> unit) -> ('b -> unit) -> ('a, 'b) t -> unit
|