Wolfram ResearchPRODUCTSPURCHASEFOR USERSCOMPANYOUR SITES
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.

Thread

Usage

Thread[f[args]] "threads" f over any lists that appear in args.
Thread[f[args], h] threads f over any objects with head h that appear in args.
Thread[f[args], h, n] threads f over objects with head h that appear in the first n args.
Thread[f[args], h, -n] threads over the last n args.
Thread[f[args], h, {m, n}] threads over arguments m through n.


Notes

• Example: Thread[f[ a,b , c,  d,e ]]LongRightArrow .
• 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 uses the standard sequence specification (see Section A.3.5).
• See also: Distribute, Map, Inner, MapThread.
• New in Version 1.


Any questions about topics on this page? Click here to get an individual response.Buy NowFree TrialMore Information



 © 2009 Wolfram Research, Inc.  Terms of Use  Privacy Policy |
Sign up for our newsletter: