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 = xs.apply(&checked_add(root(), lit(5))).unwrap();
assert_eq!(
&result.into_arrow_preferred().unwrap(),
&buffer![6, 7, 8]
.into_array()
.into_arrow_preferred()
.unwrap()
);