Details and Options
ResourceFunction["DeleteCasesFrom"][x,pattern] is equivalent to x=DeleteCases[x,pattern].
ResourceFunction["DeleteCasesFrom"] has attribute
HoldFirst.
When used on an
Association,
ResourceFunction["DeleteCasesFrom"] deletes elements according to their values.
With the option
Heads→True, you can delete heads with
ResourceFunction["DeleteCasesFrom"]. Deleting the head of a particular element from
x sets it equal to the result of applying
FlattenAt to the value of
x at that point.
ResourceFunction["DeleteCasesFrom"] uses standard level specifications.
The default value for levelspec in ResourceFunction["DeleteCasesFrom"] is {}.
A positive level n consists of all parts of the value of x specified by n indices.
A negative level -n consists of all parts of the value of x with depth n.
Level -1 consists of numbers, symbols and other objects that do not have subparts.
Level 0 corresponds to the whole expression.
ResourceFunction["DeleteCasesFrom"] traverses the parts of the value of x in a depth-first order, with leaves visited before roots.