X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=src%2Fhope_gen_dictionary.erl;h=1fab838175a4494e353094f8cb2735c6166e1a90;hb=3a92158766ab48a11247392aad1eefb6a83d4fe4;hp=0d45ecda04163e09bc0952617b7397c82eba13a5;hpb=b69220d7a75faba9743d5b89b6fa40443cd39eec;p=hope.git diff --git a/src/hope_gen_dictionary.erl b/src/hope_gen_dictionary.erl index 0d45ecd..1fab838 100644 --- a/src/hope_gen_dictionary.erl +++ b/src/hope_gen_dictionary.erl @@ -15,6 +15,12 @@ -callback get(t(K, V), K) -> hope_option:t(V). +-callback get(t(K, V), K, V) -> + V. + +-callback get(t(K, V), K, V, fun((V) -> boolean())) -> + V. + -callback set(t(K, V), K, V) -> t(K, V).