Select
Usage
• Select[list, crit] 选取 list 中使得 crit[ ] 为 True 的所有元素  .
• Select[list, crit] 选取 list 中使得 crit[ ] 为 True 的前 n个元素.
Notes
• list 可以具有任意头, 而不必是 List.
Further Examples
This selects the even numbers from the list.
In[1]:=
|
Out[1]=
|
This selects those numbers in the list that are greater than 10.
In[2]:=
|
Out[2]=
|
|