newLISP Fan Club

Forum => Anything else we might add? => Topic started by: Dmi on June 07, 2005, 04:43:33 PM

Title: (nth-set (ref token1 mylist) mylist token2)
Post by: Dmi on June 07, 2005, 04:43:33 PM
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.