aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/ur/list.urs
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2011-08-15 10:22:09 -0400
committerGravatar Adam Chlipala <adam@chlipala.net>2011-08-15 10:22:09 -0400
commitda80f2aa1cd6326d0fc8621a5cfb0e7fd313e192 (patch)
treed53efdcd64e016a6688ce67cb5b5b37c0758e9f6 /lib/ur/list.urs
parentc58370c7b4a4cc6027baf7b6ebfcc1dcab181666 (diff)
List.mapXi
Diffstat (limited to 'lib/ur/list.urs')
-rw-r--r--lib/ur/list.urs2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ur/list.urs b/lib/ur/list.urs
index 00bb5b48..851d74bc 100644
--- a/lib/ur/list.urs
+++ b/lib/ur/list.urs
@@ -26,6 +26,8 @@ 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 mapXi : a ::: Type -> ctx ::: {Unit} -> (int -> a -> xml ctx [] []) -> t a -> xml ctx [] []
+
val mapM : m ::: (Type -> Type) -> monad m -> a ::: Type -> b ::: Type
-> (a -> m b) -> t a -> m (t b)