Mastodon Feed: Post

Mastodon Feed

jsonstein@masto.deoan.org ("Jeff Sonstein") wrote:

- there are two safe types of iteration: leading test and trailing test.

— leading test iteration (may happen 0 times):

while (condition) {
do something;
}

— trailing test iteration (always happens at least once):

repeat {
do something;
} until (condition);

or

do {
something;
} while (condition);

3/5