Partitioning a List
into sub-lists and placing them directly into a Grid orders sub-lists across rows. Is there an idiot-proof built-in function or a simple algorithm for ordering sub-lists down columns for an unknown number of list
elements with an unknown end-user selected n
of sub-list lengths?
This outputs ordered across rows:
list = Range[8]
n = 3
Grid[Partition[list, UpTo[n]]]
Out:
1 2 3
4 5 6
7 8
The goal is ordered down columns:
1 4 7
2 5 8
3 6