diff lib/ur/list.urs @ 1519:ada582d07ae1

List.find
author Adam Chlipala <adam@chlipala.net>
date Sun, 24 Jul 2011 15:47:09 -0400
parents 3061d1bf4b2d
children dde3bd82cb3d
line wrap: on
line diff
--- a/lib/ur/list.urs	Sun Jul 24 14:49:40 2011 -0400
+++ b/lib/ur/list.urs	Sun Jul 24 15:47:09 2011 -0400
@@ -44,6 +44,8 @@
 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