Stdle #137 · simd · 2026-10-21
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 v: @Vector(4, i32) = .{ 3, -1, 4, -2 }; const max = @reduce(.Max, v); const min = @reduce(.Min, v); std.debug.print("{d}\n", .{max}); std.debug.print("{d}\n", .{min});}SIMD