I need to store number of lists in array.
I have a command which returns a list:Suppose it is CommandReturninglist
set aa [ CommandReturninglist{0} ]
Clarification: CommandReturninglist is taking input argument 0.
I need to use it ten times and store the lists returned in array.
for {set i 0 } { $i < 10 } { incr i } {
set d($i) [ CommandReturninglist{$i} ]
puts $d($i)
}
I cant store the list as shown in above case. Here $i in CommandReturninglist{$i} is the needed argument.
Please suggest some way.
CommandReturninglistis defined if you're able to call it like that. Could you clarify? Maybe post the proc definition? And also the desired results?