patmatch1.spad line 725 [edit on github]
This package provides pattern matching functions on polynomials.
patternMatch(p, pat, res) matches the pattern pat to the polynomial p; res contains the variables of pat which are already matched and their matches.
patternMatch(p, pat, res, vmatch) matches the pattern pat to the polynomial p. res contains the variables of pat which are already matched and their matches; vmatch is the matching function to use on the variables.