pub inline fn iota(comptime T: type, comptime len: usize) @Vector(len, T)
pub inline fn iota(comptime T: type, comptime len: usize) @Vector(len, T) { comptime { var out: [len]T = undefined; for (&out, 0..) |*element, i| { element.* = switch (@typeInfo(T)) { .int => @as(T, @intCast(i)), .float => @as(T, @floatFromInt(i)), else => @compileError("Can't use type " ++ @typeName(T) ++ " in iota."), }; } return @as(@Vector(len, T), out); } }