title: Different ways of limiting the sequential ordered Stream
body: <p>Since java 11 there are several ways to limit sequential ordered Stream:</p>
  <ol>
  <li><code>Stream.iterate(0, v -&gt; v + 1).limit(size)</code></li>
  <li><code>Stream.iterate(0, v -&gt; v &lt; size, v -&gt; v + 1)</code></li>
  <li><code>Stream.iterate(0, v -&gt; v + 1).takeWhile(v -&gt; v &lt; size)</code></li>
  <li>...</li>
  </ol>
  <p>What is the best, for example, in terms of performance way to do so?</p>