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