PatternMatchSymbol SΒΆ
patmatch1.spad line 195 [edit on github]
S: SetCategory
This package provides pattern matching functions on symbols.
- patternMatch: (Symbol, Pattern S, PatternMatchResult(S, Symbol)) -> PatternMatchResult(S, Symbol)
patternMatch(expr, pat, res)matches the patternpatto the expressionexpr; res contains the variables ofpatwhich are already matched and their matches (necessary for recursion).