Department numbers: Difference between revisions

m
→‎Creating and using an iterator: Adjusted Zig formatting
(Add Zig solution)
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 });
" {d} {d} {d}\n",
.{ solution.police, solution.sanitation, solution.fire },
);
}
}</syntaxhighlight>
Line 4,904 ⟶ 4,907:
}
};</syntaxhighlight>
 
 
=={{header|zkl}}==
59

edits