Running the following code...
let z: Array1<u32> = arr1(&[1,0,1]) - arr1(&[0,1,0]);
...causes a panic with attempt to subtract with overflow'
Would it be possible to get support for something such as
let z: Array1<u32> = arr1(&[1,0,1]).checked_sub(arr1(&[0,1,0])).unwrap();
or is there an alternative approach one can suggest?
Running the following code...
...causes a panic with
attempt to subtract with overflow'Would it be possible to get support for something such as
or is there an alternative approach one can suggest?