diff lib/ur/list.urs @ 822:d4e811beb8eb

fn-pattern code in but not tested yet; hello compiles
author Adam Chlipala <adamc@hcoop.net>
date Thu, 28 May 2009 10:16:50 -0400
parents 395a5d450cc0
children d07980bf1444
line wrap: on
line diff
--- a/lib/ur/list.urs	Tue May 26 12:25:06 2009 -0400
+++ b/lib/ur/list.urs	Thu May 28 10:16:50 2009 -0400
@@ -18,3 +18,8 @@
            -> (a -> m b) -> list a -> m (list b)
 
 val filter : a ::: Type -> (a -> bool) -> t a -> t a
+
+val exists : a ::: Type -> (a -> bool) -> t a -> bool
+
+val foldlMap : a ::: Type -> b ::: Type -> c ::: Type
+               -> (a -> b -> c * b) -> b -> t a -> t c * b