polars_utils/
select.rs

1#[cfg(feature = "nightly")]
2pub fn select_unpredictable<T>(cond: bool, true_val: T, false_val: T) -> T {
3    cond.select_unpredictable(true_val, false_val)
4}
5
6#[cfg(not(feature = "nightly"))]
7pub fn select_unpredictable<T>(cond: bool, true_val: T, false_val: T) -> T {
8    if cond { true_val } else { false_val }
9}