patmatch1.spad line 571 [edit on github]
This package provides pattern matching functions on lists.
patternMatch(l, pat, res)
matches the pattern pat
to the list l
; res contains the variables of pat
which are already matched and their matches.