the test for index == len was missing in the mutable case
the test for index == len was missing in the mutable case

SuperFluffy/rust-ndarray,Pireax/rust-ndarray,Pireax/rust-ndarray,SuperFluffy/rust-ndarray