Wolfram: Pattern Matching Functions
Expression Transform
ReplaceAll
ReplaceRepeated
Replace
ReplaceAt
ReplaceList
Define Global Transformations Rules
Set
SetDelayed
Other Functions that Uses Patterns
Cases
→ extract elements from a list. AlsoDeleteCases
- Wolfram: Cases (Filter List by pattern)
Position
→ get positions of elements by pattern.- Wolfram: List. Position
Count
→ total of occurrences of a patternMemberQ
→ test if any member of a list matches a pattern. AlsoFreeQ
.- Wolfram: List. Check Exist
MatchQ
→ check if a pattern match.- Wolfram: MatchQ