Mercurial > urweb
diff src/core_util.sml @ 69:8e9920db39f2
Corify cfold
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Thu, 26 Jun 2008 09:53:52 -0400 |
parents | 0a5c312de09a |
children | 8b611ecc5f2d |
line wrap: on
line diff
--- a/src/core_util.sml Thu Jun 26 09:51:28 2008 -0400 +++ b/src/core_util.sml Thu Jun 26 09:53:52 2008 -0400 @@ -143,6 +143,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