chickadee » srfi-196 » range-length

range-length rangeprocedure

Returns the length (number of elements) of range. Runs in O(1) time.

Example:

(range-length (numeric-range 10 30)) ⇒ 20