我受的Function
以下行为疑惑不解:通过函数体评价
In[1]:= InlineCellInMessage=Function[expr,DisplayForm[Cell[BoxData[MakeBoxes[expr,StandardForm]],"Input"]],{HoldAllComplete}]
Out[1]= Function[expr,MakeBoxes[expr,StandardForm]]
我预计在输出看到里面Function
未评估的代码,如以下情况:
In[2]:= InlineCellInMessage=Function[x,x+1+1]
Out[2]= Function[x,x+1+1]
但我在输出中获得内联单元。为什么会发生?
尝试使用'InlineCellInMessage:= Function' – Elalfer 2011-04-11 02:53:39