Use empty tuple as unit type, for all side-effects.
[hope.git] / src / hope_gen_dictionary.erl
index ea0f551..c0b7e53 100644 (file)
@@ -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}]) ->
This page took 0.028127 seconds and 4 git commands to generate.