Mathematica 9 is now available

Select

Usage

Select[list, crit] 选取 list 中使得 crit[ ]True 的所有元素  .
Select[list, crit] 选取 list 中使得 crit[ ]True 的前n个元素.


Notes

• 例如: Select[ 1,4,2,7,6 , EvenQ]LongRightArrow .
list 可以具有任意头, 而不必是 List.
• 参见 Mathematica 全书: 2.2.7节.
• 同时参见: Cases, Take, Drop.
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]=



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.