MathGroup Archive 2009

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

Search the Archive

Re: Help with Hold


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


  • 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