Skip to main content

and

Function and 

Source
pub fn and(lhs: Expression, rhs: Expression) -> Expression
Expand description

Create a new Binary using the And operator.

ยงExample usage

let xs = BoolArray::from_iter(vec![true, false, true]);
let result = xs.to_array().apply(&and(root(), lit(true))).unwrap();

assert_eq!(
    result.to_bool().to_bit_buffer(),
    BoolArray::from_iter(vec![true, false, true]).to_bit_buffer(),
);