Is there built in function or macro to append list to a mutable list. Something like PUSH, but slightly different.
Here is the PUSH using exapmle:
(setq v '(3))
(push '(1 2) v) ;v now ((1 2) 3)
And I need fallowing behavior:
(setq v '(3))
(mappend '(1 2) v) ;v should be (1 2 3)
I think you are looking for nconc?
You could use nconc to define a pushlist macro, to have an interface analogous to push:
And test it:
Also note that I’m using (list 3), instead of ‘(3), after reading sigjuice’s comment.