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

For the Compleat Fan
Locked
Dmi
Posts: 408
Joined: Sat Jun 04, 2005 4:16 pm
Location: Russia
Contact:

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

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

Locked