[erlang-questions] Lists in recursion
harsha sri
harsha.pic@REDACTED
Fri Mar 27 18:55:49 CET 2015
Hi Bengt,
Thanks you so much for inputs.
Regards,
Harsha
On Fri, Mar 27, 2015 at 6:57 PM, Bengt Kleberg <bengt.kleberg@REDACTED>
wrote:
> Greetings,
>
> Is the goal of this exercise to create a bigger list from the call?
> Then you need lists:foldl/3 or foldr/3
>
>
> bengt
>
>
> On 03/27/2015 01:42 PM, harsha sri wrote:
>
> Hi,
>
> Is it possible to add dynamically add elements to List in recursion?
>
> ex: List = [1,2,3]
>
> lists:foreach...
>
> .....
> List = [4 | List]
> ....
> (anotherlist).
>
> Finally i am expecting in List: [1,2,3,4]
>
> Thanks & Regards,
> Harsha.
>
>
> _______________________________________________
> erlang-questions mailing listerlang-questions@REDACTED://erlang.org/mailman/listinfo/erlang-questions
>
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150327/74feb0c6/attachment.htm>
More information about the erlang-questions
mailing list