title: Lazy list in kotlin?
body: <p>How can I achieve in a simple way a Lazy List in Kotlin? (For example, integers lazy list).
  I've been seeking official documentation, I've been googling for that without consistent results. Maybe the best tutorial I've found is <a href="http://ndpar.blogspot.fr/2011/02/lazy-lists-in-groovy.html" rel="nofollow noreferrer">here</a>, but I wonder if there is a more Kotlin idiomatic way for doing that.</p>
  <p>I've found the following on Kotlin's official blog, though I was unable to get an item, with integers[3] for example</p>
  <pre><code>var i = 0
  integers = iterate{i++}
  
  integers[3] // does not work
  integers drop 3 // works
  </code></pre>