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