extendr_api::prelude

Function indices_of

Source
pub fn indices_of<S, D>(array: &ArrayBase<S, D>) -> Indices<D>
where S: Data, D: Dimension,
Expand description

Return an iterable of the indices of the passed-in array.

Note: prefer higher order methods, arithmetic operations and non-indexed iteration before using indices.