Hi all,
I am trying to re-arranging some lists with some variables. Following code:
lista = {{a, b, c}, {d, e, f, g}};
listb = {{h, i, j}, {k, l, m}};
sol = Flatten[Outer[List, lsta, lstb], 3]
With my Flatten[…] command I can’t get unfortunately the right re-arangement.
My goal is that the first bracket of lista shall only be processed with the first bracket of listb:
{{a, h}, {a, i}, {a, j}, {b, h}, {b, i}, {b, j}, {c, h}, {c, i}, {c,
j}}
as well as only the 2. bracket of lista with the 2. bracket of list b and so on…
{{d, k}, {d, l}, {d, m}, {e, k}, {e, l}, {e, m}, {f, k}, {f, l}, {f,
m}, {g, k}, {g, l}, {g, m}}
Do you have some ideas or hints how I can achieve that?