MathGroup Archive 1997

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

Search the Archive

Re: Until


3 May 1997
Sean Ross <SEAN at mail.creol.ucf.edu>
[mg7063]  Until

>I would like an Until structure where the body is evaluated until  
a >test is true.

Sean:
How about

SetAttributes[Until,HoldAll]
Until[test_, body_]:= While[body;test=!=True]

?
	
Allan Hayes,
hay at haystack.demon.co.uk
http://www.haystack.demon.co.uk

	



  • Prev by Date: Re: 3D scatter plot
  • Next by Date: Re: Mathematica 3 notebook ButtonBoxes with no ButtonFrames?
  • Previous by thread: Re: Boundary Value Problem
  • Next by thread: Re: Until -Reply