This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

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


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