 &gt; llists:to_list(
  &gt;  llists:flatmap(
  &gt;   fun(X)-&gt;llists:from_list([X,X]) end,
  &gt;   llists:from_list([a,b,c]))).
  [a,a,b,b,c,c]</pre></p>

<h3 class="function"><a name="flatten-1">flatten/1</a></h3>
<div class="spec">
<p><tt>flatten(DeepIterator) -&gt; Iterator</tt>
<ul class="definitions"><li><tt>DeepIterator = <a href="#type-iterator">iterator</a>(any() | <a href="#type-iterator">iterator()</a>)</tt></li><li><tt>Iterator = <a href="#type-iterator">iterator()</a></tt></li></ul></p>
<p>