chickadee » srfi-196 » range-last

range-last rangeprocedure

Equivalent (in running time as well) to (range-ref range (- (range-length range) 1)).

Example:

(range-last (numeric-range 10 30)) ⇒ 29