我现在正在学习 Lisp,我正在尝试做一个要求我获得列表最大值的练习,语法与我学过的大多数编程语言完全不同,所以我遇到了一些困难。
我的代码:
(defun test(y)
(cond
((and (first y) (> (second y)) (> (third y)))
(format t "numero maximo ~d" (first y))
((and (second y) (> (first y)) (> (third y)))
(t (format t "numero maximo ~d" (second y))
((and (third y) (> (second y)) (> (first y)))
(t (format t "numero maximo ~d" (third y))
))
我收到此错误:incomplete s-expression in region