Function indexOfAny [src]
Linear search for the index of any value in the provided list inside a slice.
Returns null if no values are found.
Prototype
pub fn indexOfAny(comptime T: type, slice: []const T, values: []const T) ?usize
Parameters
T: type
slice: []const T
values: []const T
Source
pub fn indexOfAny(comptime T: type, slice: []const T, values: []const T) ?usize {
return indexOfAnyPos(T, slice, 0, values);
}