aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/ur/list.urs
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2011-07-24 15:47:09 -0400
committerGravatar Adam Chlipala <adam@chlipala.net>2011-07-24 15:47:09 -0400
commit729998f64e891856f43f758551be0aaa26ac89b4 (patch)
tree1eca16f08da61d48e50376918cdf6b1c4b0acb81 /lib/ur/list.urs
parent2bf2fd370971509c6a00fb7000d9c2aa28852719 (diff)
List.find
Diffstat (limited to 'lib/ur/list.urs')
-rw-r--r--lib/ur/list.urs2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ur/list.urs b/lib/ur/list.urs
index dc8fdeba..00bb5b48 100644
--- a/lib/ur/list.urs
+++ b/lib/ur/list.urs
@@ -44,6 +44,8 @@ val foldlM : m ::: (Type -> Type) -> monad m -> a ::: Type -> b ::: Type
val foldlMap : a ::: Type -> b ::: Type -> c ::: Type
-> (a -> b -> c * b) -> b -> t a -> t c * b
+val find : a ::: Type -> (a -> bool) -> t a -> option a
+
val search : a ::: Type -> b ::: Type -> (a -> option b) -> t a -> option b
val all : a ::: Type -> (a -> bool) -> t a -> bool