extremely dumb question:
i have a table of numbers. i want to divide it evenly (as possible) into n subtables where each subtable is 1/nth the size of the big table:
big_table={3,29,55,13,38,25}
divider = 2
[missing brain here]
lil_table_1={3,29,55}
lil_table_2={13,38,25}
and then, if i were to change it to divider = 3 , return 3 tables of two values instead.
i can definitely figure this out, but knowing how easy it must be to do––and also how long i’ve been staring at maiden––it’s totally plausible that someone here might be able to answer me before i work it out.
i know it probably involves table.unpack(big_table,something,something) and maybe also the % operator. just cant find the logic in my brain.