From 79655b086c036d07806d0c345ffc9e6683891fe4 Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Thu, 14 May 2009 18:13:09 -0400 Subject: Fix nasty bugs with longjmp() looping for uw_set_input(); and bad variable indexes for nested JavaScript in jscomp --- lib/ur/listPair.ur | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lib/ur/listPair.ur (limited to 'lib/ur/listPair.ur') diff --git a/lib/ur/listPair.ur b/lib/ur/listPair.ur new file mode 100644 index 00000000..9a56f75a --- /dev/null +++ b/lib/ur/listPair.ur @@ -0,0 +1,10 @@ +fun mapX (a ::: Type) (b ::: Type) (ctx ::: {Unit}) f = + let + fun mapX' ls1 ls2 = + case (ls1, ls2) of + ([], []) => + | (x1 :: ls1, x2 :: ls2) => {f x1 x2}{mapX' ls1 ls2} + | _ => error ListPair.mapX: Unequal list lengths + in + mapX' + end -- cgit v1.2.3