1 // @has issue_31899/index.html
2 // @has - 'Make this line a bit longer.'
3 // @!has - 'rust rust-example-rendered'
4 // @!has - 'use ndarray::arr2'
5 // @!has - 'prohibited'
7 /// A tuple or fixed size array that can be used to index an array.
8 /// Make this line a bit longer.
11 /// use ndarray::arr2;
13 /// let mut a = arr2(&[[0, 1], [0, 0]]);
15 /// assert_eq!(a[[0, 1]], 1);
16 /// assert_eq!(a[[1, 1]], 1);
19 /// **Note** the blanket implementation that's not visible in rustdoc:
20 /// `impl<D> NdIndex for D where D: Dimension { ... }`