SubsetCases
or
returns a list of the right-hand-side
rhs
for the matching sublist pattern expressionsublist
inlist
.
returns a list of the matching sublist pattern expressions
sublist
inlist
.
Note: this function doesn’t support pattern sequences at the moment.