Add solutions
This commit is contained in:
parent
7417f01d5d
commit
b056b6ad81
96 changed files with 229 additions and 166 deletions
|
|
@ -82,7 +82,7 @@ fn printSequence(my_seq: anytype) void {
|
|||
print("Array:", .{});
|
||||
|
||||
// Loop through the items in my_seq.
|
||||
for (???) |s| {
|
||||
for (my_seq) |s| {
|
||||
print("{}", .{s});
|
||||
}
|
||||
},
|
||||
|
|
@ -94,7 +94,7 @@ fn printSequence(my_seq: anytype) void {
|
|||
// Loop through the items in my_seq until we hit the
|
||||
// sentinel value.
|
||||
var i: usize = 0;
|
||||
while (??? != my_sentinel) {
|
||||
while (my_seq[i] != my_sentinel) {
|
||||
print("{}", .{my_seq[i]});
|
||||
i += 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue