Fix lists:foldl/3 order of arguments.
authorSiraaj Khandkar <siraaj@khandkar.net>
Tue, 19 Aug 2014 00:31:02 +0000 (20:31 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Tue, 19 Aug 2014 00:31:02 +0000 (20:31 -0400)
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.028372 seconds and 4 git commands to generate.