Mathematica 9 is now available

Documentation / Mathematica / Built-in Functions / Programming / Tests /

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
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.