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 all

Basic 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:

Define a multiplication rule for the logarithm:

The rule works for both active and inactive versions:

Wolfram Research (2014), IgnoringInactive, Wolfram Language function, https://reference.wolfram.com/language/ref/IgnoringInactive.html.

Text

Wolfram Research (2014), IgnoringInactive, Wolfram Language function, https://reference.wolfram.com/language/ref/IgnoringInactive.html.

BibTeX

@misc{reference.wolfram_2021_ignoringinactive, author="Wolfram Research", title="{IgnoringInactive}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/IgnoringInactive.html}", note=[Accessed: 31-July-2021 ]}

BibLaTeX

@online{reference.wolfram_2021_ignoringinactive, organization={Wolfram Research}, title={IgnoringInactive}, year={2014}, url={https://reference.wolfram.com/language/ref/IgnoringInactive.html}, note=[Accessed: 31-July-2021 ]}

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