pub fn and(lhs: ExprRef, rhs: ExprRef) -> ExprRefExpand description
Create a new BinaryExpr using the And operator.
ยงExample usage
use vortex_array::arrays::BoolArray;
use vortex_array::{IntoArray, ToCanonical};
use vortex_expr::{and, root, lit, Scope};
let xs = BoolArray::from_iter(vec![true, false, true]);
let result = and(root(), lit(true)).evaluate(&Scope::new(xs.to_array())).unwrap();
assert_eq!(
result.to_bool().unwrap().boolean_buffer(),
BoolArray::from_iter(vec![true, false, true]).boolean_buffer(),
);