X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=src%2Fhope_dictionary.erl;h=7930c1daaab115e84453ab6fb4e8e66f2b573425;hb=70cf8e86a06d8721fcc8b658bb2be1f7b401326f;hp=5494f396552a14a0bb18267aae91b418de131e9c;hpb=37c6e98b7b4b018972e0e6bdc557b266277fe353;p=hope.git 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).