[erlang-questions] lists module functions for maps?
Vance Shipley
vances@REDACTED
Mon Sep 23 08:00:32 CEST 2019
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
More information about the erlang-questions
mailing list