Ali
07/04/2022, 2:52 PMlistOf(Test("t", listOf(1,2,3,4,5)), Test("e", listOf(6,7,8,9,10)))
Want to know if there is any way to update the 2nd item list based on some condition without iterating through the list item by item. My list is big in size.
I am currently doing it by this way but seems not efficient to iterate thorough each item
list.map{item-> item.map{ if(condition) update_list else it}}