Mercurial > urweb
diff src/core_util.sml @ 149:7420fa18d657
Record cut
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Thu, 24 Jul 2008 10:09:21 -0400 |
parents | 4eb68ed31145 |
children | 80192edca30d |
line wrap: on
line diff
--- a/src/core_util.sml Tue Jul 22 19:12:25 2008 -0400 +++ b/src/core_util.sml Thu Jul 24 10:09:21 2008 -0400 @@ -282,6 +282,16 @@ S.map2 (mfc ctx rest, fn rest' => (EField (e', c', {field = field', rest = rest'}), loc))))) + | ECut (e, c, {field, rest}) => + S.bind2 (mfe ctx e, + fn e' => + S.bind2 (mfc ctx c, + fn c' => + S.bind2 (mfc ctx field, + fn field' => + S.map2 (mfc ctx rest, + fn rest' => + (ECut (e', c', {field = field', rest = rest'}), loc))))) | EFold k => S.map2 (mfk k, fn k' =>