Fuzion Logo
fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

Idiom # 42: Continue outer loop

See programming-idioms.org:

Code

There is no continue or goto in Fuzion, so we have to help ourselves differently. In this case, we can let the inner loop terminate with an until condition that checks equality of v and u. If an equal pair is found, the loop terminates successfully. In this case, we do not want the remaining code in the outer loop to be executed, so we negate the value produced by the loop using ! and use it as the condition in an if:

Running Example