In[1]:=
(* I've got a list of lists as A *)
A={{a,b},{c,d},{e,f}}
Out[1]=
{{a,b},{c,d},{e,f}}
In[2]:=
(* Where the number of sublists is N and the lengh of every sublist is L,
and I want to obtain the Outer list of the sublists, obviously I can
do: *)
Outer[List,{a,b},{c,d},{e,f}]
Out[2]=
{{{{a,c,e},{a,c,f}},{{a,d,e},{a,d,f}}},{{{b,c,e},{b,c,f}},{{b,d,e},{b,d,f}}}}
In[3]:=
(* or *)
Outer[List,A[[1]],A[[2]],A[[3]]]
Out[3]=
{{{{a,c,e},{a,c,f}},{{a,d,e},{a,d,f}}},{{{b,c,e},{b,c,f}},{{b,d,e},{b,d,f}}}}
In[4]:=
(* but N and L can take different values,
so I need to obtain Outer List directly from A,
I tried several ways as Infix but without success*)
Infix[A,","]
Out[4]=
{a,b},{c,d},{e,f}
In[5]:=
Outer[List,Infix[A,","]]
Out[5]=
Infix[{{{a,b},{c,d},{e,f}}},{","}]
In[6]:=
(* Is there any solution ?
Regards
Joako *)