patmatch1.spad line 218 [edit on github]
This package provides pattern matching functions on kernels.
patternMatch(f(e1, ..., en), pat, res)
matches the pattern pat
to f(e1, ..., en)
; res contains the variables of pat
which are already matched and their matches.