Created
November 15, 2017 21:34
-
-
Save mikeyhew/9f7f69d254282865e35a21d0aebff333 to your computer and use it in GitHub Desktop.
Loop parameters/arguments in Rust (potential language feature)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let gcd_42_55 = loop(a = 42, b = 45) { | |
if y == 0 { | |
break x | |
} else { | |
continue(b, a % b) | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment