Use do to define (minimum lst) which returns the minimum of a list of numbers. You
may want to define an auxiliary procedure (smaller x y), using if, which returns the
smaller of two numbers.
I started doing this:
(defun minimum (lst)
"(lst) returns the smallest number of list."
(do ((numbers lst (cdr numbers))
But I'm stuck in the defining my command and would appreciate any insight greatly.
Comments
Leave a comment