title: How to log inside Kotlin's filter function?
body: <p>Using Kotlin to filter a list</p>
  
  <pre><code>var datalist: List&lt;DataType&gt;
  val list = datalist.filter {it.Id == currentFilterId}
  </code></pre>
  
  <p>would like to put in some log to debug the data</p>
  
  <pre><code>val list = datalist.filter {
                  Log.d(TAG, "$it,  currentFilterId: $currentFilterId)
                  it.postId == currentPostFilterId
              }
  </code></pre>
  
  <p>how to put in multiple lines of statements inside the filter function?</p>