Mercurial > urweb
diff src/expl_util.sml @ 149:7420fa18d657
Record cut
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Thu, 24 Jul 2008 10:09:21 -0400 |
parents | 813e5a52063d |
children | 06a98129b23f |
line wrap: on
line diff
--- a/src/expl_util.sml Tue Jul 22 19:12:25 2008 -0400 +++ b/src/expl_util.sml Thu Jul 24 10:09:21 2008 -0400 @@ -267,6 +267,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' =>