``` val input: List<List<Double>> = ...
# announcements
a
Copy code
val input: List<List<Double>> = 
 [[1, 2, 3 (....)],
  [4, 5, 6, (...)],
  [7, 8, 9, (...)]] 
val expected= [12, 15, 18, (...)]
Trying to find an elegant way to sum elements of a list of list of numbers by index (i.e. "downwards")🤔
c
looks like you need function with income predicate and usage of Fold https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/fold.html