Page 1 of 1

(nth-set (ref token1 mylist) mylist token2)

Posted: Tue Jun 07, 2005 11:43 pm
by Dmi
I trying to replace one symbol in a list-tree with another symbol or list.
Code in the subject not really works because "ref" returns list, but "nth-set" wants plain sequence of numbers.
Will pop & push be an equivalent?
What is the best way to replace _all_ occurencies of "token1" in list-tree?

Thanks.