RosettaCodeData/Task/Order-two-numerical-lists/Common-Lisp/order-two-numerical-lists-1.lisp
2023-07-01 13:44:08 -04:00

6 lines
168 B
Common Lisp

(defun list< (a b)
(cond ((not b) nil)
((not a) t)
((= (first a) (first b))
(list< (rest a) (rest b)))
(t (< (first a) (first b)))))