Bug introduced in 10.0.0 and fixed in 10.0.1
Just to report.
IgnoringInactive
should work with Cases
. In agreement with the things written at the Documentation Center this:
Cases[{Cos[a], Inactive[Cos][b]}, IgnoringInactive[Cos[x_]]]
works correctly yielding
(* {Cos[a], Inactive[Cos][b]} *)
exactly as expected.
However, this
Cases[{Cos[a], Inactive[Cos][b], Tan[c]}, IgnoringInactive[Cos[x_]]]
works (as I think) incorrectly returning
(* {Cos[a], Inactive[Cos][b], Tan[c]} *)
while I would expect again {Cos[a], Inactive[Cos][b]}
.
IgnoringInactive[Inactive[Cos][x_]]
does work however, not that that makes this OK. $\endgroup$ – Mr.Wizard Jul 21 '14 at 14:06MatchQ[1, IgnoringInactive[0]]
andMatchQ["a", IgnoringInactive["b"]]
both returnTrue
instead ofFalse
(reported to WRI). $\endgroup$ – WReach Jul 21 '14 at 17:55