Pick
Usage
Notes
Further Examples
This picks out the first and fourth elements of a list.
In[1]:=
|
Out[1]=
|
This picks out the first, fourth, and fifth elements of a list.
In[2]:=
|
Out[2]=
|
Here are two lists.
In[3]:=
|
In[4]:=
|
This picks out elements from  for which the corresponding element of  matches .
In[5]:=
|
Out[5]=
|
Here is a matrix.
In[6]:=
|
Out[6]//MatrixForm=
|
This picks out the prime numbers from , preserving the nested structure.
In[7]:=
|
Out[7]=
|
This does the same thing.
In[8]:=
|
Out[8]=
|
This uses a sparse array to pick out elements from a big list.
In[9]:=
|
Out[9]=
|
|