Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Stacked Definitions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg93552] Re: [mg93541] Stacked Definitions
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Fri, 14 Nov 2008 06:34:19 -0500 (EST)
  • Reply-to: hanlonr at cox.net

temp[42][3] = 7

7

Names["*Values*"]

{DefaultValues,DownValues,DynamicModuleValues,FormatValues,NValues,\
OwnValues,SingularValues,SubValues,UpValues,ValuesData}

SubValues[temp]

{HoldPattern[temp(42)\[InvisibleApplication](3)]:>7}


Bob Hanlon

---- Nikolaus Rath <Nikolaus at rath.org> wrote: 

=============
Hello,

If I make a definition of the form

temp[42][3] = 7

where is this rule stored? I would have expected it to be in
DownValues[temp] or DownValues[temp[42]], but the first list is empty
and the second gives a syntax error.


Best,

   -Nikolaus

--
 =C2=BBIt is not worth an intelligent man's time to be in the majority.
  By definition, there are already enough people to do that.=C2=AB
                                                         -J.H. Hardy

  PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6  02CF A9AD B7F8 AE4E 425C


--

Bob Hanlon



  • Prev by Date: Re: Stacked Definitions
  • Next by Date: Re: How to export values of an expression as data file?
  • Previous by thread: Re: Stacked Definitions
  • Next by thread: Re: Stacked Definitions