<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Greetings,<br>
    <br>
    Is the goal of this exercise to create a bigger list from the call?<br>
    Then you need lists:foldl/3 or foldr/3<br>
    <br>
    <br>
    bengt<br>
    <br>
    <div class="moz-cite-prefix">On 03/27/2015 01:42 PM, harsha sri
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAC4Nnz6ca34yaVx1NTAbAL25Kj0=X3MW94Aja+tZo5cb2W=zmw@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>Hi,<br>
                <br>
              </div>
              Is it possible to add dynamically add elements to List in
              recursion?<br>
              <br>
            </div>
            ex: List = [1,2,3]<br>
            <br>
          </div>
          lists:foreach...<br>
          <br>
          .....<br>
        </div>
        List = [4 | List]<br>
        <div>....<br>
          <div>
            <div>
              <div>(anotherlist).<br>
                <br>
              </div>
              <div>Finally i am expecting in List: [1,2,3,4]<br>
                <br>
              </div>
              <div>Thanks & Regards,<br>
              </div>
              <div>Harsha.<br>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
erlang-questions mailing list
<a class="moz-txt-link-abbreviated" href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a>
<a class="moz-txt-link-freetext" href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>