Stdle #96 · slices · 2026-09-10
What does this Zig snippet output?
A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
const std = @import("std");pub fn main() void { const arr = [_]u8{ 3, 1, 4, 1, 5 }; std.debug.print("{d}\n", .{std.mem.min(u8, &arr)}); std.debug.print("{d}\n", .{std.mem.max(u8, &arr)});}Slices