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

Level

Usage

Level[expr, levelspec] gives a list of all subexpressions of expr on levels specified by levelspec.
Level[expr, levelspec, f] applies f to the sequence of subexpressions.


Notes

Level uses the standard level specification described in Section A.3.6.
Level[expr, {-1}] gives a list of all "atomic" objects in expr.
Level traverses expressions in depth-first order, so that the subexpressions in the final list are ordered lexicographically by their indices.
• See Section 2.1.7.
• See also: Apply, Map, Scan.
• 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: