X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=src%2Fhope_gen_dictionary.erl;h=c0b7e5348dc392782668f1d5e97102239c1aa142;hb=797ff79bcd48da49fcb82b00013224c0831203a4;hp=ea0f5510856f847316e177b39dbe85cb28a5f9f5;hpb=67535be2404f057f0df3e128c24b484f066996a4;p=hope.git diff --git a/src/hope_gen_dictionary.erl b/src/hope_gen_dictionary.erl index ea0f551..c0b7e53 100644 --- a/src/hope_gen_dictionary.erl +++ b/src/hope_gen_dictionary.erl @@ -39,8 +39,8 @@ -callback fold(t(K, V), fun((K, V, Acc) -> Acc), Acc) -> Acc. --callback iter(t(K, V), fun((K, V) -> ok)) -> - ok. +-callback iter(t(K, V), fun((K, V) -> any())) -> + {}. %% TODO: Decide if validation is to be done. If yes - wrap in hope_result:t/1 -callback of_kv_list([{K, V}]) ->