Previous Up Next

6.40.5  Selecting elements of a list: select

The select command selects elements of a list meeting given conditions.


Example.
Input:

select(x->(x>=2),[0,1,2,3,1,5])

Output:


2,3,5

Previous Up Next