Dnet.MakeSourcemodule Ident : Set.OrderedTypemodule Meta : Set.OrderedTypea pattern is a term where each node can be a unification variable
add t w i adds a new association (w,i) in t.
val fold_pattern :
('a -> (Idset.t * meta * t) -> 'a) ->
'a ->
term_pattern ->
t ->
Idset.t option * 'afold_pattern f acc p dn folds f on each meta of p, passing the meta and the sub-dnet under it. The result includes:
find_match p t returns identifiers of all terms matching p in t.
apply a function on each identifier and node of terms in a dnet