(defun listmover-fun (l n)
(if (= n (len l)))
(last l )
(position n 1)
listmover-fun (l n+1)
)试图弄清楚如何在ACL2中遍历列表,我知道这可以在lisp中完成,但我不能使用这些函数。任何建议都将不胜感激。
发布于 2018-10-19 00:50:37
ACL2中的迭代是通过递归完成的。没有“迭代”
https://stackoverflow.com/questions/52770865
复制相似问题