Skip to content

subst

(subst new old list)

Copy of the list with every element equal to old replaced by new. Used to change a pair of an entget list before entmod.

(subst '(8 . "New") (assoc 8 e) e)

Differences with AutoCAD

Only the elements of the top level of the list are replaced, not those inside sublists.

Download LinceCAD Manual contents