Skip to main content

min_elements

Function min_elements 

Source
pub fn min_elements(view: &V2TypedArrayView) -> Option<(u64, NativeKind)>
Expand description

Compute the minimum element of a numeric v2 typed array.

Empty arrays return:

  • F64 input โ†’ (NaN.to_bits(), Float64)
  • I64/I32 input โ†’ (0, Bool) (the ยง2.7 null/unit sentinel)
  • Bool input โ†’ None