title: Kotlin lazy slice array
body: <p>I need to iterate part of an array backwards. I'd like to do that "functionally" as it's more comprehensible, like that</p>
  
  <pre><code>for (b in buf.sliceArray(0 until bufLimit).reversedArray()) {}
  </code></pre>
  
  <p>But both <code>sliceArray</code> and <code>reversedArray</code> are not lazy. Is there a lazy version or should I probably fall back to</p>
  
  <pre><code>for (bIdx in bufLimit - 1 downTo 0) {
      val b = buf[bIdx]
  }
  </code></pre>
  
  <p>which is more confusing and verbose?</p>