Cases
Cases[expr, pat]
returns a new List
of all elements in expr
that match pat
.
Attributes[Cases] := {Protected}
Simple examples
Further examples
expr
need not be a list:
Cases[expr, pat]
returns a new List
of all elements in expr
that match pat
.
Attributes[Cases] := {Protected}
expr
need not be a list: