Skip to content
This repository was archived by the owner on Oct 4, 2020. It is now read-only.

Commit 6842f5d

Browse files
committed
Fix #63
1 parent cdd695d commit 6842f5d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Data/StrMap.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,18 @@ exports._foldM = function (bind) {
4747
return function (f) {
4848
return function (mz) {
4949
return function (m) {
50+
var acc = mz;
5051
function g(k) {
5152
return function (z) {
5253
return f(z)(k)(m[k]);
5354
};
5455
}
5556
for (var k in m) {
5657
if (m.hasOwnProperty(k)) {
57-
mz = bind(mz)(g(k));
58+
acc = bind(acc)(g(k));
5859
}
5960
}
60-
return mz;
61+
return acc;
6162
};
6263
};
6364
};

0 commit comments

Comments
 (0)