pub fn enumerate<I: IntoExpression>(
expr: I,
) -> Enumerate<I::IntoExpr, <I::Shape as Shape>::Dims>Expand description
Creates an expression that enumerates the elements of the argument.
ยงExamples
use mdarray::{expr, grid, Expression};
let g = grid![1, 2, 3];
assert_eq!(expr::enumerate(g).eval(), expr![([0], 1), ([1], 2), ([2], 3)]);