Skip to content
This repository
Newer
Older
100644 40 lines (34 sloc) 1.48 kb
fccc6851 »
2011-06-21 Initial open-source release
1 (*
2 Copyright © 2011 MLstate
3
6fac5ced »
2012-07-09 [cleanup] ocamllib: typo on Opa
4 This file is part of Opa.
fccc6851 »
2011-06-21 Initial open-source release
5
6fac5ced »
2012-07-09 [cleanup] ocamllib: typo on Opa
6 Opa is free software: you can redistribute it and/or modify it under the
fccc6851 »
2011-06-21 Initial open-source release
7 terms of the GNU Affero General Public License, version 3, as published by
8 the Free Software Foundation.
9
6fac5ced »
2012-07-09 [cleanup] ocamllib: typo on Opa
10 Opa is distributed in the hope that it will be useful, but WITHOUT ANY
fccc6851 »
2011-06-21 Initial open-source release
11 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for
13 more details.
14
15 You should have received a copy of the GNU Affero General Public License
6fac5ced »
2012-07-09 [cleanup] ocamllib: typo on Opa
16 along with Opa. If not, see <http://www.gnu.org/licenses/>.
fccc6851 »
2011-06-21 Initial open-source release
17 *)
18 (**
19 ListHashtbl.
20 Module to store severals values for the same key in an imperative structure.
21 *)
22
23 type ('a, 'b) t
24 val create : int -> ('a, 'b) t
25 val clear : ('a, 'b) t -> unit
26 val copy : ('a, 'b) t -> ('a, 'b) t
27 val add : ('a, 'b) t -> 'a -> 'b -> unit
28 val remove : ('a, 'b) t -> 'a -> unit
29 val find : ('a, 'b) t -> 'a -> ('b, unit) Hashtbl.t
30 val find_list : ('a, 'b) t -> 'a -> 'b list
31 val to_list : ('a, 'b) t -> ('a * 'b list) list
32 val mem : ('a, 'b) t -> 'a -> bool
33 val mem_cp : ('a, 'b) t -> 'a * 'b -> bool
34 val iter : ('a -> ('b, unit) Hashtbl.t -> unit) -> ('a, 'b) t -> unit
35 val fold :
36 ('a -> ('b, unit) Hashtbl.t -> 'c -> 'c) -> ('a, 'b) t -> 'c -> 'c
37 val iter_list : ('a -> 'b list -> unit) -> ('a, 'b) t -> unit
38 val fold_list : ('a -> 'b list -> 'c -> 'c) -> ('a, 'b) t -> 'c -> 'c
39 val length : ('a, 'b) t -> int
Something went wrong with that request. Please try again.