Array flattening
Uses
-
-
Any array can be flattened into a one-dimensional array containing all its elements:
The order of the elements in the flattened version is the one obtained by iterating over the last index in the innermost loop.
For one-dimensional arrays, flattening changes nothing:
For literal array terms, flattening is performed in Pharo:
Examples