I want to remove a sublist from a list in Tcl. I know how to do this for a main list using lreplace, but I don't know how to do this for a sublist. For instance:
set a { 1 2 { {3 4} { 4 } } }
Now I want to remove {4}from the internal list { {3 4} {4} }. The final list should be:
a {1 2 {{3 4}}}Please suggest how to arrange it.
Ruchi source
share