Skip to main content

count_initial_combinations

Function count_initial_combinations 

Source
pub fn count_initial_combinations(scale_min: i32, scale_max: i32) -> i32
Expand description

Count first set of integers

The first set of integers that can be formed given a range defined by scale_min and scale_max. This function calculates the number of unique pairs (i, j) where i and j are integers within the specified range, and i <= j.

§Arguments

  • scale_min - The minimum value of the scale.
  • scale_max - The maximum value of the scale.

§Returns

The total number of unique combinations of integers within the specified range.