cumulativeSum

fun <T> Flow<T>.cumulativeSum(group: GroupOps<T>): Flow<T>(source)

Return a Flow of a cumulative sum of elements in the flow. The operation is intermediate and stateful.