Mercurial > urweb
comparison lib/ur/listPair.ur @ 801:5f49a6b759cb
Fix nasty bugs with longjmp() looping for uw_set_input(); and bad variable indexes for nested JavaScript in jscomp
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Thu, 14 May 2009 18:13:09 -0400 |
parents | |
children | 78504d97410b |
comparison
equal
deleted
inserted
replaced
800:e92cfac1608f | 801:5f49a6b759cb |
---|---|
1 fun mapX (a ::: Type) (b ::: Type) (ctx ::: {Unit}) f = | |
2 let | |
3 fun mapX' ls1 ls2 = | |
4 case (ls1, ls2) of | |
5 ([], []) => <xml/> | |
6 | (x1 :: ls1, x2 :: ls2) => <xml>{f x1 x2}{mapX' ls1 ls2}</xml> | |
7 | _ => error <xml>ListPair.mapX: Unequal list lengths</xml> | |
8 in | |
9 mapX' | |
10 end |