- interval-length iprocedure
Procedure that computes the total number of elements in the interval. This is equivalent to taking the lengths along each dimension and multiplying them.
(import (generalized-arrays intervals) (test)) (test "Length of [(0, 0) (2, 2)) is 4" 4 (make-default-interval (vector 2 2))) (test "Length of [(1, 1) (3, 4)) is 6" 6 (make-interval (vector 1 1) (vector 3 4)))