Mercurial > urweb
diff lib/ur/list.urs @ 1539:dde3bd82cb3d
List.mapXi
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Mon, 15 Aug 2011 10:22:09 -0400 |
parents | ada582d07ae1 |
children | 553a5cc3a4b5 |
line wrap: on
line diff
--- a/lib/ur/list.urs Sun Aug 14 17:39:18 2011 -0400 +++ b/lib/ur/list.urs Mon Aug 15 10:22:09 2011 -0400 @@ -26,6 +26,8 @@ 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)