Legacy Documentation

Mathematica® Teacher's Edition (2002)

This is documentation for an obsolete product.
Current products and services
 Documentation /  Mathematica Teacher's Edition /  Built-in Functions /  Programming /  Pattern Matching /

DeleteCases

FilledSmallSquare DeleteCases[expr, pattern] removes all elements of expr which match pattern.
FilledSmallSquare DeleteCases[expr, pattern, levspec] removes all parts of expr on levels specified by levspec which match pattern.
FilledSmallSquare DeleteCases[expr, pattern, levspec, n] removes the first n parts of expr which match pattern.

FilledSmallSquare Example: DeleteCases[1, a, 2, b, _Integer]LongRightArrow.
FilledSmallSquare Level specifications are described in Section A.3.6.
FilledSmallSquare See The Mathematica Book on the web: Section 2.3.2.
FilledSmallSquare See also: Cases, ReplaceAll, Delete.