<Improving Time Efficiency on two custom List in K...
# stackoverflow
u
Improving Time Efficiency on two custom List in KOTLIN There are two lists: val listA:List val listB:List data class Amodel(val id:Int,var isUsed:Boolean=false) Need to update listA isUsed =true based on the int id of the listB What I'm doing now: listB.foreach(){ //here i'm updating but it's taking too much time w.r.t time efficiency. } any GOOD solution.