DeleteCases
list with every top-level element matching pattern removed.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
DeleteCases✓DeleteCases(list, pattern)the elements of list that do NOT match patternTyped signatures
| Type | Package | Applies |
|---|---|---|
(any, any) -> any | combinatorics | always |
Details
- Top level only — Wolfram's optional levelspec/n (search below the top, cap how many to delete) aren't implemented.
- Built on the same match primitive as MatchQ and FreeQ, so it shares their wildcard grammar and their limits.
- A string-literal pattern inherits a compute-engine quirk: two EQUAL string literals don't count as a match (
MatchQalready answers False for it), soDeleteCaseswon't remove them either — not something patched around here.
Examples
About
| Examples | 2 |
|---|---|
| Checked against | Wolfram Language 1 agree |
| Crosswalk | Wolfram Language |