Module Pattern.ObsMap

Maps from patterns to something

type 'a t
val dummy : 'a -> 'a t
val get : 'a t -> id -> 'a
val set : 'a t -> id -> 'a -> unit
val fold_lefti : (id -> 'a -> 'b -> 'a) -> 'a -> 'b t -> 'a
val map : ('a -> 'b) -> 'a t -> 'b t
val iteri : (id -> 'a -> unit) -> 'a t -> unit
val print : ?trailing:(Stdlib.Format.formatter -> unit) -> (Stdlib.Format.formatter -> unit) -> (id -> Stdlib.Format.formatter -> 'a -> unit) -> Stdlib.Format.formatter -> 'a t -> unit