Skip to content

Instantly share code, notes, and snippets.

@mikeyhew
Created November 15, 2017 21:34
Show Gist options
  • Save mikeyhew/9f7f69d254282865e35a21d0aebff333 to your computer and use it in GitHub Desktop.
Save mikeyhew/9f7f69d254282865e35a21d0aebff333 to your computer and use it in GitHub Desktop.
Loop parameters/arguments in Rust (potential language feature)
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