IgnoringInactive
IgnoringInactive[patt]
is a pattern object that, for purposes of pattern matching, ignores occurrences of Inactive in both patt and the expression being matched.
Examples
open allclose allBasic Examples (1)
Replace all elements in a list that match a certain pattern:
Use IgnoringInactive to include a particular Inactive pattern:
Scope (3)
By default, inactive symbols are excluded during pattern matching:
Use IgnoringInactive to include a particular Inactive pattern:
Find whether an expression matches a certain pattern:
Include a particular Inactive pattern:
Find whether an expression is free of a certain pattern:
Include a particular Inactive pattern:
Applications (2)
Define a rule that applies to both active and Inactive objects:
The rule also works for an inactive int:
Text
Wolfram Research (2014), IgnoringInactive, Wolfram Language function, https://reference.wolfram.com/language/ref/IgnoringInactive.html.
CMS
Wolfram Language. 2014. "IgnoringInactive." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/IgnoringInactive.html.
APA
Wolfram Language. (2014). IgnoringInactive. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/IgnoringInactive.html