Skip to main content

lt_eq

Function lt_eq 

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

Create a new Binary using the Lte operator.

ยงExample usage

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

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