Dan O'Brien
09/07/2020, 2:19 PMkey
against list B, and then by a version
. If value in list B is higher than list A, I want to replace list A with item from list B. I think compareValuesBy
might work but I’m having trouble sorting out how to implement it fully because elements might be slightly different so I’ll need to scan the list to verify if it’s not foundnfrankel
09/07/2020, 3:04 PMzip
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/zip.html
then you can do whatever you want with the pairsDan O'Brien
09/07/2020, 5:12 PM