The OpenD Programming Language

SortedRange.contains

Returns true if and only if value can be found in range, which is assumed to be sorted. Performs O(log(r.length)) evaluations of pred.

struct SortedRange(Range, alias pred = "a < b", SortedRangeOptions opt = SortedRangeOptions.assumeSorted)
bool
contains
(
V
)
()
if ()

Meta