Return-from cont’d
defun establishes an implicit block using the function's name.
;; similar to the existing Common Lisp find function
(defun try2 (item objects)
(dolist (object objects)
(when (eql item object)
(return-from try2 item)))
;; get here if no matches -- return nil
nil)
Previous slide
Next slide
Back to first slide
View graphic version