comparison src/elab_util.sml @ 71:6431b315a1e3

Elaborate efold
author Adam Chlipala <adamc@hcoop.net>
date Thu, 26 Jun 2008 11:09:30 -0400
parents 9f89f0b00b84
children 522f4bd3955e
comparison
equal deleted inserted replaced
70:2e0f3b21fb85 71:6431b315a1e3
270 S.bind2 (mfc ctx field, 270 S.bind2 (mfc ctx field,
271 fn field' => 271 fn field' =>
272 S.map2 (mfc ctx rest, 272 S.map2 (mfc ctx rest,
273 fn rest' => 273 fn rest' =>
274 (EField (e', c', {field = field', rest = rest'}), loc))))) 274 (EField (e', c', {field = field', rest = rest'}), loc)))))
275
276 | EFold k =>
277 S.map2 (mfk k,
278 fn k' =>
279 (EFold k', loc))
275 280
276 | EError => S.return2 eAll 281 | EError => S.return2 eAll
277 in 282 in
278 mfe 283 mfe
279 end 284 end