Skip to main content

count_half_open_range_integer_endpoints

Function count_half_open_range_integer_endpoints 

Source
pub fn count_half_open_range_integer_endpoints(
    a: &Number,
    b: &Number,
) -> Option<Number>
Expand description

Integer range(a, b) is half-open [a, b); size max(0, b - a) when b > a.