chickadee » srfi-179 » interval-upper-bound

interval-lower-bound interval iprocedure
interval-upper-bound interval iprocedure

If interval is an interval built with

(make-interval lower-bounds upper-bounds)

and i is an exact integer that satisfies

$0 \leq i<$ (vector-length lower-bounds),

then interval-lower-bound returns (vector-ref lower-bounds i) and interval-upper-bound returns (vector-ref upper-bounds i). It is an error to call interval-lower-bound or interval-upper-bound if interval and i do not satisfy these conditions.