Wolfram ResearchProductsPurchasingServices & ResourcesAbout UsOur Sites
Mathematica > Elements of Lists >

Select

Select[list, crit]
picks out all elements ei of list for which crit[ei] is True.
Select[list, crit, n]
picks out the first n elements for which crit[ei] is True.
  • The object list can have any head, not necessarily List.
New in 1
© 2008 Wolfram Research, Inc. japanese.gif
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team