Nothing
Details
- Nothing is removed as part of the standard evaluation process. It is not removed in expressions that are held or inactive.
Examples
open all close allBasic Examples (2)
Scope (2)
Generalizations & Extensions (1)
Applications (1)
Properties & Relations (3)
Nothing is removed during the standard evaluation process:
Hold[{a, Nothing[b], Nothing}]%//ReleaseHoldRemove primes from a list by replacing them with Nothing:
Range[20] /. p_ ? PrimeQ -> NothingDelete the primes with a pattern:
DeleteCases[Range[20], p_ ? PrimeQ]Select[Range[20], !PrimeQ[#]&]Nothing will only disappear inside lists:
{Nothing, a}f[Nothing, a]An empty Sequence[] will evaporate inside any head except those with special attributes:
{Sequence[], a}f[Sequence[], a]See Also
DeleteCases Delete Select Sequence Missing None Null List Association
Function Repository: Excise
Related Guides
Text
Wolfram Research (2015), Nothing, Wolfram Language function, https://reference.wolfram.com/language/ref/Nothing.html (updated 2016).
CMS
Wolfram Language. 2015. "Nothing." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2016. https://reference.wolfram.com/language/ref/Nothing.html.
APA
Wolfram Language. (2015). Nothing. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Nothing.html
BibTeX
@misc{reference.wolfram_2026_nothing, author="Wolfram Research", title="{Nothing}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/Nothing.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_nothing, organization={Wolfram Research}, title={Nothing}, year={2016}, url={https://reference.wolfram.com/language/ref/Nothing.html}, note=[Accessed: 13-June-2026]}