X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=src%2Fhope_gen_dictionary.erl;h=ea0f5510856f847316e177b39dbe85cb28a5f9f5;hb=d2bddc7bbf3325b16e1de0afabfebb6cf57b505e;hp=dda6eb06bf4ca500380de1c4e4e941c9580434d5;hpb=870172d69230ad2cf0f409ec009ab3feaa723fee;p=hope.git diff --git a/src/hope_gen_dictionary.erl b/src/hope_gen_dictionary.erl index dda6eb0..ea0f551 100644 --- a/src/hope_gen_dictionary.erl +++ b/src/hope_gen_dictionary.erl @@ -18,6 +18,9 @@ -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). @@ -45,3 +48,6 @@ -callback to_kv_list(t(K, V)) -> [{K, V}]. + +-callback has_key(t(K, _), K) -> + boolean().