Say I have a `List<List<T>>` and I wan...
# random
r
Say I have a
List<List<T>>
and I want to (expand?, transpose?) it into another
List<List<T>>
like in the following example:
Copy code
[
    [a, b, c],
    [d],
    [e, f, g],
    [h, i]
]
becomes
[
    [a, d, e, h],
    [a, d, e, i].
    [a, d, f, h],
    [a, d, f, i],
    [a, d, g, h],
    [a, d, g, i],
    [b, d, e, h],
    ... etc.
]
For some reason it's just not clicking for me. Any ideas?