diff options
author | Adam Chlipala <adamc@hcoop.net> | 2008-06-26 09:48:54 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2008-06-26 09:48:54 -0400 |
commit | bef69954307005832dca731aff9a7b008c88c8d8 (patch) | |
tree | 801e896f527636ab21211f11839f3c1d20f5ac10 /src/elab_util.sml | |
parent | b03ac1efc8ac5197688a97d1b8b27106654d504d (diff) |
Elaborating cfold
Diffstat (limited to 'src/elab_util.sml')
-rw-r--r-- | src/elab_util.sml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/elab_util.sml b/src/elab_util.sml index 2d075fb4..7892211c 100644 --- a/src/elab_util.sml +++ b/src/elab_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))) | CError => S.return2 cAll | CUnif (_, _, ref (SOME c)) => mfc' ctx c |