title: How to access this in Kotlin sequence generator?
body: <p>I'm using sequence to produce a <code>Iterable&lt;T&gt;</code> as a member function in Kotlin, but in the sequence lambda <code>this</code> refers to <code>SequenceScope&lt;T&gt;</code>. I want to access <code>this</code>, how do I do this?</p>
  <pre><code>class A{
  fun getSomething() = sequence {
  yield(this)// this means Scope, I want to return this object
  }
  }
  </code></pre>