checked_add

Function checked_add 

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

Create a new Binary using the Add operator.

ยงExample usage

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

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