Next: , Previous: , Up: Top   [Index]


33 One dimensional extended ranges

The one–dimension libraries implement low level operations over generalised ranges of a coordinate. They can be used to operate on ranges of numbers or characters or whatever objects upon which we can define an ordering. There are two versions of the library:

(vicare containers one-dimension-co)

Represents domains of values using disjoint half–open ranges; each range has a lower–included and an upper–excluded limit.

(vicare containers one-dimension-cc)

Represents domains of values using disjoint double–closed ranges; each range has a lower–included and an upper–included limit.

Both libraries have the same API, meaning that the functions names and arguments are the same; the only difference in semantics is that (vicare containers one-dimension-co) interprets argument ranges as half–open, while (vicare containers one-dimension-cc) interprets argument ranges as double–closed.