std.search [core] std.search.binary_search pub fn binary_search(xs: List[int], x: int) -> int ! {none} — The index of some element equal to x, or none when xs holds none. std.search.binary_search_by pub fn binary_search_by(xs: List[int], by: fn(int) -> cmp.Ordering) -> int ! {none} — The index of the one element for which by answers Equal, or none. std.search.lower_bound pub fn lower_bound(xs: List[int], x: int) -> int — The first index at which x could be inserted keeping xs ascending — the index of the first element at or above x, and len(xs) when every element is below it. std.search.upper_bound pub fn upper_bound(xs: List[int], x: int) -> int — The last index at which x could be inserted keeping xs ascending — the index of the first element strictly above x. std.search.equal_range pub fn equal_range(xs: List[int], x: int) -> (int, int) — The half-open index range (first, last) of the elements equal to x — (lower_bound(xs, x), upper_bound(xs, x)). std.search.min_of pub fn min_of(xs: List[int]) -> int ! {none} — The least element of xs, or none when xs is empty. std.search.max_of pub fn max_of(xs: List[int]) -> int ! {none} — The greatest element of xs, or none when xs is empty. std.search.min_index pub fn min_index(xs: List[int]) -> int ! {none} — The index of the least element, or none when xs is empty. std.search.max_index pub fn max_index(xs: List[int]) -> int ! {none} — The index of the greatest element, or none when xs is empty. std.search.sum pub fn sum(xs: List[int]) -> int — The sum of xs; 0 for an empty list. std.search.product pub fn product(xs: List[int]) -> int — The product of xs; 1 for an empty list.