The lambda expression is unused : <p>While using Android's <code>Switch</code>, I was attaching a <code>setOnCheckedChangeListener</code> to it and got this warning </p>

<blockquote>
  <p>The lambda expression is unused. If you mean a block, you can use 'run {...}'</p>
</blockquote>

<p>Here' the code snippet:</p>

<pre><code>switchAction.setOnCheckedChangeListener({
    _, isChecked -&gt;
    {
        preferences.userStatus = isChecked
        switchToggleVisibility(isChecked)
        if (isChecked) {
            fetchStats()
            getOrders()
        } else {
            releaseOrder()
        }
    }
})
</code></pre>

<p>Using <code>run</code> does fix this warning, but does anyone know the cause behind this? How is the lambda expression unused?</p>
