IgnoringInactive[patt]
is a pattern object that, for purposes of pattern matching, ignores occurrences of Inactive in both patt and the expression being matched.
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 all close 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:
See Also
Related Guides
History
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
BibTeX
@misc{reference.wolfram_2025_ignoringinactive, author="Wolfram Research", title="{IgnoringInactive}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/IgnoringInactive.html}", note=[Accessed: 18-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_ignoringinactive, organization={Wolfram Research}, title={IgnoringInactive}, year={2014}, url={https://reference.wolfram.com/language/ref/IgnoringInactive.html}, note=[Accessed: 18-August-2025]}