Except
Usage
Notes
Further Examples
Here is a list.
In[1]:=
|
This gives all elements in that are not integers.
In[2]:=
|
Out[2]=
|
This gives all numbers in .
In[3]:=
|
Out[3]=
|
This gives all elements in that are not integers and yet are numbers.
In[4]:=
|
Out[4]=
|
This finds the position of all the nonzero integers in the list.
In[5]:=
|
Out[5]=
|
This finds the phone numbers with area codes not equal to .
In[6]:=
|
Out[6]=
|
This replaces all integers except or by .
In[7]:=
|
Out[7]=
|
This defines a function for all arguments except .
In[8]:=
|
In[9]:=
|
Out[9]=
|
Except (with one argument) also works in string patterns.
In[10]:=
|
Out[10]=
|
|