chickadee » srfi-179 » interval-cartesian-product

interval-cartesian-product interval #!rest intervalsprocedure

Implements the Cartesian product of the intervals in (cons interval intervals). Returns

(make-interval (list->vector (apply append (map array-lower-bounds->list (cons interval intervals))))
               (list->vector (apply append (map array-upper-bounds->list (cons interval intervals)))))

It is an error if any argument is not an interval.