Data update
This commit is contained in:
parent
35bcdeebf8
commit
74c69a0df6
2427 changed files with 31826 additions and 3468 deletions
|
|
@ -0,0 +1,6 @@
|
|||
a$[] = [ "a" "b" "c" ]
|
||||
b$[] = [ "A" "B" "C" ]
|
||||
c[] = [ 1 2 3 ]
|
||||
for i = 1 to 3
|
||||
print a$[i] & b$[i] & c[i]
|
||||
.
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
const std = @import("std");
|
||||
|
||||
const arr1 = [_]u8{ 'a', 'b', 'c' };
|
||||
const arr2 = [_]u8{ 'A', 'B', 'C' };
|
||||
const arr3 = [_]u8{ '1', '2', '3' };
|
||||
|
||||
pub fn main() std.fs.File.WriteError!void {
|
||||
const stdout = std.io.getStdOut();
|
||||
const stdout_w = stdout.writer();
|
||||
const n = std.math.min3(arr1.len, arr2.len, arr3.len);
|
||||
for (arr1[0..n]) |arr1_e, i| {
|
||||
try stdout_w.print("{c} {c} {c}\n", .{ arr1_e, arr2[i], arr3[i] });
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
const std = @import("std");
|
||||
|
||||
const arr1 = [_]u8{ 'a', 'b', 'c' };
|
||||
const arr2 = [_]u8{ 'A', 'B', 'C' };
|
||||
const arr3 = [_]u8{ '1', '2', '3' };
|
||||
|
||||
pub fn main() std.fs.File.WriteError!void {
|
||||
const stdout = std.io.getStdOut();
|
||||
const stdout_w = stdout.writer();
|
||||
const n = @min(arr1.len, arr2.len, arr3.len);
|
||||
for (arr1[0..n], arr2[0..n], arr3[0..n]) |arr1_e, arr2_e, arr3_e| {
|
||||
try stdout_w.print("{c} {c} {c}\n", .{ arr1_e, arr2_e, arr3_e });
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
const std = @import("std");
|
||||
|
||||
const arr1 = [_]u8{ 'a', 'b', 'c' };
|
||||
const arr2 = [_]u8{ 'A', 'B', 'C' };
|
||||
const arr3 = [_]u8{ '1', '2', '3' };
|
||||
|
||||
pub fn main() std.fs.File.WriteError!void {
|
||||
const stdout = std.io.getStdOut();
|
||||
const stdout_w = stdout.writer();
|
||||
for (arr1) |arr1_e, i| {
|
||||
try stdout_w.print("{c} {c} {c}\n", .{ arr1_e, arr2[i], arr3[i] });
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
const std = @import("std");
|
||||
|
||||
const arr1 = [_]u8{ 'a', 'b', 'c' };
|
||||
const arr2 = [_]u8{ 'A', 'B', 'C' };
|
||||
const arr3 = [_]u8{ '1', '2', '3' };
|
||||
|
||||
pub fn main() std.fs.File.WriteError!void {
|
||||
const stdout = std.io.getStdOut();
|
||||
const stdout_w = stdout.writer();
|
||||
for (arr1, 0..) |arr1_e, i| {
|
||||
try stdout_w.print("{c} {c} {c}\n", .{ arr1_e, arr2[i], arr3[i] });
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
const std = @import("std");
|
||||
|
||||
const arr1 = [_]u8{ 'a', 'b', 'c' };
|
||||
const arr2 = [_]u8{ 'A', 'B', 'C' };
|
||||
const arr3 = [_]u8{ '1', '2', '3' };
|
||||
|
||||
pub fn main() std.fs.File.WriteError!void {
|
||||
const stdout = std.io.getStdOut();
|
||||
const stdout_w = stdout.writer();
|
||||
for (arr1, arr2, arr3) |arr1_e, arr2_e, arr3_e| {
|
||||
try stdout_w.print("{c} {c} {c}\n", .{ arr1_e, arr2_e, arr3_e });
|
||||
}
|
||||
}
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
const std = @import("std");
|
||||
|
||||
const a1: []const u8 = &[_]u8{ 'a', 'b', 'c' };
|
||||
const a2: []const u8 = &[_]u8{ 'A', 'B', 'C' };
|
||||
const a3: []const u8 = &[_]u8{ '1', '2', '3' };
|
||||
|
||||
pub fn main() !void {
|
||||
for (a1) |_, i|
|
||||
try std.io.getStdOut().writer().print("{c} {c} {d}\n", .{ a1[i], a2[i], a3[i] });
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue