Advertisement
Guest User

Untitled

a guest
Apr 7th, 2021
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.16 KB | None | 0 0
  1. data class Item(val id:Int,var isChecked:Boolean)
  2.  
  3. val list = listOf(Item(1,true),Item(2,true))
  4.  
  5.  
  6.  
  7. val newList = list.forEach{
  8.     it.isCheched=false
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement