sumByIndexes

fun Iterable<List<Int>>.sumByIndexes(): List<Int>

Sums all Lists of integers into single one by indexes (i.e. all the numbers with the same index are always summed together). If the lists have different lengths, the final list has length corresponding to the shortest list in this iterable.

Sources

Katlib source
Link copied to clipboard