Signaling Errors
Use the function CHECK-TYPE or ASSERT
(defun nth-character (n s)
(check-type s string)
(check-type n fixnum)
(assert (<= 0 n (1- (length s))))
(char s 0))
Previous slide
Next slide
Back to first slide
View graphic version