Mathematica 9 is now available

Select

Usage

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


Notes

• Example: Select[ 1,4,2,7,6 , EvenQ]LongRightArrow .
• The object list can have any head, not necessarily List.
Select can be used on SparseArray objects.
• See Section 2.2.7.
• See also: Cases, Take, Drop.
• Related package: Statistics`DataManipulation`.
• New in Version 1.


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.