android - How to log inside Kotlin's filter function? -


using kotlin filter list

var datalist: list<datatype> val list = datalist.filter {it.id == currentfilterid} 

would put in log debug data

val list = datalist.filter {                 log.d(tag, "$it,  currentfilterid: $currentfilterid)                 it.postid == currentpostfilterid             } 

how put in multiple lines of statements inside filter function?

have tried that? work properly.

val list = datalist.filter {      log.d("tag", " ... ")      it.postid == currentpostfilterid } 

Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -