X-Git-Url: https://git.xandkar.net/?p=hope.git;a=blobdiff_plain;f=src%2Fhope_dictionary.erl;h=7930c1daaab115e84453ab6fb4e8e66f2b573425;hp=5494f396552a14a0bb18267aae91b418de131e9c;hb=70cf8e86a06d8721fcc8b658bb2be1f7b401326f;hpb=126c888082556366e73dfa5fb5fe3eedf2818dfc diff --git a/src/hope_dictionary.erl b/src/hope_dictionary.erl index 5494f39..7930c1d 100644 --- a/src/hope_dictionary.erl +++ b/src/hope_dictionary.erl @@ -21,6 +21,9 @@ -callback update(t(K, V), K, fun((hope_option:t(V)) -> V)) -> t(K, V). +-callback pop(t(K, V), K) -> + {hope_option:t(V), t(K, V)}. + -callback map(t(K, V), fun((K, V) -> V)) -> t(K, V).