diff options
author | Adam Chlipala <adamc@hcoop.net> | 2009-05-14 09:11:58 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2009-05-14 09:11:58 -0400 |
commit | f2fff6993d2b138c2efc5cadaa53ecbdb1c2e1b3 (patch) | |
tree | 40c991c6a8032bc73433e5d3f9c1db78a98674ef /lib/ur/list.ur | |
parent | fa0e09c65b849b7bad86bfd457e7cf7b0771df9a (diff) |
Fix a nasty binding bug in CoreUtil
Diffstat (limited to 'lib/ur/list.ur')
-rw-r--r-- | lib/ur/list.ur | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/ur/list.ur b/lib/ur/list.ur index 5310c810..ecec2bec 100644 --- a/lib/ur/list.ur +++ b/lib/ur/list.ur @@ -29,3 +29,13 @@ fun mp (a ::: Type) (b ::: Type) f = 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 |