0
我想從列表創建一個集合。 friends1
是一個名字列表。在TCL中創建一個列表
我試圖做的事:
set friends2 ""
foreach frnd $friends1 {
append_to_collection friends2 $frnd
}
Error: At least one collection required for argument 'object_spec' to append_to_collection when the 'collection' argument is empty (SEL-014)
任何想法?謝謝!
什麼代碼定義了'append_to_collection'?它不是標準的Tcl(在http://www.tcl-lang.org/man/tcl8.6/中定義) –
我使用ic編譯器,它是一個內置命令:append_to_collection 將對象添加到集合中,修改一個變量。 – Tlalit