Pushing a list as multiple elements

Started by Tim Johnson, December 28, 2007, 06:48:18 PM

Previous topic - Next topic

Tim Johnson

consider the following;
> (set 't '(4 5 6))
(4 5 6)
> (set 'test '(1 2 3))
(1 2 3)
> (push t test -1)
> test
(1 2 3 (4 5 6))

;; Is there an existing function implementation that will give me:
(1 2 3 4 5 6)
Yes, flat will give me those result, but I may not want to

'flatten other elements in the target list.

Thanks

Tim
Programmer since 1987. Unix environment.

cormullion

#1
Perhaps append is the one:


> t
(4 5 6)
> test
(1 2 3)
> (append test t)
(1 2 3 4 5 6)
>

Tim Johnson

#2
Yes indeed. Thank you.
Programmer since 1987. Unix environment.