Wolfram ResearchProductsPurchasingServices & ResourcesAbout UsOur Sites
Mathematica Technical FAQs Services & Resources / Mathematica / Kernels & Programming
-----
 /
Symbols
*Mathematica
*Network Mathematica
*webMathematica
*gridMathematica
*Personal Grid Edition
*Wolfram Workbench
*Wolfram Education Group
*Application Packages
*Mathematica for Students
*Mathematica CalcCenter
*Publicon
*A New Kind of Science Explorer
*Mathematical Explorer
*Mathematica Teacher's Edition
*Calculus WIZ
*Mathematica Player
*Ask about this page
*Print this page
*Email this page
*Give us feedback
*
Sign up for our newsletter:

Cases


Usage Message:

Cases[{e1, e2, ... }, pattern] gives a list of the ei that match the pattern. Cases[{e1, ... }, pattern -> rhs] gives a list of the values of rhs corresponding to the ei that match the pattern. Cases[expr, pattern, levspec] gives a list of all parts of expr on levels specified by levspec which match the pattern. Cases[expr, pattern -> rhs, levspec] gives the values of rhs which match the pattern.

Attributes[Cases] = {Protected}

Options:

Heads -> False

Notes:


Additional Online Documentation:

Mathematica 3.0
http://documents.wolfram.com/v3/RefGuide/Cases.html

Mathematica 4.0
http://documents.wolfram.com/v4/RefGuide/Cases.html




 © 2008 Wolfram Research, Inc.  Terms of Use  Privacy Policy