Array.flatten()

Array.flatten()

Flatten the array into a single dimensional array.

MAGICSQUARE(3).flatten()

2
7
6
9
5
1
4
3
8