std1.0.0-beta-7 SafeC docs

std :: sys

Function std::sys_bsearch

#include <std/sys.h> source

generic<T> ?unsigned long sys_bsearch(
    const &T key,
    []const T items,
    fn int(const &T, const &T) cmp,
)

Binary search of sorted items; the index of an element equal to key, or null.