diff options
author | Adam Chlipala <adamc@hcoop.net> | 2010-06-13 14:13:47 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2010-06-13 14:13:47 -0400 |
commit | 2ed97b5268a73d4ff83ad776e5a6063f469f68fe (patch) | |
tree | 7853299e0060cd6c6eea28a26aa4ee33b1b93c21 /lib/ur/list.urs | |
parent | 3f4cbb5f7f9deef169728e445e5b69ef14fedd30 (diff) |
List.mapi
Diffstat (limited to 'lib/ur/list.urs')
-rw-r--r-- | lib/ur/list.urs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ur/list.urs b/lib/ur/list.urs index 00c95053..7ce3c61f 100644 --- a/lib/ur/list.urs +++ b/lib/ur/list.urs @@ -22,6 +22,8 @@ val mp : a ::: Type -> b ::: Type -> (a -> b) -> t a -> t b 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 |