<div dir="ltr"><div><div><div>Hi Bengt,<br><br></div>Thanks you so much for inputs.<br><br></div>Regards,<br></div>Harsha<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 27, 2015 at 6:57 PM, Bengt Kleberg <span dir="ltr"><<a href="mailto:bengt.kleberg@ericsson.com" target="_blank">bengt.kleberg@ericsson.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div 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<div><div class="h5"><br>
    <br>
    <div>On 03/27/2015 01:42 PM, harsha sri
      wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="h5">
      
      <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></fieldset>
      <br>
      </div></div><pre>_______________________________________________
erlang-questions mailing list
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a>
</pre>
    </blockquote>
    <br>
  </div>

<br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>