

Thread
Details

- Functions with attribute Listable are automatically threaded over lists.
- All the elements in the specified args whose heads are h must be of the same length.
- Arguments that do not have head h are copied as many times as there are elements in the arguments that do have head h. »
- Thread specifies arguments using the standard sequence specification:
-
All all elements None no elements n elements 1 through n -n last n elements {n} element n only {m,n} elements m through n inclusive {m,n,s} elements m through n in steps of s
Examples
open all close allBasic Examples (3)
Scope (9)
Sequence Specifications (7)
Generalizations & Extensions (1)
Elements that are not lists are repeated:
The repetition of non-lists also occurs in functions with attribute Listable:
Applications (3)
Equate coefficients in a polynomial equation:
Alternatively, use SolveAlways:
Properties & Relations (3)
See Also
Distribute Map Inner Threaded MapThread AssociationThread NonThreadable
Function Repository: Unthread
Tech Notes
Related Guides
History
Introduced in 1988 (1.0)
Text
Wolfram Research (1988), Thread, Wolfram Language function, https://reference.wolfram.com/language/ref/Thread.html.
CMS
Wolfram Language. 1988. "Thread." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Thread.html.
APA
Wolfram Language. (1988). Thread. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Thread.html
BibTeX
@misc{reference.wolfram_2025_thread, author="Wolfram Research", title="{Thread}", year="1988", howpublished="\url{https://reference.wolfram.com/language/ref/Thread.html}", note=[Accessed: 16-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_thread, organization={Wolfram Research}, title={Thread}, year={1988}, url={https://reference.wolfram.com/language/ref/Thread.html}, note=[Accessed: 16-August-2025]}