chickadee » generalized-arrays » array-diagonal

array-diagonal arrayprocedure

Returns a one-dimensional array which contains the diagonal elements of array (that is, the elements whose indices are all the same integer).