semoro
10/14/2016, 4:51 PMlateinit
class YourClass{
lateinit var items: MutableList<Int>
fun some(){
items = mutableListOf(1,2,3,4)
}
fun workWithItems(){
if(items.first() == 1) { // No ?. or !!. it always check property to be initialized at this moment, like !!.
}
}
}