X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=src%2Fhope_kv_list.erl;h=6e3442d94ef7703f8e947448883327dc658d41b2;hb=HEAD;hp=c12f3b4e3f9f604afc3c2c4df846f648eb4bb4b4;hpb=67535be2404f057f0df3e128c24b484f066996a4;p=hope.git diff --git a/src/hope_kv_list.erl b/src/hope_kv_list.erl index c12f3b4..6e3442d 100644 --- a/src/hope_kv_list.erl +++ b/src/hope_kv_list.erl @@ -105,11 +105,12 @@ pop(T1, K) -> ; false -> {none , T1} end. --spec iter(t(K, V), fun((K, V) -> ok)) -> - ok. +-spec iter(t(K, V), fun((K, V) -> any())) -> + {}. 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).