Improved for loops

This commit is contained in:
2026-05-22 02:52:22 +02:00
parent 960cc40886
commit b7cfa9fbe6
5 changed files with 37 additions and 12 deletions
+14
View File
@@ -91,4 +91,18 @@ pub class Application {
}
}
}
pub void loops_test() {
for (x : 0..10) {
println!("{x}");
}
for (usize i = 0; i < 10; i++) {
println!("{i}");
}
while (true) {
println!("hi");
}
}
}