Extracts the diagonals from the two-dimensional list.
The two-dimensional list.
The list of diagonal elements.
Extracts the diagonals from the two-dimensional list.