Select
[{$e_1$, $e_2$, ...}, crit]True
.Select
[{$e_1$, $e_2$, ...}, crit, n]True
.Get a list of even numbers up to 10:
Select[Range[10], EvenQ]
Find numbers that are greater than zero in a list:
Select[{-3, 0, 10, 3, a}, #>0&]
Find the first number that is list greater than zero in a list:
Select[{-3, 0, 10, 3, a}, #>0&, 1]
Select
works on an expression with any head:
Select[f[a, 2, 3], NumberQ]