ndarray
ndarray copied to clipboard
ndarray::iter::Iter doesn't implement Debug
The title says it. What I was trying to do when I discovered this was print a zip of a range and an ndarray.
Like so:
let foo = ndarray::Array1::<f64>::zeros(100);
println!("{:?}", std::iter::zip(0..foo.len(), &foo);
I never thought of printing an iterator before! Anyway, as per the official documentation:
fmt::Debug implementations should be implemented for all public types.
So, yeah, I guess we should do it.
I'm not very experienced with Rust projects, but I'd like to try to implement this. Is Iter found in the iterators/mod.rs file?
Yes, probably. Just clone the project and test, you will see.
Fixed in #1353, thanks and thanks @nilgoyette for mentoring