0
(defun listmover-fun (l n)
 (if (= n (len l)))
     (last l )
(position n 1)
 listmover-fun (l n+1)
  )

试图弄清楚如何遍历 ACL2 中的列表,我知道它可以在 lisp 中完成,但我不能使用这些函数。任何提示将非常感谢。

4

1 回答 1

1

ACL2 中的迭代是通过递归完成的。没有“迭代”

于 2018-10-18T16:50:37.270 回答