Use empty tuple as unit type, for all side-effects.
[hope.git] / src / hope_kv_list.erl
index 44a78d4..6e3442d 100644 (file)
@@ -106,10 +106,11 @@ pop(T1, K) ->
     end.
 
 -spec iter(t(K, V), fun((K, V) -> any())) ->
-    ok.
+    {}.
 iter(T, F1) ->
     F2 = lift_map(F1),
-    lists:foreach(F2, T).
+    ok = lists:foreach(F2, T),
+    {}.
 
 -spec map(t(K, V), fun((K, V) -> V)) ->
     t(K, V).
This page took 0.018242 seconds and 4 git commands to generate.