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