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