Select
Details

- The object list can have any head, not necessarily List.
- When used on an Association, Select picks out elements according to their values.
- Select can be used on SparseArray objects. »
- Select[crit][list] is equivalent to Select[list,crit].
Examples
open allclose allBasic Examples (5)
Select elements that are even:
Use a pure function to test each element:
Return only the first expression selected:
Use the operator form of Select:
Select operates on values in an Association:
Scope (5)
Generalizations & Extensions (2)
Applications (7)
Properties & Relations (1)
See Also
Tutorials
Related Guides
Related Links
- Demonstrations with Select (Wolfram Demonstrations Project)
- Fast Introduction for Programmers: Functionals & Operators
- An Elementary Introduction to the Wolfram Language: Tests and Conditionals
- An Elementary Introduction to the Wolfram Language: Expressions and Their Structure
- An Elementary Introduction to the Wolfram Language: Natural Language Understanding
- An Elementary Introduction to the Wolfram Language: Creating Websites and Apps
- An Elementary Introduction to the Wolfram Language: Datasets
- NKS|Online (A New Kind of Science)
Introduced in 1988
(1.0)
| Updated in 2014 (10.0)