diff lib/ur/list.urs @ 1279:4c367c8f5b2d

List.mapi
author Adam Chlipala <adamc@hcoop.net>
date Sun, 13 Jun 2010 14:13:47 -0400
parents 61c3139eab12
children 4172863d049d
line wrap: on
line diff
--- a/lib/ur/list.urs	Sun Jun 13 14:13:06 2010 -0400
+++ b/lib/ur/list.urs	Sun Jun 13 14:13:47 2010 -0400
@@ -22,6 +22,8 @@
 
 val mapPartial : a ::: Type -> b ::: Type -> (a -> option b) -> t a -> t b
 
+val mapi : a ::: Type -> b ::: Type -> (int -> a -> b) -> t a -> t b
+
 val mapX : a ::: Type -> ctx ::: {Unit} -> (a -> xml ctx [] []) -> t a -> xml ctx [] []
 
 val mapM : m ::: (Type -> Type) -> monad m -> a ::: Type -> b ::: Type