Skip to main content

lt

Function lt 

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

Create a new Binary using the Lt operator.

ยงExample usage

let xs = PrimitiveArray::new(buffer![1i32, 2i32, 3i32], Validity::NonNullable);
let result = xs.to_array().apply(&lt(root(), lit(3))).unwrap();

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