您如何有效地在Tcl中清空列表?
我尝试使用lreplace清空列表,例如:
set lst "a b c d e" lreplace $lst 0 [[llength $lst] - 1] # replace all content in the list with "".
tcl
tcl ×1