pub fn and(
lhs: &BooleanArray,
rhs: &BooleanArray
) -> Result<BooleanArray, ArrowError>
This is supported on crate feature
compute_boolean_kleene
only.Expand description
Logical ‘and’ operation on two arrays with Kleene logic
Errors
This function errors if the operands have different lengths.
Example
use arrow2::array::BooleanArray;
use arrow2::compute::boolean_kleene::and;
let a = BooleanArray::from(&[Some(true), Some(false), None]);
let b = BooleanArray::from(&[None, None, None]);
let and_ab = and(&a, &b)?;
assert_eq!(and_ab, BooleanArray::from(&[None, Some(false), None]));