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

Started by Dmi, June 07, 2005, 04:43:33 PM

Previous topic - Next topic

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.
WBR, Dmi