datafusion_python::datafusion_common::utils

Function is_sorted

Source
pub fn is_sorted<T>(sequence: impl IntoIterator<Item = T>) -> bool
where T: Borrow<usize>,
Expand description

Checks whether the given index sequence is monotonically non-decreasing.