Search found 2 matches
- Wed Nov 04, 2009 5:50 pm
- Forum: Common Lisp
- Topic: Need some help thx
- Replies: 6
- Views: 8878
Re: Need some help thx
Thanks Dave and methusala. The code that I came up with is : (defun show-list (lst) (cond ((and (atom lst) (not (null lst))) (format t "~A " lst)) ((and (atom lst) (null lst)) (format t "]")) (t (format t "[") (show-list (car lst)) (mapcar #'show-list (cdr lst)) (format...
- Mon Nov 02, 2009 12:40 pm
- Forum: Common Lisp
- Topic: Need some help thx
- Replies: 6
- Views: 8878
Need some help thx
Dear all,I have a small and interesting problem,but I cannot come with a perfect solution,I would be grateful if you could help me or give me a hint on this. The problem is : given any list ,say like '(a b c),we will convert it to '[a b c] or '(a (b c)) ,we will convert to '[A ] In other words,the f...