[erlang-questions] lists module functions for maps?
Richard O'Keefe
raoknz@REDACTED
Mon Sep 23 13:44:50 CEST 2019
Keep the function names the same but put them in another module, say 'maps:'.
On Mon, 23 Sep 2019 at 18:01, Vance Shipley <vances@REDACTED> wrote:
>
> Should we have a corollary to lists:keyfind/3 which works on lists of map()?
>
> keyfind(Key, MapList) -> Map | false
>
> ... and the rest:
>
> keydelete(Key, MapList1) -> MapList2
> keymap(Fun, Key, MapList1) -> MapList2
> keymember(Key, MapList) -> boolean()
> keymerge(Key, MapList1, MapList2) -> MapList3
> keyreplace(Key, MapList1, NewMap) -> MapList2
> keysort(Key, MapList1) -> MapList2
> keystore(Key, MapList1, NewMap) -> MapList2
> keytake(Key, MapList1) -> {value, Map, MapList2} | false
>
>
> --
> -Vance
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
More information about the erlang-questions
mailing list