RosettaCodeData/Task/Order-two-numerical-lists/Common-Lisp/order-two-numerical-lists-1.lisp
Ingy döt Net b83f433714 tasks a-s
2013-04-10 23:57:08 -07: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)))))