HoldAll/HoldRest
- To: mathgroup at smc.vnet.net
- Subject: [mg118485] HoldAll/HoldRest
- From: "Scot T. Martin" <smartin at seas.harvard.edu>
- Date: Fri, 29 Apr 2011 07:33:59 -0400 (EDT)
Some kind of issue going on here between the interactions of HoldAll of ValueQ[...] and HoldRest of If[...]. Anyone know the solution so that Out[3] results in True? = = In[1]:= valueQ = If[ValueQ[#], #, False] & = = Out[1]= If[ValueQ[#1], #1, False] & = = In[2]:= x = 5 = = Out[2]= 5 = = In[3]:= valueQ[5] = = Out[3]= False