mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-20 12:44:59 -07:00
while; range is now for; remove ++ and --
This commit is contained in:
+4
-4
@@ -21,13 +21,13 @@ main :: proc() {
|
||||
msg := "Hellope";
|
||||
list := []int{1, 4, 7, 3, 7, 2, 1};
|
||||
|
||||
range value : msg {
|
||||
for value : msg {
|
||||
fmt.println(value);
|
||||
}
|
||||
range value : list {
|
||||
for value : list {
|
||||
fmt.println(value);
|
||||
}
|
||||
range x : 0 ..< 5 {
|
||||
fmt.println(x);
|
||||
for val, idx : 12 ..< 17 {
|
||||
fmt.println(val, idx);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user