chickadee » generalized-arrays » check-interval

check-interval loc arg arg-nameprocedure

Checks if the interval arg is an interval. If it is not, signals an error that describes that arg is not an interval in the function with the name loc (a symbol) and name arg-name (also a symbol).

 
(import (generalized-arrays intervals))

(check-interval 'my-procedure 3 'interval)

; => Error: (my-procedure) bad `interval` argument type - not an interval: 3