accumulate

fun <T> accumulate(accumulator: Pair<List<T>, List<T>>, newValue: List<T>): Pair<List<T>, List<T>>

Accumulates a Pair and a List to a new Pair of Lists

Parameters

accumulator

Pair of two Lists

newValue

new List to accumulate