Department numbers: Difference between revisions
m
→Creating and using an iterator: Adjusted Zig formatting
Recombinant (talk | contribs) (Add Zig solution) |
Recombinant (talk | contribs) m (→Creating and using an iterator: Adjusted Zig formatting) |
||
Line 4,869:
var it = SolutionIterator{};
while (it.next()) |solution| {
_ = try stdout.print(
" {d} {d} {d}\n",
.{ solution.police, solution.sanitation, solution.fire },
);
}
}</syntaxhighlight>
Line 4,904 ⟶ 4,907:
}
};</syntaxhighlight>
=={{header|zkl}}==
|