I was running into a strange error that boils down to this
Myfunction[List_]:= Transpose[{List}]
Test = {1, 2};
Myfunction[Test]
The output is
Transpose[{1, 2}[{1, 2}]]
This doesn't make sense to me because if I just run
Transpose[{Test}]
I get
{{1}, {2}}
Can anyone explain why the test of {1, 2} appears twice when I run Myfunction?
List) as variable is bad practice, we don't have many questions about the possible side-effect caused by such bad practice, so +1. $\endgroup$Evaluation->Analyze notebook, you will get this issue clearly pointed out. i.sstatic.net/23noS0M6.png $\endgroup$