pub fn exception_idx(&self, v: &f64) -> Option<usize> {
        self.vals_
            .iter()
            .position(|x| matches!(nan_safe_compare(x, v), Ordering::Equal))
    }
// Get the index of an exception, if it's None
// we know the exception does not exist.
// This also works for Missing values.
// This NA can be passed as a possible exception.
Get the index of an exception, if it's None
we know the exception does not exist.
This also works for Missing values.
This NA can be passed as a possible exception.
Get the index of an exception if it ' s None we know the exception does not exist . This also works for Missing values . This NA can be passed as a possible exception .
pub fn exception_idx(&self, v: &f64) -> Option<usize> {
        self.vals_
            .iter()
            .position(|x| matches!(nan_safe_compare(x, v), Ordering::Equal))
    }
pub fn exception_idx ( & self , v : & f64 ) -> Option < usize > { self . vals_ . iter ( ) . position ( | x | matches ! ( nan_safe_compare ( x v ) Ordering Equal ) ) }
Get the index of an exception, if it's None
we know the exception does not exist.
Get the index of an exception if it ' s None we know the exception does not exist .
&self
v
&f64