Suppose I have $n$ lists, How to combine those $n$ lists without specifying whole $n$ sets?
I mean; For a given lists
list1={{3, 1, 1}, {1, 3, 1}, {1, 1, 3}} list2={{2, 2, 1}, {2, 1, 2}, {1, 2, 2}}
Using the command Flatten, I can do
Flatten[{lists1,lists2},1]
Produces what I want. i.e.,
{{3, 1, 1}, {1, 3, 1}, {1, 1, 3}, {2, 2, 1}, {2, 1, 2}, {1, 2, 2}}
For the next cases, I do the similar way. But I want to do this more general. For example given $list[1], \cdots, list[n]$ without specifiying all $n$ elements as
Flatten[{list[1], list[2], .... ,list[n]},1]
Is there another way to implement the same operation?
list1
,list2
orlist[1]
,list[2]
? Why notJoin
andFlatten
at level 1? $\endgroup$Flatten[Table[Symbol["list" <> IntegerString[i]], {i, 1, 2}]]
? $\endgroup$