我對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