MathGroup Archive 2007

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

Search the Archive

Releasing several Holds simultaneously

  • To: mathgroup at smc.vnet.net
  • Subject: [mg82248] Releasing several Holds simultaneously
  • From: "Andrew Moylan" <andrew.j.moylan at gmail.com>
  • Date: Tue, 16 Oct 2007 03:27:09 -0400 (EDT)

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