title: Is there a zero-overhead consuming iterator?
body: <p>I often find myself writing code like:</p>
  
  <pre><code>myvec.iter().map(|x| some_operation(x)).count()
  </code></pre>
  
  <p>The invocation of <code>count</code> triggers the iterator chain to be consumed, but also produces as non-unit result which is undesired.</p>
  
  <p>I am looking for something like </p>
  
  <pre><code>myvec.iter().map(|x| some_operation(x)).consume()
  </code></pre>
  
  <p>which should be equivalent to</p>
  
  <pre><code>for _ in myvec.iter().map(|x| some_operation(x)) {}
  </code></pre>