0

Diagonals of an Array
code-golf array-manipulation
The k-th diagonal of a two-dimensional array is a list of all elements in positions (a,a+k). Your task is to output all of the diagonals.
For example, the diagonals of
[[3,1,4,1],[5,9,2,6],[5,3,5,8]]
are:
[[1],[4,6],[1,2,8],[3,9,5],[5,3],[...