Mercurial > urweb
diff src/expl_util.sml @ 68:c1e21ab42896
Explify cfold
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Thu, 26 Jun 2008 09:51:28 -0400 |
parents | d609820c5834 |
children | 0ee10f4d73cf |
line wrap: on
line diff
--- a/src/expl_util.sml Thu Jun 26 09:48:54 2008 -0400 +++ b/src/expl_util.sml Thu Jun 26 09:51:28 2008 -0400 @@ -138,6 +138,12 @@ 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