Here's the deal: I have a table that has the form
list = {{A,{a,b,c}},{B,{d,e,f}},{C,{g,h,i,j}}}
and so on, where the innermost lists can have an arbitary number of elements that differs from list to list, and I'd like it to look like
{{A,a},{A,b},{A,c},{B,d},{B,e},{B,f},{C,g},{C,h},{C,i},{C,j}}
and so on. How do I do this?
Join @@ (Thread /@ list)
$\endgroup$Flatten[Inner[Outer[##] /. x_[y_] :> {x, y} &, Sequence @@ Transpose[l], List], 1]
$\endgroup$