pub fn flatten_enumerate(
matrix: AbstractLiteral<Literal>,
) -> impl Iterator<Item = (Vec<Literal>, Literal)>
Expand description
Flattens a multi-dimensional matrix literal into an iterator over (indices,element).
ยงPanics
-
If the number or type of elements in each dimension is inconsistent.
-
If
matrix
is not a matrix. -
If any dimensions in the matrix are not finite or enumerable with
Domain::values
. However, index domains in the formint(i..)
are supported.