Mercurial > urweb
diff lib/ur/list.urs @ 1547:553a5cc3a4b5
Fix another list unurlification segfault bug; List.foldlMi
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Sun, 21 Aug 2011 13:41:57 -0400 |
parents | dde3bd82cb3d |
children | f4cb4eebf7ae |
line wrap: on
line diff
--- a/lib/ur/list.urs Sun Aug 21 10:55:31 2011 -0400 +++ b/lib/ur/list.urs Sun Aug 21 13:41:57 2011 -0400 @@ -43,6 +43,9 @@ val foldlM : m ::: (Type -> Type) -> monad m -> a ::: Type -> b ::: Type -> (a -> b -> m b) -> b -> t a -> m b +val foldlMi : m ::: (Type -> Type) -> monad m -> a ::: Type -> b ::: Type + -> (int -> a -> b -> m b) -> b -> t a -> m b + val foldlMap : a ::: Type -> b ::: Type -> c ::: Type -> (a -> b -> c * b) -> b -> t a -> t c * b