Intervals
The key to the problems identified in the previous chapter is to recognize that intervals are best thought of as objects in their own right, instead of just as pairs of points (“from/to pairs”). The chapter discusses some immediate consequences, and advantages, of this state of affairs. It then discusses in detail the concept of an interval data type and the concept of the associated point type, stressing in particular the role of the corresponding successor function. The chapter also stresses the fact that intervals aren’t necessarily temporal in nature—in fact, intervals in general are a widely applicable and useful abstraction. The chapter concludes with a brief discussion of relations having two or more interval attributes. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access