Ignore outputs of side-effecting, element-handler functions.
[hope.git] / src / hope_gen_dictionary.erl
index 1fab838..174ef67 100644 (file)
@@ -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().
This page took 0.026568 seconds and 4 git commands to generate.