ode>badarg</code> if <code>Iterator1</code> is empty.</p>

<h3 class="function"><a name="to_list-1">to_list/1</a></h3>
<div class="spec">
<p><tt>to_list(Iterator) -&gt; List</tt>
<ul class="definitions"><li><tt>Iterator = <a href="#type-iterator">iterator</a>(Elem)</tt></li><li><tt>List = [Elem]</tt></li></ul></p>
<p> </p>
</div><p>
  Fully evaluate <code>Iterator</code> and return a list containing all elements
  produced. Infinite iterators will never return.</p>

<h3 class="function"><a name="to_map-1">t