Well well well.
Looks I really did blew it all out of proportion.
In fact I will now mark all of post with a trailing 2.0, just to show that I have upgraded.
I'm threw with this thread.
Down the Hatch!
Search found 5 matches
- Thu Feb 26, 2009 11:47 am
- Forum: Common Lisp
- Topic: CLisp Programming LISP program that produce a mirrored list
- Replies: 20
- Views: 47751
- Thu Feb 26, 2009 10:50 am
- Forum: Common Lisp
- Topic: CLisp Programming LISP program that produce a mirrored list
- Replies: 20
- Views: 47751
Re: CLisp Programming LISP program that produce a mirrored list
:arrow: Thanks So in the end looks like Ive found lisp after all or at least the CAR part of it. So I used your hints and remove cdr from skipping past the first items in the list and used mapcar instead. Reveresed function is more pronounced. :?: I not sure as of to how LAMBDA or CONSP would help e...
- Wed Feb 25, 2009 5:49 pm
- Forum: Common Lisp
- Topic: CLisp Programming LISP program that produce a mirrored list
- Replies: 20
- Views: 47751
Re: CLisp Programming LISP program that produce a mirrored list
I came to this forum to learn and discuss Lisp Programming of any dialect. Not to have my “easy†question ridiculed and mocked about. Now if there is such a category “so easy it must be for homework or learning CL.†point me in the direction so that I am able to get the help that I need othe...
- Wed Feb 25, 2009 5:11 pm
- Forum: Common Lisp
- Topic: CLisp Programming LISP program that produce a mirrored list
- Replies: 20
- Views: 47751
Re: CLisp Programming LISP program that produce a mirrored list
Sorry for the delay in response. The program that im working on can be found below. If this post is in the wrong section please disregard this issue as of now. The output of the lisp program is below using reverse [list](defun mirror_image (L) (if (eq (cdr L) nil) L (append (mirror_image (cdr L)) (l...
- Wed Feb 25, 2009 1:28 pm
- Forum: Common Lisp
- Topic: CLisp Programming LISP program that produce a mirrored list
- Replies: 20
- Views: 47751
CLisp Programming LISP program that produce a mirrored list
What is the best way to write a LISP program that will produce a mirror image of a list.
Example:
(mirror_image '((a b) (c (d e)))) should produce the following (((e d) c) (b a))
Do I use a function such as mirror_image?
Example:
(mirror_image '((a b) (c (d e)))) should produce the following (((e d) c) (b a))
Do I use a function such as mirror_image?