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

MathGroup Archive 2009

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

Search the Archive

Re: Help with Hold

  • To: mathgroup at smc.vnet.net
  • Subject: [mg100934] Re: Help with Hold
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Thu, 18 Jun 2009 06:18:39 -0400 (EDT)
  • Organization: Uni Leipzig
  • References: <h1cv8s$jfg$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de

Hi,

(Hold[x, Null, y, Null, Null] /.
    a_Symbol /; FreeQ[Names["System`*"], ToString[Unevaluated[a]]] :>
     ToString[Unevaluated[a]]) /. Hold -> List

?
Regards
   Jens

Erich Neuwirth wrote:
> How can I transform
> Hold[x,Null,y,Null,Null]
> into
> {"x",Null,"y",Null,Null}
> even if x and/or y have assigned values?
> 


  • Prev by Date: Re: Help with Hold
  • Next by Date: Re: Manipulate function
  • Previous by thread: Re: Help with Hold
  • Next by thread: Re: Help with Hold