Until
Details
- Until[test] evaluates test repeatedly, effectively with a null body.
- If Break[] is generated in the evaluation of body, the Until loop exits.
- Continue[] exits the evaluation of body and continues the loop.
- Unless an explicit Return is used, the value returned by Until is Null.
- Note that in an example like i=0;Until[i>10,tot+=f[i];i++], the roles of ; and , are reversed relative to C-like programming languages.
Examples
open allclose allApplications (2)
Wolfram Research (2022), Until, Wolfram Language function, https://reference.wolfram.com/language/ref/Until.html.
Text
Wolfram Research (2022), Until, Wolfram Language function, https://reference.wolfram.com/language/ref/Until.html.
CMS
Wolfram Language. 2022. "Until." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Until.html.
APA
Wolfram Language. (2022). Until. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Until.html