diff lib/ur/list.ur @ 796:6271f0e3c272

Fix a nasty binding bug in CoreUtil
author Adam Chlipala <adamc@hcoop.net>
date Thu, 14 May 2009 09:11:58 -0400
parents dc3fc3f3b834
children e92cfac1608f
line wrap: on
line diff
--- a/lib/ur/list.ur	Thu May 14 08:15:36 2009 -0400
+++ b/lib/ur/list.ur	Thu May 14 09:11:58 2009 -0400
@@ -29,3 +29,13 @@
     in
         mp' []
     end
+
+fun mapX (a ::: Type) (ctx ::: {Unit}) f =
+    let
+        fun mapX' ls =
+            case ls of
+                [] => <xml/>
+              | x :: ls => <xml>{f x}{mapX' ls}</xml>
+    in
+        mapX'
+    end