Initial snarf.
[shack.git] / libmojave / stdlib / lm_hashtbl_util.mli
blob59f879c0bf5bc96562cc9961f2f018adb64bd6c5
1 (*
2 * Extra functions on hashtables.
4 * ----------------------------------------------------------------
6 * Copyright (C) 1999-2005 Mojave Group, Caltech
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation,
11 * version 2.1 of the License.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 * Additional permission is given to link this library with the
23 * OpenSSL project's "OpenSSL" library, and with the OCaml runtime,
24 * and you may distribute the linked executables. See the file
25 * LICENSE.libmojave for more details.
27 * Author: Jason Hickey
28 * jyh@cs.caltech.edu
32 * Convert to an association list.
33 * Order is random, but the is only one entry
34 * for each key.
36 val to_list : ('a, 'b) Hashtbl.t -> ('a * 'b) list
39 * Add a list to a hashtbl.
41 val add_list : ('a, 'b) Hashtbl.t -> ('a * 'b) list -> unit
44 * Add all the entries from the second table.
45 * The original entries are removed.
47 val add_hashtbl : ('a, 'b) Hashtbl.t -> ('a, 'b) Hashtbl.t -> unit
50 * -*-
51 * Local Variables:
52 * Caml-master: "compile"
53 * End:
54 * -*-