title: How can I create an iterator that repeats multiple values infinitely?
body: <p>Using <a href="http://doc.rust-lang.org/std/iter/fn.repeat.html" rel="noreferrer">repeat</a> I can create an iterator which repeats one element. But how can I repeat multiple values infinitely?
  For example:</p>
  
  <pre><code>let repeat_1 = repeat(1); // 1, 1, 1, 1, 1, 1, 1, 1, 1, ...
  let repeat_123 = repeat([1, 2, 3]); // 1, 2, 3, 1, 2, 3, 1, 2, ... // or similar
  </code></pre>