Further Examples: Select
Here is a list.
This selects the numeric quantities from mm.
This selects the first .
This selects the ones that are less than .
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.
Here are three numbers.
Here are two intervals.
Since is contained in both and , FindInterval returns two pairs for .
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.
This gives the built-in functions that have the option Heads False.
Here are the built-in functions with the option Heads True.