Posted to tcl by apn at Tue Nov 17 07:57:08 GMT 2015view raw
- There seems to be an inconsistency between compiled and interpreted lreplace
- % proc lr {l val pos} {lreplace $l $pos $pos $val}
- % set l {a b c}
- a b c
- % lr $l x 3
- list doesn't contain element 3
- % lreplace $l 3 3 x
- a b c x