|
-
Oct 12th, 2004, 05:20 PM
#1
Thread Starter
Addicted Member
LISP programming question
Okay Im new to lisp and trying to figure out why this function is wrong and how to fix it. The function is supposed to reverse the given list.
(defun reverse(list)
(cond
((null list) 0)
(T (append (list (car list)) cdr(list))))
I thought this might be close but I know its not exactly right.
-
Oct 13th, 2004, 11:42 PM
#2
Dazed Member
I would try posting this in another forum. Mostly all the talk here is about hardware and apps.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|