aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/mono_util.sml
diff options
context:
space:
mode:
Diffstat (limited to 'src/mono_util.sml')
-rw-r--r--src/mono_util.sml5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mono_util.sml b/src/mono_util.sml
index 1a7c8f5b..0d5211cf 100644
--- a/src/mono_util.sml
+++ b/src/mono_util.sml
@@ -194,6 +194,11 @@ fun mapfoldB {typ = fc, exp = fe, bind} =
S.map2 (mfe ctx e2,
fn e2' =>
(ESeq (e1', e2'), loc)))
+
+ | EClosure (n, es) =>
+ S.map2 (ListUtil.mapfold (mfe ctx) es,
+ fn es' =>
+ (EClosure (n, es'), loc))
in
mfe
end