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