Function polars_arrow::compute::boolean_kleene::or
source · pub fn or(lhs: &BooleanArray, rhs: &BooleanArray) -> BooleanArray
Available on crate feature
compute_boolean_kleene
only.Expand description
Logical ‘or’ operation on two arrays with Kleene logic
§Panics
This function panics iff the arrays have a different length
§Example
use polars_arrow::array::BooleanArray;
use polars_arrow::compute::boolean_kleene::or;
let a = BooleanArray::from(&[Some(true), Some(false), None]);
let b = BooleanArray::from(&[None, None, None]);
let or_ab = or(&a, &b);
assert_eq!(or_ab, BooleanArray::from(&[Some(true), None, None]));