diff lib/ur/listPair.urs @ 1884:5c30eea7aa78

ListPair.map2, based on code by escalier@riseup.net
author Adam Chlipala <adam@chlipala.net>
date Sun, 03 Nov 2013 19:27:30 -0500
parents 1c2f335297b7
children 8297968cf7ef
line wrap: on
line diff
--- a/lib/ur/listPair.urs	Thu Oct 17 09:22:38 2013 -0400
+++ b/lib/ur/listPair.urs	Sun Nov 03 19:27:30 2013 -0500
@@ -5,3 +5,6 @@
            -> (a -> b -> xml ctx [] []) -> list a -> list b -> xml ctx [] []
 
 val all : a ::: Type -> b ::: Type -> (a -> b -> bool) -> list a -> list b -> bool
+
+val map2 : a ::: Type -> b ::: Type -> c ::: Type
+           -> (a -> b -> c) -> list a -> list b -> list c