1
(************************************************************************)
2
(* v * The Coq Proof Assistant / The Coq Development Team *)
3
(* <O___,, * CNRS-Ecole Polytechnique-INRIA Futurs-Universite Paris Sud *)
4
(* \VV/ **************************************************************)
5
(* // * This file is distributed under the terms of the *)
6
(* * GNU Lesser General Public License Version 2.1 *)
7
(************************************************************************)
9
(* $Id: gmapl.ml 7780 2006-01-03 20:33:53Z herbelin $ *)
13
type ('a,'b) t = ('a,'b list) Gmap.t
15
let empty = Gmap.empty
23
let l = Gmap.find x m in
24
Gmap.add x (y::list_except y l) m
29
try Gmap.find x m with Not_found -> []
32
let l = Gmap.find x m in
33
Gmap.add x (if List.mem y l then list_subtract l [y] else l) m