Mathematica > Core Language > List Manipulation > Elements of Lists >
Mathematica > Data Manipulation > Handling Arrays of Data > 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 | Last modified in 5
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team