Used when a single instance is likely to occur and be important to detect quickly (in a sufficiently large integer vector).
An integer vector.
A (single) integer. That which is to be compared.
Booleans, whether or not the comparison is greater than, less than, or equal to.
Only gt
and lt
are mutually exclusive. If all FALSE
, find the first instance
where none are equal (i.e. does x
have more than one distinct value).