Function numbers_rus::single::single_vector::single_vector::vector_range
source · pub fn vector_range(vector: Vec<i128>) -> i128Expand description
Calculates the range of a given vector of 128-bit signed integers, which is the difference between the maximum and minimum values in the vector.
Arguments
vector- A vector of signed 128-bit integers
Returns
- i128 - The range of the input vector, calculated as the difference between the maximum and minimum values