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

4 lines
121 B
Common Lisp
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
(defun list< (a b)
(let ((x (find-if-not #'zerop (mapcar #'- a b))))
(if x (minusp x) (< (length a) (length b)))))