title: Nested forEach, How to distinguish between inner and outer loop parameters?
body: <p>In Kotlin, if you want to use the element of the <code>forEach</code>, you can use the <code>it</code> keyword. So now I wonder that what should I do if I have a <code>forEach</code> inside <code>forEach</code> like that:</p>
  
  <pre><code>list.forEach {
      val parent = it
      it.forEach {
          // `it` now become the element of the parent.
      }
  }
  </code></pre>
  
  <p>I think that defines a new variable only for the naming convention be so stupid. Have any other solution for this problem?</p>