home
/
code
/
hope.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use empty tuple as unit type, for all side-effects.
[hope.git]
/
src
/
hope_kv_list.erl
diff --git
a/src/hope_kv_list.erl
b/src/hope_kv_list.erl
index
44a78d4
..
6e3442d
100644
(file)
--- a/
src/hope_kv_list.erl
+++ b/
src/hope_kv_list.erl
@@
-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.030572 seconds
and
4
git commands to generate.