title: Kotlin With If Not Null
body: <p>What would be the most concise way of using <code>with</code> iff a <code>var</code> is not <code>null</code>?</p>
  
  <p>The best I could come up with is:</p>
  
  <pre><code>arg?.let { with(it) {
  
  }}
  </code></pre>