diff options
author | Adam Chlipala <adamc@hcoop.net> | 2008-11-01 16:08:39 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2008-11-01 16:08:39 -0400 |
commit | 1145290f6ac5b13fe94772c692caa3cdb55bbf5f (patch) | |
tree | a5de853eb5ae1e922b58be100773706ac20e0311 /src/expl_util.sml | |
parent | cfb8ffaf94885d8dc1b492a050830a9b4ffc3d04 (diff) |
Explify 'let'
Diffstat (limited to 'src/expl_util.sml')
-rw-r--r-- | src/expl_util.sml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/expl_util.sml b/src/expl_util.sml index bda602d3..e12186b0 100644 --- a/src/expl_util.sml +++ b/src/expl_util.sml @@ -325,6 +325,15 @@ fun mapfoldB {kind = fk, con = fc, exp = fe, bind} = S.map2 (mfc ctx result, fn result' => (ECase (e', pes', {disc = disc', result = result'}), loc))))) + + | ELet (x, t, e1, e2) => + S.bind2 (mfc ctx t, + fn t' => + S.bind2 (mfe ctx e1, + fn e1' => + S.map2 (mfe ctx e2, + fn e2' => + (ELet (x, t', e1', e2'), loc)))) in mfe end |