Skip to main content

min

Function min 

pub fn min<T>(
    array: &PrimitiveArray<T>,
) -> Option<<T as ArrowPrimitiveType>::Native>
Expand description

Returns the minimum value in the array, according to the natural order.

Floating point values are compared using IEEE 754 totalOrder (see f64::total_cmp): a positive NaN is greater than every non-NaN value, including positive infinity, and a negative NaN is less than every non-NaN value, including negative infinity.

ยงExample

let array = Int32Array::from(vec![8, 2, 4]);
let result = min(&array);
assert_eq!(result, Some(2));