I have a $\psi$:
{a,b,c,d,e,...}
for example for 10 letters. How can I change it in the format:
{{a},{b},{c},{d},{e},...}
I cannot understand why Transpose
doesn't work for this aim!?
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.
Sign up to join this community
Map[List, L]
whereL
is your original list. screen shot !Mathematica graphics Transpose works on matrix (list of lists) not one a flat list like you have. $\endgroup$Transpose
you can doTranspose[{L}]
screen shot !Mathematica graphics $\endgroup$ref
What are you trying to accomplish that requires the additional list brackets? $\endgroup$Partition[{a, b, c, d, e}, {1}]
orOuter[List, {a, b, c, d, e}]
$\endgroup$