litwith/2</code> behaves as if it is defined as follows:</p>
 
  <pre>  llists:splitwith(Pred, Iterator) -&gt;
      {llists:takewhile(Pred, Iterator),
       llists:dropwhile(Pred, Iterator)}.</pre>
 
  Examples:
  <pre>  &gt; {Before, After} = llists:splitwith(fun(A) -&gt; A rem 2 == 1 end, llists:seq(1, 7)),
  &gt; {llists:to_list(Before), llists:to_list(After)}.
  {[1],[2,3,4,5,6,7]}
  &gt; {Before, After} = lists:splitwith(fun(A) -&gt; is_atom(A) end, [a,b,1,c,d,2,3,4,e]),
  &gt; {llists:to_list(Before