leo/compiler/tests/statements/iteration_basic.leo

8 lines
104 B
Plaintext
Raw Normal View History

function main() -> u32 {
2020-07-17 22:59:18 +03:00
let mut x = 4u32;
for i in 0..3 {
x -= 1;
}
2020-07-17 22:59:18 +03:00
return x
}