expr = Return[1, 2]
Return::nofunc: Function 2 not found enclosing Return[1,2]. >>
(*Hold[Return[1, 2]]*)
However, Hold[Return[1, 2]]
is not assigned to expr
.Why does this happen? I want to use some code to store the output into that variable, is it possible?
PS: Please don't manually copy/paste or use methods like read the output cells/notebook contents and its variation. I prefer dealing with the problem directly.