Sam Garfinkel
08/06/2020, 6:37 PMfold
with a mutable list of Pairs
.nanodeath
08/06/2020, 6:41 PMnanodeath
08/06/2020, 6:41 PMphldavies
08/06/2020, 6:56 PMscan
or scanReduce
what you’re after?
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/scan.html
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/scan-reduce.html
e.g. https://pl.kotl.in/yIdPaEjIcSam Garfinkel
08/06/2020, 6:57 PM