|
[Date Index]
[Thread Index]
[Author Index]
Re: Until
- To: mathgroup at smc.vnet.net
- Subject: [mg7075] Re: [mg7063] Until
- From: Allan Hayes <hay at haystack.demon.co.uk>
- Date: Sun, 4 May 1997 21:59:35 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
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
|