polars-utils 0.53.0

Private utils for the Polars DataFrame library
Documentation
1
2
3
4
5
6
7
8
9
#[cfg(feature = "nightly")]
pub fn select_unpredictable<T>(cond: bool, true_val: T, false_val: T) -> T {
    core::hint::select_unpredictable(cond, true_val, false_val)
}

#[cfg(not(feature = "nightly"))]
pub fn select_unpredictable<T>(cond: bool, true_val: T, false_val: T) -> T {
    if cond { true_val } else { false_val }
}