[erlang-questions] Wanted additions to the maps module?

Grzegorz Junka list1@REDACTED
Tue May 3 10:13:19 CEST 2016


+1 for that too

Björn-Egil, what about matching a Key with another Variable in function 
head? e.g.

some_fun(#{Key}, Key) -> exists.

Cheers

Greg


On 02/05/2016 15:59, Jacob wrote:
> Hi,
>
> I just came across the point where I wished there was a merge/3 function
> like in dict/ordict:
>
>    merge(Fun, Map1, Map2) -> Map3
>
> Cheers
>
> Jacob
>
> On 04/08/2016 08:31 PM, Björn-Egil Dahlberg wrote:
>> Hi there!
>>
>> I would like to know if you have any desires that we extend the current
>> maps module with additional functionality?
>>
>> Have you repeated some code or built your own private lib to handle
>> certain maps specific tasks and thought "why isn't this in the maps module?"
>>
>> I would like to know!
>>
>> There is still time before 19.0 to extend the current API.
>>
>> We have for example discussed adding {get, put, update,
>> remove}_path type of functions where we handle nested maps. Would this
>> be useful? Would it be used?
>>
>> What have we missed?
>>
>> // Björn-Egil
>>
>>
>>
>>
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://erlang.org/mailman/listinfo/erlang-questions
>>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>




More information about the erlang-questions mailing list