Expr.SubstSourceModule to handle substitutions
The type of substitutions from values of type 'a to values of type 'b.
Iterates over the bindings of the substitution.
val merge :
('a -> 'b option -> 'c option -> 'd option) ->
('a, 'b) t ->
('a, 'c) t ->
('a, 'd) tMerge two substitutions
Filter bindings base on a predicate.
Tests wether the predicate holds for at least one binding.
Tests wether the predicate holds for all bindings.
Comparison and hash functions, with a comparison/hash function on values as parameter
val print :
(Format.formatter -> 'a -> unit) ->
(Format.formatter -> 'b -> unit) ->
Format.formatter ->
('a, 'b) t ->
unitPrints the substitution, using the given functions to print keys and values.
val debug :
(Format.formatter -> 'a -> unit) ->
(Format.formatter -> 'b -> unit) ->
Format.formatter ->
('a, 'b) t ->
unitPrints the substitution, using the given functions to print keys and values, includign some debug info.
Return one binding of the given substitution, or raise Not_found if the substitution is empty.