Return
Return[x]
returns x
immediately.
Attributes[Return] := {Protected}
Simple examples
In[1]:= CompoundExpression[myreturnfunc := CompoundExpression[Return[x], hello], myreturnfunc]
Out[1]= x
Return[x]
returns x
immediately.
Attributes[Return] := {Protected}
In[1]:= CompoundExpression[myreturnfunc := CompoundExpression[Return[x], hello], myreturnfunc]
Out[1]= x