feat: move for.zig

This commit is contained in:
2022-08-30 00:12:40 +08:00
parent 4229bcf563
commit 05e46fdbbc

8
single_files/for.zig Normal file
View File

@@ -0,0 +1,8 @@
const print = @import("std").debug.print;
pub fn main() void {
const string = [_]u8{ 'a', 'b', 'c' };
for (string) |character, index| {
print("{} - {}\n", .{index, character});
}
}