fn vectorLength(comptime VectorType: type) comptime_int
fn vectorLength(comptime VectorType: type) comptime_int { return switch (@typeInfo(VectorType)) { .vector => |info| info.len, .array => |info| info.len, else => @compileError("Invalid type " ++ @typeName(VectorType)), }; }