title: What's an idiomatic way to print an iterator separated by spaces in Rust?
body: <p>I just want a space separated <code>String</code> of the argument variables obtained from <code>std::env::args()</code>, which I've been creating using the <code>fold</code> function like this:</p>
  
  <pre><code>std::env::args()
      .fold("".to_string(), |accum, s| accum + &amp;s + " ")
  </code></pre>
  
  <p>However this creates an extra space at the end which is unwanted. I tried using the <code>truncate</code> function, but <code>truncate</code> doesn't return a <code>String</code>, just modifies the existing <code>String</code>, and also this would require the creation of an intermediate binding in order to use the <code>String</code>'s <code>len()</code> call to define how long the truncated <code>String</code> should be (which itself would require an intermediate binding due to Rust's current lexical borrowing rules I believe!)</p>