Zig 0.17.0-dev (Split by item)

This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig library itself.

findAny

Linear search for the index of any value in the provided list inside a slice. Returns null if no values are found.

mem.findAny
pub fn findAny(comptime T: type, slice: []const T, values: []const T) ?usize

File

lib/std/mem.zig:1333

Code

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