diff lib/ur/listPair.ur @ 1885:8297968cf7ef

Rename ListPair.map2 to ListPair.mp
author Adam Chlipala <adam@chlipala.net>
date Mon, 04 Nov 2013 08:38:20 -0500
parents 5c30eea7aa78
children
line wrap: on
line diff
--- a/lib/ur/listPair.ur	Sun Nov 03 19:27:30 2013 -0500
+++ b/lib/ur/listPair.ur	Mon Nov 04 08:38:20 2013 -0500
@@ -34,13 +34,13 @@
         all'
     end
 
-fun map2 [a] [b] [c] (f : a -> b -> c) =
+fun mp [a] [b] [c] (f : a -> b -> c) =
     let
-        fun map2' ls1 ls2 =
+        fun map' ls1 ls2 =
             case (ls1, ls2) of
                 ([], []) => []
-              | (x1 :: ls1, x2 :: ls2) => f x1 x2 :: map2' ls1 ls2
+              | (x1 :: ls1, x2 :: ls2) => f x1 x2 :: map' ls1 ls2
               | _ => error <xml>ListPair.map2: Unequal list lengths</xml>
     in
-        map2'
+        map'
     end