checked_add

Function checked_add 

Source
pub fn checked_add(lhs: ExprRef, rhs: ExprRef) -> ExprRef
Expand description

Create a new BinaryExpr using the Add operator.

ยงExample usage

let xs = buffer![1, 2, 3].into_array();
let result = checked_add(root(), lit(5))
    .evaluate(&Scope::new(xs.to_array()))
    .unwrap();

assert_eq!(
    &result.into_arrow_preferred().unwrap(),
    &buffer![6, 7, 8]
        .into_array()
        .into_arrow_preferred()
        .unwrap()
);