If I have an array of things, what is the idiomatic/easiest way to turn it into an array of optionals?
const std = @import("std");
test "optional_arrays" {
const arr = [_]i8{ 0, 3, 4};
var arr_maybies:[3]?i8 = .{ null, null, null };
// ? this doesn't work
std.mem.copyForwards(?i8, &arr_maybies, &arr);
try std.testing.expectEqual(arr_maybies[1].?, arr[1]);
}