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

3 lines
121 B
Common Lisp

(defun list< (a b)
(let ((x (find-if-not #'zerop (mapcar #'- a b))))
(if x (minusp x) (< (length a) (length b)))))