pub fn trimEnd(comptime T: type, slice: []const T, values_to_strip: []const T) []const T T: typeslice: []const Tvalues_to_strip: []const T1213
1214
1215
1216
1217pub fn trimEnd(comptime T: type, slice: []const T, values_to_strip: []const T) []const T {
var end: usize = slice.len;
while (end > 0 and findScalar(T, values_to_strip, slice[end - 1]) != null) : (end -= 1) {}
return slice[0..end];
}
Remove a set of values from the end of a slice.