feat: move for.zig
This commit is contained in:
8
single_files/for.zig
Normal file
8
single_files/for.zig
Normal 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});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user