summaryrefslogtreecommitdiff
path: root/lib/ur/listPair.ur
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2013-11-04 08:38:20 -0500
committerGravatar Adam Chlipala <adam@chlipala.net>2013-11-04 08:38:20 -0500
commitd3b74d23b672068e7f9e375b885292726f754f59 (patch)
tree147be549cbfaa9efd93aa20c61b2cd76db6b7914 /lib/ur/listPair.ur
parentd2196dbd5c4379bdbc307d2035c8a07ef09b592d (diff)
Rename ListPair.map2 to ListPair.mp
Diffstat (limited to 'lib/ur/listPair.ur')
-rw-r--r--lib/ur/listPair.ur8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ur/listPair.ur b/lib/ur/listPair.ur
index d69993f9..94b92872 100644
--- a/lib/ur/listPair.ur
+++ b/lib/ur/listPair.ur
@@ -34,13 +34,13 @@ fun all [a] [b] f =
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