MathGroup Archive 2009

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

Search the Archive

Re: Help with Hold

  • To: mathgroup at smc.vnet.net
  • Subject: [mg101030] Re: [mg100917] Help with Hold
  • From: Yuri Kandrashkin <spinalgebra at gmail.com>
  • Date: Sun, 21 Jun 2009 07:06:56 -0400 (EDT)
  • References: <200906180852.EAA19966@smc.vnet.net>

Hi,

If I understood your question correctly
here is another solution:

expr = Hold[x, Null, y, Null, Null]
ls = List @@ (ToString /@ Unevaluated /@ expr) /. "Null" -> Null
ls // InputForm

2009/6/18 Erich Neuwirth <erich.neuwirth at univie.ac.at>:
> 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?
>
>

-- 
Sincerely,
Yuri Kandrashkin


  • References:
  • Prev by Date: Number format
  • Next by Date: Re: FileNameSetter[], Dynamic[]
  • Previous by thread: Re: Help with Hold
  • Next by thread: Re: Help with Hold