MathGroup Archive 2007

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

Search the Archive

Releasing several Holds simultaneously


Hold[a := Hold[1]]

How can I release both of these Holds (and thus execute a:=1)
simultaneously?

ReleaseHold[%] doesn't work; it evaluates a := Hold[1] before the other hold
is removed.

% /. Hold[x_]:>x does the same thing, because /. only matches once per part.



  • Prev by Date: Transparently passing on options to other functions
  • Next by Date: Re: Applying Additive Gaussian Noise with standard deviation
  • Previous by thread: Re: Transparently passing on options to other functions
  • Next by thread: Re: Releasing several Holds simultaneously