Local Functions - labels
Enables you to define a function and use it within the scope of the labels
Think of it like a let* for functions
(defun test-3rd ()
(labels ((3rd (lst)
(first (rest (rest lst)))))
(print (3rd '(1 2 3 4)))
(print (3rd '(a b c d)))))
Previous slide
Next slide
Back to first slide
View graphic version