|
Further Examples: Select
Here is a list.
In[1]:= 
This selects the numeric quantities from mm.
In[2]:= 
Out[2]= 
This selects the first .
In[3]:= 
Out[3]= 
This selects the ones that are less than .
In[4]:= 
Out[4]= 
Given a list of real numbers and a list of intervals, the function FindInterval returns a list of pairs. Each pair consists of a number and the interval containing that number. In this definition the intervals are closed on the left and open on the right.
In[5]:= 
Here are three numbers.
In[6]:= 
Here are two intervals.
In[7]:= 
Since is contained in both and , FindInterval returns two pairs for .
In[8]:= 
Out[8]= 
The function allOddDigits gives all positive integers less than x with all odd digits. The in the inner Select terminates the test if an even digit is found.
In[9]:= 
In[10]:= 
Out[10]= 
This gives the built-in functions that have the option Heads False.
In[11]:= 
In[12]:= 
Out[12]= 
Here are the built-in functions with the option Heads True.
In[13]:= 
Out[13]= 
In[14]:= 
|