GetDiagonalsλ() lists values that lie in the diagonals of an array. Direction depends on optional arguments: Direction and Reverse
Direction Reverse Result
1 FALSE ↙, start top left, across then down
-1 FALSE ↘, start top right, across then down
1 TRUE ↗, start top left, down then across
-1 TRUE ↖, start top right, down then across
GetDiagonalsλ( Array, [Direction], [Reverse])
Array
(Required) Array to list values in diagonals.
Direction
(Optional) Diagonal direction. Defaut=1. See DESCRIPTION:
Reverse
(Optional) Reverse results. Default=FALSE, See DESCRIPTION:.
Below we see how each of the optional arguments combine to control the diagonal direction.