diff options
author | Adam Chlipala <adamc@csail.mit.edu> | 2017-01-25 15:55:14 -0500 |
---|---|---|
committer | Adam Chlipala <adamc@csail.mit.edu> | 2017-01-25 15:55:14 -0500 |
commit | 41cd154483d45c5d2fb0abf392b9bdc63d42b94e (patch) | |
tree | f1cb3fdcd83bc3b28ad2b76a21f5c1d1e350cbca /lib/ur/list.urs | |
parent | f7ab07f941b23ad64cdb6db04020fa7c595db8e4 (diff) |
List.appi
Diffstat (limited to 'lib/ur/list.urs')
-rw-r--r-- | lib/ur/list.urs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ur/list.urs b/lib/ur/list.urs index 432d8c1a..fd56679d 100644 --- a/lib/ur/list.urs +++ b/lib/ur/list.urs @@ -65,6 +65,9 @@ val all : a ::: Type -> (a -> bool) -> t a -> bool val app : m ::: (Type -> Type) -> monad m -> a ::: Type -> (a -> m unit) -> t a -> m unit +val appi : m ::: (Type -> Type) -> monad m -> a ::: Type + -> (int -> a -> m unit) -> t a -> m unit + val tabulateM : m ::: (Type -> Type) -> monad m -> a ::: Type -> (int -> m a) -> int -> m (t a) |