From: Siraaj Khandkar Date: Tue, 19 Aug 2014 00:31:02 +0000 (-0400) Subject: Fix lists:foldl/3 order of arguments. X-Git-Tag: 1.0.0~5 X-Git-Url: https://git.xandkar.net/?p=hope.git;a=commitdiff_plain;h=097a2aa31a7823af1859fe8fa5e87dfc57e4618f Fix lists:foldl/3 order of arguments. --- diff --git a/src/hope_kv_list.erl b/src/hope_kv_list.erl index ebc4176..3c392ee 100644 --- a/src/hope_kv_list.erl +++ b/src/hope_kv_list.erl @@ -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.