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

AppendTo

Usage

AppendTo[s, elem] appends elem to the value of s, and resets s to the result.


Notes

AppendTo[s, elem] is equivalent to s = Append[s, elem].
AppendTo[s, elem] does not evaluate s.
• You can use AppendTo repeatedly to build up a list, though Sow and Reap will usually be more efficient.
AppendTo works on SparseArray objects, returning ordinary lists if necessary.
• See Section 2.5.4.
• See also: PrependTo, Sow.
• 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: