PatternMatchKernel(S, E)ΒΆ
patmatch1.spad line 218 [edit on github]
S: SetCategory
E: Join(Comparable, RetractableTo Kernel E, ConvertibleTo Pattern S, PatternMatchable S)
This package provides pattern matching functions on kernels.
- patternMatch: (Kernel E, Pattern S, PatternMatchResult(S, E)) -> PatternMatchResult(S, E)
patternMatch(f(e1, ..., en), pat, res)
matches the patternpat
tof(e1, ..., en)
; res contains the variables ofpat
which are already matched and their matches.