[erlang-patches] Minor additions to the lists stdlib module
Fredrik
fredrik@REDACTED
Fri Dec 21 13:26:29 CET 2012
Your patch has been into review and the feedback was:
Hi
We have decided to not include this patch, the lists module is full :-)
and we are now rather restrictive in what we add to it.
The convenience functions you added are already available with,
array:foldl(Fun, [], array:from_list(List)) with some more functionality
such as foldr, map and so on. Also the array module probably is a better
datastructure to use if you need to access by index.
Nice patch and sorry for the lost effort.
BR Fredrik Gustafsson
Erlang OTP Team
On 12/16/2012 06:57 AM, Jeremy Ong wrote:
> git fetch git://github.com/jeremyong/otp.git
> <http://github.com/jeremyong/otp.git> lists_module_additions
>
> https://github.com/jeremyong/otp/compare/erlang:master...jeremyong:lists_module_additions
>
> https://github.com/jeremyong/otp/compare/erlang:master...jeremyong:lists_module_additions.patch
>
> I have added a few convenience functions for operating on lists in the
> stdlib.
>
> These functions are ifoldl, ifoldr, imap, ifilter, and ipartition (the
> i stands for "index).
>
> Often times, the index of an element is important when transforming a
> list (for example, if I want to perform an operation on an odd-indexed
> elements or tag each element of a list with the index formatted in
> some way). These functions are very similar to the usual ones but the
> lambdas passed to them take an additional argument which is the index
> of each element as it gets passed to the lambda.
>
> I have tried to follow all directions outlined in the github wiki and
> appreciate any and all feedback.
>
> Cheers,
> Jeremy
>
>
> _______________________________________________
> erlang-patches mailing list
> erlang-patches@REDACTED
> http://erlang.org/mailman/listinfo/erlang-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20121221/04342482/attachment.htm>
More information about the erlang-patches
mailing list