Legacy Documentation

Mathematica® Teacher's Edition (2002)

This is documentation for an obsolete product.
Current products and services
 Documentation /  Mathematica Teacher's Edition /  Built-in Functions /  Programming /  Pattern Matching /

Select

FilledSmallSquare Select[list, crit] picks out all elements of list for which crit[] is True.
FilledSmallSquare Select[list, crit, n] picks out the first n elements for which crit[] is True.

FilledSmallSquare Example: Select[1,4,2,7,6, EvenQ]LongRightArrow.
FilledSmallSquare The object list can have any head, not necessarily List.
FilledSmallSquare See The Mathematica Book on the web: Section 2.2.7.
FilledSmallSquare See also: Cases, Take, Drop.