Page 1 of 1

Copy Function

Posted: Wed Jul 18, 2012 9:07 am
by fabulousares
Hi
I need an interactive function that does the same thing as copy-list and save the result into new list.

example:

(setf lst ‘(a b c d 1 2 3 4 5)) -> (A B C D 1 2 3 4 5)

new-list -> (A B C D 1 2 3 4 5)


"if possible using dolist function"

Thanks

Re: Copy Function

Posted: Wed Jul 18, 2012 7:44 pm
by nuntius
Please provide more details on the problem and how you've tried to solve it.

Re: Copy Function

Posted: Sat Jul 21, 2012 10:21 pm
by fabulousares
nuntius wrote:Please provide more details on the problem and how you've tried to solve it.

finally solved it. thanks for your attention.

Re: Copy Function

Posted: Wed Aug 01, 2012 12:54 am
by Goheeca
It would be great to increase an information value of this thread and to post here the solution.

Re: Copy Function

Posted: Wed Aug 01, 2012 9:30 am
by nuntius
Goheeca wrote:It would be great to increase an information value of this thread and to post here the solution.
This was a homework question, not production code. I don't think we need an archive of all homework answers.

Re: Copy Function

Posted: Wed Aug 01, 2012 10:32 am
by Goheeca
Yeah, but for a random viewer it's unpleasant and it's better to store solutions than not + still to store these threads.