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

MapIndexed

Usage

MapIndexed[f, expr] applies f to the elements of expr, giving the part specification of each element as a second argument to f.
MapIndexed[f, expr, levspec] applies f to all parts of expr on levels specified by levspec.


Notes

• Example: MapIndexed[f,  a, b, c ]LongRightArrow .
• Level specifications are described in Section A.3.6.
• The default value for levelspec in MapIndexed is {1}.
• Example: MapIndexed[f,   a, b ,  c, d  , Infinity]LongRightArrow .
• See Section 2.2.4.
• See also: MapAt.
• New in Version 2.


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: