Question/request?
Posted: Sat Jun 16, 2007 7:57 pm
Hi Lutz,
Im wondering if the following is possible in newlisp...
I could not find a function that does this..
i.e.
I have a list -> (setq A '( (+ x 1) (- x 2) ))
Now I want to COPY/MIRROR that list to B..
But in this manner that everything that is changed inside List A also will be changed in list B.
This means that list B is a Symbolic-Link/Mirror to list A..
everything changes in A changes in B..
(not reverse nessesarly)
>(setq A '( (+ x 1) (- x 2) ))
( (+ x 1) (- x 2) )
>(mirror A B)
( (+ x 1) (- x 2) )
> B
( (+ x 1) (- x 2) )
>(pop A 0)
( (- x 2) )
> B
( (- x 2) )
Norman.
Im wondering if the following is possible in newlisp...
I could not find a function that does this..
i.e.
I have a list -> (setq A '( (+ x 1) (- x 2) ))
Now I want to COPY/MIRROR that list to B..
But in this manner that everything that is changed inside List A also will be changed in list B.
This means that list B is a Symbolic-Link/Mirror to list A..
everything changes in A changes in B..
(not reverse nessesarly)
>(setq A '( (+ x 1) (- x 2) ))
( (+ x 1) (- x 2) )
>(mirror A B)
( (+ x 1) (- x 2) )
> B
( (+ x 1) (- x 2) )
>(pop A 0)
( (- x 2) )
> B
( (- x 2) )
Norman.