Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #1997 > unrolled thread
| Started by | "Scot T. Martin" <smartin@seas.harvard.edu> |
|---|---|
| First post | 2011-04-29 11:33 +0000 |
| Last post | 2011-04-29 11:33 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
HoldAll/HoldRest "Scot T. Martin" <smartin@seas.harvard.edu> - 2011-04-29 11:33 +0000
| From | "Scot T. Martin" <smartin@seas.harvard.edu> |
|---|---|
| Date | 2011-04-29 11:33 +0000 |
| Subject | HoldAll/HoldRest |
| Message-ID | <ipe7mu$r23$1@smc.vnet.net> |
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
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web