Module Prime_accretion_map.MakeG
Accretion map of a monomorphic monoid type with an explicit generator.
Parameters
Signature
type key= Key.ttype elt= Elt.generatortype result= Elt.ttype t
val empty : tval singleton : key -> elt -> tval is_empty : t -> boolval cardinal : t -> intval result : t -> resultval app : t -> key -> elt optionval find : key -> t -> eltval add : key -> elt -> t -> tval remove : key -> t -> tval bindings : t -> (key * elt) listval fold : (key -> elt -> 'a -> 'a) -> t -> 'a -> 'aval iter : (key -> elt -> unit) -> t -> unitval search : (key -> elt -> 'a option) -> t -> 'a optionval for_all : (key -> elt -> bool) -> t -> boolval exists : (key -> elt -> bool) -> t -> bool