summaryrefslogtreecommitdiff
path: root/src/core_util.sml
diff options
context:
space:
mode:
Diffstat (limited to 'src/core_util.sml')
-rw-r--r--src/core_util.sml6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core_util.sml b/src/core_util.sml
index b3e266af..66918863 100644
--- a/src/core_util.sml
+++ b/src/core_util.sml
@@ -143,6 +143,12 @@ fun mapfoldB {kind = fk, con = fc, bind} =
S.map2 (mfc ctx c2,
fn c2' =>
(CConcat (c1', c2'), loc)))
+ | CFold (k1, k2) =>
+ S.bind2 (mfk k1,
+ fn k1' =>
+ S.map2 (mfk k2,
+ fn k2' =>
+ (CFold (k1', k2'), loc)))
in
mfc
end