我对LISP相对比较陌生,并且正在为一个Lisp程序尝试一些新的东西,我正在尝试为演示文稿创建。列表中的每一个字母? LISP
我需要能够在一个列表打印所有其他字符,例如,(ABCDEF)将返回(ACE)..但我越来越容易混淆...
我一般程序的Java,所以这对我来说有点不同。
我想这个程序使用纯递归..因此,一些沿
(defun every-other (lst)
(cond ((null lst) 0)
(( **** now this is where I get confused as to what I should do..
I've tried adding a counter to only remove even numbered elements, but I think I implemented the counter wrong, I also tried remove(cadr lst) lst, but that would only return zeros...
任何帮助,将不胜感激的....行..
谢谢!
优秀的帮助!谢谢!! – Ignacious 2014-09-11 02:07:13