RosettaCodeData/Task/Order-two-numerical-lists/Common-Lisp/order-two-numerical-lists-1.lisp

7 lines
168 B
Common Lisp
Raw Permalink Normal View History

2013-04-10 23:57:08 -07:00
(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)))))