From: Dirt
Subject: [Q] Help with arranging lists
Date: 
Message-ID: <ek1k8soc3q2ee4vi1o6ajmlqco0emsrcuq@4ax.com>
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

From: Stig Hemmer
Subject: Re: [Q] Help with arranging lists
Date: 
Message-ID: <ekvu2k5lswz.fsf@verden.pvv.ntnu.no>
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.
From: Dirt
Subject: Fantastic, I got it
Date: 
Message-ID: <nb8k8ssghf20r3ougbao4o603gsrt0so1a@4ax.com>
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.