Fix lists:foldl/3 order of arguments.
[hope.git] / src / hope_kv_list.erl
index ebc4176..3c392ee 100644 (file)
@@ -72,7 +72,7 @@ filter(T, F1) ->
 
 fold(T, F1, Accumulator) ->
     F2 = fun ({K, V}, Acc) -> F1(K, V, Acc) end,
-    lists:foldl(F2, T, Accumulator).
+    lists:foldl(F2, Accumulator, T).
 
 to_kv_list(T) ->
     T.
This page took 0.022327 seconds and 4 git commands to generate.