diff options
author | Adam Chlipala <adam@chlipala.net> | 2018-04-14 14:17:31 -0400 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2018-04-14 14:17:31 -0400 |
commit | 1fef19035d2f3388e9ab0dad1889a4cad5c1ca3e (patch) | |
tree | ab2feca6fc2b56003ce0326ef456e76aae16483d /lib/ur/list.urs | |
parent | 7d4a7a7f92095edfea1cb55a11e037667c2c21da (diff) |
List.existsM
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 fd56679d..37cbe442 100644 --- a/lib/ur/list.urs +++ b/lib/ur/list.urs @@ -42,6 +42,8 @@ val filter : a ::: Type -> (a -> bool) -> t a -> t a val exists : a ::: Type -> (a -> bool) -> t a -> bool +val existsM : m ::: (Type -> Type) -> monad m -> a ::: Type -> (a -> m bool) -> t a -> m bool + val foldlM : m ::: (Type -> Type) -> monad m -> a ::: Type -> b ::: Type -> (a -> b -> m b) -> b -> t a -> m b |