X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=src%2Fhope_gen_dictionary.erl;h=ea0f5510856f847316e177b39dbe85cb28a5f9f5;hb=67535be2404f057f0df3e128c24b484f066996a4;hp=0d45ecda04163e09bc0952617b7397c82eba13a5;hpb=b69220d7a75faba9743d5b89b6fa40443cd39eec;p=hope.git diff --git a/src/hope_gen_dictionary.erl b/src/hope_gen_dictionary.erl index 0d45ecd..ea0f551 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). @@ -42,3 +48,6 @@ -callback to_kv_list(t(K, V)) -> [{K, V}]. + +-callback has_key(t(K, _), K) -> + boolean().