title: Kotlin with-statement as an expression
body: <p>We can do</p>
  
  <pre><code>val obj = Obj()
  with (obj) {
      objMethod1()
      objMethod2()
  }
  </code></pre>
  
  <p>But is there a way to do this?</p>
  
  <pre><code>val obj = with(Obj()) {
      objMethod1()
      objMethod2()
  }
  </code></pre>
  
  <p>To solve a common case where you create an object and call a few methods on it to initialise its state.</p>