Consider some test table
tab=Table[{i,i^2},{i,1,100,1}];
I would like to obtain the table
tab2=Join[tab,tab,...,tab]
where ... include some number of tab, in a compact and smart way. Say, for 10 tab, the stupid way would be
tab2=Join[tab,tab,tab,tab,tab,tab,tab,tab,tab,tab]
Could you please tell me how to do this?
My guess is
tab[n_]:=Flatten[Table[tab2,{i,1,n,1}],1]
But I have doubts whether it will be fast in case of large tables.
tab3 = Flatten[#, 1] &@Table[tab, 20]
? $\endgroup$tab4 = Catenate[Table[tab, 20]]
$\endgroup$tab5 = Fold[Join, ConstantArray[tab, 20]]
$\endgroup$tab6 = Sequence @@@ ConstantArray[tab, 20]
$\endgroup$