diff options
author | Adam Chlipala <adam@chlipala.net> | 2019-02-10 18:01:46 -0500 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2019-02-10 18:01:46 -0500 |
commit | b9ddbe0ce5c700fef313788fda5c7ecb82c84638 (patch) | |
tree | 6242b196f0948c3fcb6509c0ab7b33243c739f6b /lib/ur/list.urs | |
parent | 0aab3f48920058051d61215f23440d1042659c92 (diff) |
List.searchM and ListPair.unzip
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 c1d46022..7e3cf205 100644 --- a/lib/ur/list.urs +++ b/lib/ur/list.urs @@ -67,6 +67,8 @@ val findM : m ::: (Type -> Type) -> monad m -> a ::: Type -> (a -> m bool) -> t val search : a ::: Type -> b ::: Type -> (a -> option b) -> t a -> option b +val searchM : m ::: (Type -> Type) -> monad m -> a ::: Type -> b ::: Type -> (a -> m (option b)) -> t a -> m (option b) + val all : a ::: Type -> (a -> bool) -> t a -> bool val allM : m ::: (Type -> Type) -> monad m -> a ::: Type -> (a -> m bool) -> t a -> m bool |