Pushing a list as multiple elements
Posted: Sat Dec 29, 2007 2:48 am
consider the following;
;; Is there an existing function implementation that will give me:
Yes, flat will give me those result, but I may not want to
'flatten other elements in the target list.
Thanks
Tim
Code: Select all
> (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))
Code: Select all
(1 2 3 4 5 6)
'flatten other elements in the target list.
Thanks
Tim