cumsum

fun List<Int>.cumsum(): List<Int>

Cumulative sum of Ints in the List.

Not to be confused with sum.