Programming-Idioms

History of Idiom 78 > diff from v65 to v66

Edit summary for version 66 :
Restored version 64

Version 65

2019-09-03, 15:34:26

Version 66

2019-09-03, 17:28:21

Idiom #78 "do while" loop

Execute a block once, then execute it again as long as boolean condition c is true.

Idiom #78 "do while" loop

Execute a block once, then execute it again as long as boolean condition c is true.

Extra Keywords
until
Extra Keywords
until
Code
repeat
	someThing()
	someOtherThing()
until false
Code
repeat
	someThing()
	someOtherThing()
until not c
Comments bubble
The block code is not repeated in the source.
Comments bubble
The block code is not repeated in the source.
Demo URL
http://codepad.org/ODarWfIW
Demo URL
http://codepad.org/ODarWfIW