X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=src%2Fhope_gen_dictionary.erl;h=174ef67419c9638368e1ddf3fd05ced52966601e;hb=0ed4baebe135edc50d24d3613c6ee971f75d8c98;hp=1fab838175a4494e353094f8cb2735c6166e1a90;hpb=e0fbc1da088f6d4a87c06c80ad40e2d40339b12a;p=hope.git diff --git a/src/hope_gen_dictionary.erl b/src/hope_gen_dictionary.erl index 1fab838..174ef67 100644 --- a/src/hope_gen_dictionary.erl +++ b/src/hope_gen_dictionary.erl @@ -39,7 +39,7 @@ -callback fold(t(K, V), fun((K, V, Acc) -> Acc), Acc) -> Acc. --callback iter(t(K, V), fun((K, V) -> ok)) -> +-callback iter(t(K, V), fun((K, V) -> any())) -> ok. %% TODO: Decide if validation is to be done. If yes - wrap in hope_result:t/1 @@ -48,3 +48,6 @@ -callback to_kv_list(t(K, V)) -> [{K, V}]. + +-callback has_key(t(K, _), K) -> + boolean().