summaryrefslogtreecommitdiff
path: root/src/expl_util.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-06-26 09:51:28 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-06-26 09:51:28 -0400
commitcb4c86447a24577e18fc312b77f23241962e09bc (patch)
treeb2a56cdbf16c73b3ecccf9f0e70ba9d1de0cfd01 /src/expl_util.sml
parentbef69954307005832dca731aff9a7b008c88c8d8 (diff)
Explify cfold
Diffstat (limited to 'src/expl_util.sml')
-rw-r--r--src/expl_util.sml6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/expl_util.sml b/src/expl_util.sml
index 23329f3e..809bc1e1 100644
--- a/src/expl_util.sml
+++ b/src/expl_util.sml
@@ -138,6 +138,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