In Mathematica 10, Nothing is defined as to automaticaly disappear when used in a list or in an association, and moreover with the property that it returns Nothing when called with any number of arguments.
Consider the following Query:
(Query[f][{1, 2, 3, 4, 5}]
(* f[{1, 2, 3, 4, 5}] *)
Hence, when we use Nothing instead of f, I expected the result to be Nothing[{1,2,3,4,5}], wich evaluates to Nothing. However:
Query[Nothing][{1, 2, 3, 4, 5}]
(* {1, 2, 3, 4, 5} *)
The expression Nothing cannot be used as a part specification, but here it behaves like the part specification All. So is Nothing All in Queries?
Traceyou will see thatNothingwill go thoughListand disappear. I don't know how to judge this behavior though. – Kuba Dec 21 '15 at 14:03Query[Nothing] // NormalreturnsIdentity. – Karsten7 Jun 24 '16 at 09:53