I want to turn expression a+b+c+d into list {a,b,c,d}. I always thought there was a command to do this. Any thoughts on a simple way to do this?
Just as the documentation states:
FullForm is your friend!
FullForm
a + b + c + d // FullForm (* Out: Plus[a,b,c,d] *)
This already gives the basic idea on what to do ...
Thanks
Frank's solution replaces any head (Plus in this case) with the head List
a + b + c + d /. Plus -> List
Mine explicitly replaces Plus with List, same outcome for this input.
In[1]:= List @@ (a + b + c + d) Out[1]= {a, b, c, d}