Kotlin aggregate consecutive list elements

后端 未结 0 1606
甜味超标
甜味超标 2020-12-04 23:06

I\'d like to sum up consecutive numbers in a Kotlin list. If the list has a 0 then it should start summing up the numbers after 0. The result would be a list of sums. Basica

相关标签:
回答
  • 消灭零回复
提交回复
热议问题