reshape
reshape(x, sizes)
Reshape a multi dimensional array to fit the specified dimensions.
Try it yourself:
$1 | reshape([1, 2, 3, 4, 5, 6], [2, 3])
| |
$2 | reshape([[1, 2], [3, 4]], [1, 4])
| |
$3 | reshape([[1, 2], [3, 4]], [4])
| |
$4 | reshape([1, 2, 3, 4], [-1, 2])
|