Re: DownValues
- To: mathgroup at smc.vnet.net
- Subject: [mg113709] Re: DownValues
- From: Albert Retey <awnl at gmx-topmail.de>
- Date: Mon, 8 Nov 2010 05:39:19 -0500 (EST)
- References: <ib8cur$2ia$1@smc.vnet.net>
Am 08.11.2010 09:38, schrieb Stephan: > Hi, > > Is there any way to find out about definitions like: > > f[1][2] = 3 ? > > Here is a sample run: > > In[1]:= f[1][2] = 3 > Out[1]= 3 > In[2]:= DownValues[f] > Out[2]= {} > In[3]:= DownValues[f[1]] > During evaluation of In[3]:= DownValues::"sym" : " > StyleBox[\"\\\"\< is expected to be a symbol.\>\\\"\", \"MT\"] \ > Out[3]= DownValues[f[1]] > > So with "DownValues" I can't seem to learn about the definition f[1][2]... SubValues, unfortunatly seem to be undocumented, but gives you what you are looking for: SubValues[f] hth, albert