is an option for functions which use level specifications that specifies whether heads of expressions should be included.


Heads
is an option for functions which use level specifications that specifies whether heads of expressions should be included.
Details

- Heads->True treats heads just like other elements of expressions for the purpose of levels.
- Heads->False never includes heads as part of any level of an expression.
- Most functions which use level specifications have the default setting Heads->False. One exception is Position, for which the default is Heads->True.
Tech Notes
Related Guides
History
Introduced in 1991 (2.0)
Text
Wolfram Research (1991), Heads, Wolfram Language function, https://reference.wolfram.com/language/ref/Heads.html.
CMS
Wolfram Language. 1991. "Heads." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Heads.html.
APA
Wolfram Language. (1991). Heads. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Heads.html
BibTeX
@misc{reference.wolfram_2025_heads, author="Wolfram Research", title="{Heads}", year="1991", howpublished="\url{https://reference.wolfram.com/language/ref/Heads.html}", note=[Accessed: 14-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_heads, organization={Wolfram Research}, title={Heads}, year={1991}, url={https://reference.wolfram.com/language/ref/Heads.html}, note=[Accessed: 14-August-2025]}