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

Documentation / Mathematica / Built-in Functions / Lists and Matrices / List Testing /

MemberQ

FilledSmallSquare MemberQ[list, form] returns True if an element of list matches form, and False otherwise.

FilledSmallSquare MemberQ[list, form, levelspec] tests all parts of list specified by levelspec.

FilledSmallSquare form can be a pattern.

FilledSmallSquare Example: MemberQ[x^2, y^2, x^_] LongRightArrow.

FilledSmallSquare The first argument of MemberQ can have any head, not necessarily List.

FilledSmallSquare MemberQ[list, form] immediately tests whether any expression in list matches form; Element[x, dom] asserts that x is an element of the symbolic domain dom.

FilledSmallSquare See Section 1.8.5 and Section 2.3.5.

FilledSmallSquare See also: FreeQ, Element, Count, Cases, IntervalMemberQ.

FilledSmallSquare New in Version 1.

Further Examples



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


 © 2008 Wolfram Research, Inc.  Terms of Use  Privacy Policy | [ja] |
Sign up for our newsletter: