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: typeslice: []const Tvalues: []const T

Source

pub fn indexOfAny(comptime T: type, slice: []const T, values: []const T) ?usize { return indexOfAnyPos(T, slice, 0, values); }