1 2 3 4 5 6 7 8 9 10 11
extern crate ndarray; use ndarray::Array; #[test] fn char_array() { // test compilation & basics of non-numerical array let cc = Array::from_iter("alphabet".chars()).reshape((4, 2)); assert!(cc.subview(1, 0) == Array::from_iter("apae".chars())); }