|
Good point. Closed intervals contain their endpoints. That makes it very simple to detect an interval containing exactly one point. Actually, it would be very simple also for open intervals, since they can never contain exactly one point. That's why I chose to use closed intervals---so we can represent a rational number exactly. Notice that |
to: