Function or
Source pub fn or(lhs: Expression, rhs: Expression) -> Expression
Expand description
Create a new Binary using the Or operator.
ยงExample usage
let xs = BoolArray::from_iter(vec![true, false, true]);
let result = xs.to_array().apply(&or(root(), lit(false))).unwrap();
assert_eq!(
result.to_bool().to_bit_buffer(),
BoolArray::from_iter(vec![true, false, true]).to_bit_buffer(),
);