pub trait TryConcat {
// Required method
fn try_concat(self) -> Result<ArrayObject, ArrayObjectError>;
}Expand description
Concat ArrayObjects of the same type, size and shape.
use array_object::{ArrayObject, TryConcat};
let mut objs = vec![];
for _ in 0..8 {
let temp: ArrayObject = vec![0i32, 1, 2, 3].into();
objs.push(temp);
}
let obj = objs.try_concat().unwrap();