Hello,
I am trying to take a list such as ( a b c ) and make it look like:
( b c a ).
This is done by taking the first element and making it the last.
the code I have now is:
(cons (cdr x) (cons (car x ) nil ))
where x is my list. So for example if I set my list to:
(a b c)
and run my code I get:
((B C) A)
which is almost what I want, but not quite. The parens around b and c
should not be there. Could someone please guide me in the right
direction, I am out of ideas.
Thanks ahead,
Dirt
Thanks,
I got it. all set.
On 22 Jan 2000 22:04:28 +0100, Stig Hemmer <····@pvv.ntnu.no> wrote:
>Dirt <····@inam3.com> writes:
>
>> ( a b c ) -> ( b c a )
>
>> (cons (cdr x) (cons (car x ) nil ))
>
>You want APPEND.
>
>Stig Hemmer,
>Jack of a Few Trades.