examples:
let a1 = [[1,2,3],[4,5,6]] //-> [5,7,9]
let a2 = [[1,2,3],[4,5,6],[7,8,9]] //-> [12,15,18]
let a3 = [[1,2,3,4],[2,3,4,5],[3,4,5,6],[4,5,6,7]] //-> [10,14,18,22]
I thought I can do this easily but now I can't think straight anymore. :-)
thank you.