Returns slice of haystack before and after first occurrence needle, or
null if not found.
See also:
cutsplitScalartokenizeScalarpub fn cutScalar(comptime T: type, haystack: []const T, needle: T) ?struct
pub fn cutScalar(comptime T: type, haystack: []const T, needle: T) ?struct { []const T, []const T } {
const index = findScalar(T, haystack, needle) orelse return null;
return .{ haystack[0..index], haystack[index + 1 ..] };
}